Hi,
I want to set the default location for a brows button based on registry key.
This value will populate the brows text box and be the default search location.
This location will later be used as the application installation folder.
I want to check if
\HKEY_CURRENT_USER\SOFTWARE\...\V2\LastRun
exist and if yes use its value as the default for the browse.
If it does not exist use:
\HKEY_CURRENT_USER\SOFTWARE\...\V1\LastRun
Currently my install dir is set to search criteria [MYINSTALLDIR]
I created another search criteria [MYINSTALLDIR2]. I guess I can also create another search criteria to check if \HKEY_CURRENT_USER\SOFTWARE\...\V2\LastRun exists.
So at the end I want my installation dir to be MYINSTALLDIR2 if \HKEY_CURRENT_USER\SOFTWARE\...\V2\LastRun exists and if not use MYINSTALLDIR
How can I achieve this?
B.
FOLLOW US
Get the latest news in Application Packaging