vpatel2611
Posts: 9
Joined: Thu Oct 08, 2009 5:23 pm

Multiple Instances question

I have a setup project that asks the user to enter an environment name, then creates a folder with that name, installs my file/folders, creates a IIS virtual directory & app pool (with the environment name that the user entered) and does some other things.

My users normally have a production environment and a training environment. So, I can create 2 instance Ids and name them correctly. The issue is that some users will have more than 2 instances. I do not know how many or what they will be called. Is there any way to handle this? Is there a way to supply the Instance Id and the required properties as parameters, so the user can launch the setup.exe or msi from the command line, supply the parameters and it can auto-generate the GUID? That's just a thought. If there is any other way do doing this, please let me know.

Thanks.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Multiple Instances question

Hello,

I am afraid this is not possible. Also there is no workaround for this issue. You can add more instances from the Multiple Instances tab if you anticipate that users will have more than two instances. However this can not be configured at runtime.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ayang
Posts: 1
Joined: Mon Mar 14, 2011 9:59 pm

Re: Multiple Instances question

If I define in advance multiple instances - is it possible to override the ProductName property dynamically? i.e., I'd like to use user input as part of the ProductName string.

Thanks,
Andy
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Multiple Instances question

Hi Andy and welcome to the Advanced Installer Forums,

Unfortunately, the Product Name value text field is pseudo-formatted which means it will be resolved at build time.

For more information please read these user guide articles:
http://www.advancedinstaller.com/user-g ... perty.html
http://www.advancedinstaller.com/user-g ... atted.html

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rn-pro
Posts: 48
Joined: Thu Jun 16, 2011 10:27 am

Re: Multiple Instances question

Hi Mihai,

I have the same wish like Andy to customize de ProductName based on user input. That's why I'd like to ask if it's something new in the newest version or if you see a possibility to change it per custom-action/VBScript?

Thank you very much,
Razvan
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Multiple Instances question

Hi Razvan,

Unfortunately, since the field is pseudo-formatted the property value will be resolved at build time it cannot be changed at install time( user input ). Currently, there is no workaround for this.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”