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!

episodka
Posts: 1
Joined: Wed Jul 22, 2015 6:11 pm

Installation path from the registry

I want my application, setup in a folder to another program.
I want to install path another program has been found in the registry and set as the installation path to my programm.
It's possible?
Sorry for my english.

UPD. I found it in variables. But if registry key not found installation stopped with error. How set install path to default or other if registry key not found?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installation path from the registry

Hello,
I want to install path another program has been found in the registry and set as the installation path to my programm.
In order to search through the registry, you can go in the Search page and create a registry search operation. Use the [ New Search Wizard ] toolbar button, to quickly set up a new search, following step-by-step directions.
If the related path will be found in the registry, then the property assigned to the search operation will be set, otherwise it will be empty.

The APPDIR property contains the installation path. So, you can use the Set Installer property custom action to set the installation folder (APPDIR property) with the path retrieved from the registry. e.g go in the Custom Actions page and add the "Set installer property" custom action after the "Wizard Dialogs Stage -> Searches" action group with the following configuration:
  • Property: APPDIR
  • Value: [RESULT_PROPERTY]
  • Condition: RESULT_PROPERTY
if registry key not found installation stopped with error.
For this, you can use the predefined Display error message custom action. In the custom actions page add this custom action after the Searches stage from the Wizard Dialogs Stage.
Condition its execution so that it will be executed when the property assigned to the search operation is empty. (e.g. NOT RESULT_PROPERTY).

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”