Maverick
Posts: 54
Joined: Mon Aug 18, 2008 12:11 pm

Multiple instances and Folders

Hello ,
I like to have multiple instances installed and use this feature. So i like my application to be installed in a folder "Test [|InstanceID]".
So I expected that the first instance is installed in Test 0 and the second one in Test 1 and so on. But that doesn't work only the first Folder is created.

How can I automatically install the instances in different subfolders depending on the instance?


Regards

Maverick
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Multiple instances and Folders

Hi Maverick,

Please note that "[|InstanceID]" is a pseudo-formatted reference which is resolved at build time. To use the instance ID in the installation path you can use something like this:

Code: Select all

[ProgramFilesFolder][Manufacturer]\[ProductName]\[InstanceId]
The default path of "Application Folder" can be set in the Install Parameters page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Maverick
Posts: 54
Joined: Mon Aug 18, 2008 12:11 pm

Re: Multiple instances and Folders

Hi Cosmin,

that will not work in my case. I need a special folder structure to install.

my APPDIR will be for example: program Files\siemens\CocSolutionkit

then I create a folder like Realtimesystem

another one is Realtimesytem\RealtimeServer
then Realtimesytem\RealtimeNodes

and now I need Subfolders depending on the Instance like

Realtimesytem\RealtimeNodes\Node1
Realtimesytem\RealtimeNodes\Node2
Realtimesytem\RealtimeNodes\Node3

Do you have any idea to do this?

regards

Maverick
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Multiple instances and Folders

Hi,

Unfortunately what you need is not supported directly by Advanced Installer. However, you can try using a "Directory set with Formatted" custom action to set the path of your custom folder to something that contains the Instance ID. This custom action can be scheduled after the "CostFinalize" standard action.

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

Return to “Common Problems”