codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

multiple upgrade codes

I have created a msi that installs a website in our many regions. The iis settings and config files are all based on a radio button dialog.

Each of our regions (alpha, beta, prod) has 2 sub regions (current, future).

Is it possible to keep 1 installer for all of this? It needs to be able to upgrade current or future without effecting both. The aip only has 1 Upgrade Code, so no matter what all installs would have the same upgrade code. I can enable side by side installation, but that means both sub regions have the same upgrade code.

In the Upgrades option I can add upgrade codes, but will it find the upgrade code for the uninstall then reinstall with the Upgrade Code in Product Details -> Product IDs?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: multiple upgrade codes

Hello,

You can create multiple builds, in "Media" page, for your installation project and then include your features (from "Organization" page) in the desired builds.

Let us know if this helps, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

Re: multiple upgrade codes

I have Components setup for all of my regions and sub regions. I need to support installs for 2 sub regions on each server. Right now my msi will have 1 upgrade code, but my current and future sub regions should have different upgrade codes because they are technically 2 different applications. Is there a way to tie the upgrade code to a component or set it dynamically based on what sub region i'm installing?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: multiple upgrade codes

Hello,

I'm afraid you cannot implement this scenario. Please note that the UpgradeCode is an identifier associated with multiple versions of a product installation, it cannot be conditionally associated only with some features/components of an installation package. Also, each .aip (project file) can use only one UpgradeCode GUID and the UpgradeCode cannot be changed at install time based on condition.

In order to achieve what you want you can create different installation projects which will use different upgrade codes.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”