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

Add/Remove Name for Multiple Instances

Our Update site installation needs to support a beta and production side by side installation. I have it set to allow side by side installations, but need to update the Add/Remove programs name so we can identify them.

I was looking at this post: http://www.advancedinstaller.com/forums ... =2&t=10598

and saw this:
GabrielBarbu wrote:Hi Henry,

You can do this by doing the following:
- on the Media page, select the Multiple Instances tab
- add a new instance if you haven't already done so, and make sure it is selected
- In the "Additional Properties" list, you will find "ProductName" in the list. It is set with the following default value:

Code: Select all

[|ProductName] [|InstanceId]
You can change it to suit your needs.

Best regards,
Gabriel
My DefautlBuild in the Media Page does not have a Multiple Instances Tab, but I see a Multiple Instances page. The files installed are based off a Dialog where we select which version to install. Is there a way to tie in the Instance so it names the Add/Remove programs based off the same Dialog's Radio Button value?

Thanks,
Scott
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Add/Remove Name for Multiple Instances

Hi Scott,

I'm afraid I don't fully understand what is your scenario. Can you give us more details about your scenario (maybe exemplify)?

Indeed, the "Multiple Instances" feature is now located in the Multiple Instances page and it allows a product to be installed more times on the same machine even if it has the same version. The "Allow side by side installs of different product versions" option allows different versions of the same product to be installed on the same machine.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

Re: Add/Remove Name for Multiple Instances

I can install my msi multiple times on the machine, but in the Add/Remove programs screen the name is the same for each.

My MSI has a dialog on install with radio buttons for Alpha, Beta and Prod, which correspond to config files and iis settings. I'd like the Add/Remove programs screen to tell me which one is installed. So if I install Alpha and Prod on a server the Add/Remove programs would show me:

MyApplicationAlpha
MyApplicationProd

Right now it just lists "MyApplication" and I don't know which one is which.

Does that make more sense?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Add/Remove Name for Multiple Instances

Hi,

If you have more instances in the "Multiple Instances" page, you can modify the value of the [ProductName] property for each instance and use the properties related to your radio buttons.

Otherwise, can you please send us the .AIP (project file) to support at advancedinstaller dot com so we can investigate it in order to find a solution?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Add/Remove Name for Multiple Instances

Hi,

Sorry, but it seems I made a mistake here. The [ProductName] property is set at the build time or it can be changed by a transform and therefore it cannot be set during install time depending on radio buttons or other user inputs.

However, to have a different name in "Add/Remove Programs" window, you can create a different build for each version of the product in the Media page, then create a property with different values for each build and use it in the "Product Name" field from the Product Details page.

Otherwise, if you want to have only one package for all versions and only want to know which one is installed on a machine, you can create a registry entry which stores the value of the selected radio button.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

Re: Add/Remove Name for Multiple Instances

If I have multiple instances created, Is there a way to select which one gets installed or are they installed in order?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Add/Remove Name for Multiple Instances

Hi,
If I have multiple instances created, Is there a way to select which one gets installed or are they installed in order?
Yes, you can select which instance gets installed. When you install the application for the first time, everything goes normal (the "Multiple Instances" selection dialog does not appear). If you launch the installation package again, the "Multiple Instances" selection dialog is displayed, so you can choose to install another instance of the application or maintain the already installed one.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
codemonk3y
Posts: 62
Joined: Thu Nov 01, 2012 3:51 pm

Re: Add/Remove Name for Multiple Instances

Eusebiu wrote:Hi,

Sorry, but it seems I made a mistake here. The [ProductName] property is set at the build time or it can be changed by a transform and therefore it cannot be set during install time depending on radio buttons or other user inputs.

However, to have a different name in "Add/Remove Programs" window, you can create a different build for each version of the product in the Media page, then create a property with different values for each build and use it in the "Product Name" field from the Product Details page.

Best regards,
Eusebiu
I know it's been a while on this one, but I finally got back to this part. I changed my Product Name to a property and created a 2nd build on the Media page, but I do not see any place to set a property value on the Media -> Builds pages

Thanks,
Scott
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Add/Remove Name for Multiple Instances

Hi Scott,

The property can be set in the Install Parameters page, where you can also set a different value for each build that you created in the Media page.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”