BOWENWANG
Posts: 11
Joined: Mon Aug 18, 2008 2:29 pm

upgrade question

Hi,

I got a update problem when i release my latest product, i have the version1.0 released last year and version2.0 released this year, but V1.0's [ProductName] called "Name" and V2.0's [ProductName] called "NameV2",V2.0 also be set to allow side by side installs of different product versions, so that two versions will installed into different default folder and can be used at same time. now i need to release another version v2.1 which will have the same [ProductName] called "NameV2", when V2.1 installed i want just update the V2.0 without touch V1.0. how can i tell the installer to just uninstall V2.0 but not V1.0 ? i saw there is a tick box for customize upgrade rules, i tried to use that when i pressed the new button it ask me for a .msi file, but V2.0 was created as .exe file by advance installer. Anyone knows what should i do to set the upgrade correctly?

The version of advanced installer i got is v6.1.1

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

Re: upgrade question

Hi,
when V2.1 installed i want just update the V2.0 without touch V1.0. how can i tell the installer to just uninstall V2.0 but not V1.0 ?
This can be done by customizing the upgrade rules in the Upgrades page. Since you want to upgrade an older version you can customize the rules for the OLDPRODUCTS property. In the Product Info tab of the "Edit Upgrade" dialog you can configure the minimum and maximum versions upgraded by your package. Also, in the Upgrade Action tab you should make sure that the "Find and remove products" options is selected.
i tried to use that when i pressed the new button it ask me for a .msi file, but V2.0 was created as .exe file by advance installer.
A MSI package can upgrade another MSI only if it knows its Upgrade Code. You can retrieve it from the previous version by following these steps:
- use the "/extract" parameter for the EXE bootstrapper of the previous version
- open the extracted MSI with Orca
- go to the "Property" table
- find the "UpgradeCode" property

The GUID which represents the Upgrade Code of the previous version can be used in the "Upgrade Code" field in the "Product Info" tab of the "Edit Upgrade" dialog.

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

Return to “Common Problems”