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!

Joburgtaxi
Posts: 1
Joined: Thu Mar 17, 2016 4:47 pm

Installation path

Hi

I would like to install the files from my installer into an existing path however the path may be variable from computer to computer but the path needed per computer is available in the registry.

How can I make the installer go and pre fetch this path from the registry and make this the starting point for the install and then install the files to a sub folder of this predefined path ?

Thanks

Drryn
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installation path

Hello Drryn and welcome to Advanced Installer forums,
I would like to install the files from my installer into an existing path however the path may be variable from computer to computer but the path needed per computer is available in the registry.
In order to retrieve the related path from the registry you can create a registry search operation in the Search page of Advanced Installer. Use the [ New Search Wizard ] toolbar button, to set up a new search, following step-by-step directions.

The property (by default it is RESULT_PROPERTY) that is assigned to the search operation will contain the value found in the registry. If registry is not found, then the property is empty.
How can I make the installer go and pre fetch this path from the registry and make this the starting point for the install and then install the files to a sub folder of this predefined path ?
Please note that during installation you can set the APPDIR with the result of the search operation.

For example, you can use the predefined Set installer property custom action to set the APPDIR. Note that you should add the custom action after the paths Resolution stage from the Wizard Dialogs Stage. Also, you should condition the custom action execution, something as below:
SetPropertyCA properties.png
SetPropertyCA properties.png (36.87 KiB) Viewed 1825 times
Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”