mjs
Posts: 13
Joined: Mon Jul 23, 2007 5:00 pm

force new product code?

I need to make our beta version upgradable to the release version. The version number will be the same though.

For example, beta 1 may have a version of 1.1.0.15276 and release may have a version of 1.1.0.15500. So the version numbers (1.1.0) are the same. Is there a way to force AI to create a new product code without changing the version so release will upgrade beta 1? Or is there some other setting I need to set to do this?

Thanks!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that the fourth version (the one you modify in your example) is not taken in consideration by Windows installer, therefore if you change it it will have no effect. You can read more about this here:
http://msdn2.microsoft.com/en-us/library/aa370859.aspx

Since the beta and the release packages must have the same version (1.1.0) the automated upgrade will not work.

The solution is this:
- you build your beta project
- you duplicate this project by using the "File" -> "Duplicate" menu (this will be the release project)
- in the duplicate project, in the "Upgrades" page, you set in the "Upgrades" section the beta MSI
- you build the duplicate project

Now you will have two MSI packages: the first is the beta version and the second (which will upgrade the first) is the release version.

You can read more about this here:
http://www.advancedinstaller.com/user-g ... rades.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”