martinmacca
29th May 2010 00:59 UTC
How to add Install Directory Path to Registry?
I want to add the install directory path to the registry.
So if the user installs into C:\Program Files\Test App
I want Path "C:\Program Files\Test App" added to the registry HKEY_LOCAL_MACHINE\SOFTWARE\Test App
I've searched the forums and all i can find is how to lookup the install path not add it to the registry
redxii
29th May 2010 03:03 UTC
WriteRegStr HKLM "Software\Test App" "Path" "$INSTDIR"
"Path" can be replaced with anything value of your choosing.
martinmacca
29th May 2010 03:43 UTC
Superb - worked perfectly ;)
Thanks for your help
Afrow UK
29th May 2010 09:19 UTC
And you can use InstallDirRegKey to have the installer automatically read that value.
Stu