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
FOLLOW US
Get the latest news in Application Packaging