Use registry value in Application Folder - Advanced Installer Community

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!

sduong79
Posts: 3
Joined: Tue May 24, 2011 5:17 pm

Use registry value in Application Folder

I'm trying to get a specific registry value (a path) and use it for the Application Folder field (destination). Is there a way to do this?

For example. I'm going to install something to C:\Path\AnotherPath\. As part of that install, it will write the path to the registry. Now, in another installer, I want the ability to grab that registry value and install to the same destination directory.
CiprianComsa
Posts: 110
Joined: Thu Aug 19, 2010 10:11 am
Contact: Website

Re: Use registry value in Application Folder

Hi,

This can be achieved easily.
- First schedule a registry search for the value that contains the installation path.
The property of this search can then be used to condition a custom action which sets the default installation folder (the APPDIR property).
You can create a "Property Set with Formatted" custom action. This custom action should be placed under the AppSearch standard action.
This custom action can use the search property in its condition to run only if the search finds something.

Regards,
Ciprian
__________________________________________________________________________________________________________________________________________________
Ciprian Comsa
Advanced Installer Team
http://www.advancedinstaller.com/
Ciprian Comsa - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sduong79
Posts: 3
Joined: Tue May 24, 2011 5:17 pm

Re: Use registry value in Application Folder

Thanks, it works great!!

Return to “Common Problems”