bccc
Posts: 9
Joined: Wed Aug 25, 2010 10:41 pm

Updating ProductVersion auto increments ProductCode

Our current build process does the following to build an MSI with unique parameters per customer.

From the command line...
- We use SetProperty to set the ProductVersion (most the time this is set, but does not change)
- We use SetProperty to set customer specific properties
- We build...

The challenge is for a particular release, we want to maintain the same ProductCode. Understanding that this needs to change if we increment the ProductVersion, why does the ProductCode get updated if when we set the ProductVersion it doesn't change or we only set the forth digit. Is there a way to prevent the ProductCode from being updated when we set the ProductVersion property?

Thanks!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Updating ProductVersion auto increments ProductCode

Hello,

Instead of using the Set Property Command to change the product version, you can use the Set Version Command with the "-noprodcode" option.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”