Where do I enter the Upgrade Code? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Atlas
Posts: 30
Joined: Sun Mar 16, 2008 11:08 am

Where do I enter the Upgrade Code?

I'm considering switching from InstallShield to Advanced Installer. Several versions of my product have already been released, so I want to enter the Upgrade Code that we've been using into my Advanced Installer project. But I can't find where you do this. Can anyone help?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

In order to upgrade older MSI-based installation packages with your new package, you can use the "Upgrades" page.

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

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Atlas
Posts: 30
Joined: Sun Mar 16, 2008 11:08 am

Thanks for the tip!

I don't want to upgrade old apps though, since I allow side-by-side installations with old versions. I need to make sure that my new installation package has the old Upgrade Code so that Windows knows to transfer file-associations to the new version of the app. If the Upgrade Codes are different I believe that Windows will leave the file-associates with the application that registered them first, so users who keep the old version will find that the old version still opens when they double-click files.

Another reason why I need direct access to the Upgrade Code and Product Code is that we release many products that have installers that are 99% identical, but the installers themselves are difficult to set up. So what we do is set up one installer project, duplicate it several times, and then for each copy just changes any settings that are different and enter that required Upgrade Code and Product Code. Without direct access to these codes the amount of work needed to set up all our installers will go up by 500% since each app's installer will need to be put together by hand.

I appreciate that Advanced Installer helps you automatically manage Upgrade Code and Product Code. But if the interface does not also give you direct access to these numbers, I hope it's added soon.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
So what we do is set up one installer project, duplicate it several times, and then for each copy just changes any settings that are different and enter that required Upgrade Code and Product Code.
I'm afraid that you are taking an incorrect approach for this. Note that the "File" -> "Duplicate" option (which is now used to create template projects) is used to create a completely different project from an existing one. The duplicate project will not be related with the original one from the Windows Installer point of view.

What you need can be done like this:
- create the first installation project and make sure that in the "Upgrades" page you use the "Allow side by side installs of different product versions" option
- build the project and install it (make sure you make a backup of the project)
- when you want to install a new and updated version of your application, you open the project of the first installation and modify it with the new files and settings
- you go to the "Product Details" page and increase the version of the package
- when you are prompted about changing the Product Code you can select Yes (for side by side installations or automatic upgrades) or No (for patches)
- you build the modified project

This way the new package will have the same Upgrade Code as the original one.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Atlas
Posts: 30
Joined: Sun Mar 16, 2008 11:08 am

Thank you very much for the information. I do not see any "File" > "Duplicate" option, but I do see a "File" > "Save As Template..." option. Is that what you were referring to?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Yes, the "File" -> "Duplicate" menu is now "File" -> "Save as Template".

However, your question makes me wonder you you duplicated your projects. Can you please give me more details about this? Also, I'm not sure why you need this option.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Atlas
Posts: 30
Joined: Sun Mar 16, 2008 11:08 am

Well I've never duplicated a project in Advanced Installer. I was referring to how I work in InstallShield. If I need to create 5 installers that are 99% the same, instead of creating 5 installers by hand, I do the following:

1. Create the first project in InstallShield and set it up the way I want it.
2. Use Windows Explorer to make another 4 copies of the InstallShield project.
3. Open each of the duplicated projects in InstallShield and:
...a. Change the files to be installed.
...b. Change the Product Code to the code of that product.

So I was basically wondering how I do this in Advanced Installer. But I think I've understood your answer. Instead using Windows Explorer to duplicate the project file like I used to do, I should use the "Save As Template" function.

The only thing that's not perfect about all of this is that if I choose to switch from InstallShield to Advanced Installer, apparently I will need to start new Upgrade Codes for all my products instead of entering the old ones from InstallShield.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

In order to change the Upgrade Code of a MSI package created with Advanced Installer you can open the AIP file with a text editor and change the UpgradeCode property.

However, I'm not sure if this will work as expected since the packages are built with different tools.

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

Return to “Common Problems”