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!

horstkroener
Posts: 2
Joined: Mon Nov 05, 2012 12:38 pm

property based folder with subfolder

We need to create external links in startmenu.
these links point to a UNC path, snd start some exe files from there.

That works well, but we ned to set the working directory as well in those links.
This can be don only by selecting folders or properties.

The problem is, i need to set the working dir according to the place where msi was launched, and add subfolders to that path.
the MSI Folder during installation is got by [SourceDir]
then something like \programm has to be added.
Whenever i create properties in the way [SourceDir]\programm, i get the error \programm not available when i run setup.

I managed it one time by creating the link with cmd line using the -wkdir option, this created the SourceDir\programm folder and i could use it to set the working directory for the external links.
However, then i aded manually a second Subfolder, and from now on the link points to the local programm Directory.

I cannot get this running anymor.

How can i set the Working Directory of an external link to the path [SourceDir]\programm ?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: property based folder with subfolder

Hi and welcome to our forums,

To set the desired path as a working directory you must first define it as a folders in Files and Folders page. So you create a new property based folder for "SourceDir" and under this new folder create your normal folder called "program". Now you can go edit the shortcut and select the target working directly folder.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
horstkroener
Posts: 2
Joined: Mon Nov 05, 2012 12:38 pm

Re: property based folder with subfolder

Hello and thanks for the reply,

it was clear to me that i need a property based folder. the problem was the path to that network folder was not available at that point.
I found in the help how to do it:
the solution is, to define a property to a folder wich always exists, for example the windows directory, and then use a custom action to redefine this property AFTER the "Preparing" execution state, as it seems before the installer property [SourceDir] is not filled correctly. With that it works perfectly now, even i need different ways to redefine the properties, as for example changing the installation from controlpanel does not have the same source path. So some additional registry settings where usefull.

thanks anyway, that problem is solved

Return to “Common Problems”