burn_mame
21st September 2003 18:29 UTC
setting install directory to exe location
Hello again,
I did read about that faxt that one should be able to
set the default install location to where a specified
exe file is located. Of course still letting user
select there own output directory.
I can't figure out how to.
Thanks,
Ryland
MathiasSimmack
21st September 2003 19:00 UTC
Re: setting install directory to exe location
You could use InstallDirRegKey with the "UninstallString" value in the registry. But this requires a previous installed version.
InstallDirRegKey HKLM \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\YourOldApp" \
"UninstallString"
Another way is using
FindFirst (and related) to search the file. The best place for this should be the ".onInit" event.
Mathias.
burn_mame
21st September 2003 19:34 UTC
thank you but I do not have control over how the .exe is installed.
Ryland
Joost Verburg
21st September 2003 19:48 UTC
You can set the default folder using InstallDir.
burn_mame
21st September 2003 20:32 UTC
I can do that but I would have to guess as to where the end user has the exe file installed....hoping to run installer and have it search for exe file and set InstallDir to the directory that the specified exe resides in.
Thanks,
Ryland
Joost Verburg
21st September 2003 20:34 UTC
You can use the .onVerifyInstDir function to validate.