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!

VoIPToys
Posts: 4
Joined: Thu Jan 30, 2014 4:54 am

Change product name in folders, IIS, Programs

We are building a multi-tenant application installer and need to modify paths, IIS Websites, Uninstaller, etc.

I can pass a parameter to the installer at runtime and change many of the things required using a User Property but I'm having trouble with a couple of things. I cannot change the following:

* The application name in Add / Remove Programs
* The folder where the IIS website is stored
* The Uninstaller shortcut

This is a significant roadblock because I can't install the same application more than once on the same server even if it is installed in different folders because I can't figure out which entry is associated with which install.

At the moment I can't install the application multiple times -- perhaps because a program with the same name already exists?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Change product name in folders, IIS, Programs

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.
* The application name in Add / Remove Programs
Please take a look on our "Installing MultipleInstances With a CustomName Provided" thread which debates the same issue. If this doesn't help please provide us more details about the behavior you want to achieve (maybe exemplify).
* The folder where the IIS website is stored
In order to achieve this you can change at install time the value of the web site folder associated property. For example, if your web site will be installed in the application folder (APPDIR property), then you can add, in "Custom Actions" page, a "Set installer property" custom action like this:
  • Property: APPDIR
    Value: your path
* The Uninstaller shortcut
I'm afraid I don't fully understand what you mean. Can you please be more specific about what do you to change on your uninstall shortcuts?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
VoIPToys
Posts: 4
Joined: Thu Jan 30, 2014 4:54 am

Re: Change product name in folders, IIS, Programs

Because we need multiple instances of the same application, I need to create an uninstaller shortcut with a unique name for each instance. That way, when you search for the uninstaller shortcut in Windows 8 by name you can determine which shortcut goes with which instance.

I think I'm stuck, however, because we only have the Professional edition and it looks like the multi-instance option is only available in the Enterprise edition and that's a big jump in dollars.
VoIPToys
Posts: 4
Joined: Thu Jan 30, 2014 4:54 am

Re: Change product name in folders, IIS, Programs

In an effort to specify the path where the website files exist I attempted to use a custom action SetDirectoryPath with this value:

[CommonAppDataFolder][Manufacturer][WEBPATH][ProductName][TENANT_NAME]

This resolves correctly but returns an error at install time:

"Custom action SetDirectoryPath specifies unsupported type"

[WEBPATH] is specified at build time as a user property, but [TENANT_NAME] is specified at runtime by passing a parameter to the installer.

Suggestions?
VoIPToys
Posts: 4
Joined: Thu Jan 30, 2014 4:54 am

Re: Change product name in folders, IIS, Programs

I figured out the website path issue. Your guidance was VERY helpful. Thank you.

Currently in Add / Remove Programs the first instance is [ProductName], the second is [ProductName][InstanceId]. I would prefer the first instance be [ProductName][TENANT_NAME] and the second as [ProductName][TENANT_NAME]... where a unique [TENANT_NAME] is passed to the installer via a command-line parameter. [TENANT_NAME] now works everywhere except for the Uninstaller shortcut and in Add / Remove programs. Is it possible to dynamically name my instances in a multi-instance setup? I really want to name my programs something other than [ProductName][InstanceId] in add / remove programs.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Change product name in folders, IIS, Programs

Hello,
Because we need multiple instances of the same application, I need to create an uninstaller shortcut with a unique name for each instance. That way, when you search for the uninstaller shortcut in Windows 8 by name you can determine which shortcut goes with which instance.
In order to achieve this you can simply add, in the "Shortcut Properties Dialog", a name like this:

Code: Select all

Uninstall[|InstanceId]
I think I'm stuck, however, because we only have the Professional edition and it looks like the multi-instance option is only available in the Enterprise edition and that's a big jump in dollars.
VoIPToys

Indeed, our "Multiple Instances" feature is available only with an "Enterprise" or higher license type.
Currently in Add / Remove Programs the first instance is [ProductName], the second is [ProductName][InstanceId]. I would prefer the first instance be [ProductName][TENANT_NAME] and the second as [ProductName][TENANT_NAME]... where a unique [TENANT_NAME] is passed to the installer via a command-line parameter.
Unfortunately, this is our default behavior. I'm afraid we don't have support to set the [TENANT_NAME] through a set installer property command line. Maybe we will add this improvement in a future version of Advanced Installer. Thank you for your suggestion.

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

Return to “Building Installers”