Page 1 of 1

Read install directory from existing registry key?

Posted: Tue Dec 29, 2015 10:10 pm
by chuck
I want to install my files into a directory location I pull from an existing registry key. Can't figure out where the magic is... can you point me in the right direction?

Re: Read install directory from existing registry key?

Posted: Sat Jan 30, 2016 12:31 pm
by ggrewe
Chuck,

In the "System" Section, there is a "Variables" tab. Create your custom variable here and populate that value from the Registry. Or, if you are trying to set the "<InstallDir>" for your installation to the value already in the Registry, add a new Variable like so;

Code: Select all

Variable:               <InstallDir>
Registry Bitness:    32-bit
Registry Key:         HKLM\Software\<CompanyName>\<AppName>
Registry Value:      InstallPath
Value Type:           STRING
Default Data:         <ProgramFiles>\<CompanyName>\<AppName>