InstallDir and registry (newbie)
I want the installer automatically set in the browse window the Half-Life folder, i think it has something to do with the registry, but i don't know how to do it.
(sorry for bad english)
Archive: InstallDir and registry (newbie)
InstallDir and registry (newbie)
I want the installer automatically set in the browse window the Half-Life folder, i think it has something to do with the registry, but i don't know how to do it.
(sorry for bad english)
so i have tried it myself
InstallDir "$INSTDIR"
InstallDirRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Valve\Half-Life\InstallPath" ""
DirText "Choose the Half-Life directory:"
but it didn't work :(
InstallDirRegKey HKEY_LOCAL_MACHINE "Software\yourapp" "Install_Dir"
Where "Software\yourapp" is the Key (folder at the left in regedit), and "Install_Dir" is the string (in 'name' column in right hand frame of regedit)
This will make the install dir default to the value of the String "Install_Dir"
That should be what you need...
Oh, it works !!
THANKS !!