timecop12
27th June 2003 20:53 UTC
Install in the directory of installer
Hi all,
how can I set the $INSTDIR to the same
directory as the installer file is.
Example:
C:\downloads\myinstaller.exe
$INSTDIR = C:\downloads
It sould be the current path of the installer file.
Thanks
- timecop
kichik
27th June 2003 21:01 UTC
Use the GetParent function to get the parent directory of any file. Finding the file is up to you. It can be done searching the hard disk, reading from the registry or any other file. If you need help figuring out how a certain way post back here and someone will surely be able to help.
Joel
27th June 2003 21:07 UTC
Don't you mean:
$EXEDIR:
InstallDir "$EXEDIR"
;)
timecop12
27th June 2003 21:15 UTC
Very fast answer! Thanks.
Now, I was looking in the documentation and I think
InstallDir $EXEDIR
is the an easier way.
kichik
27th June 2003 21:21 UTC
Installer, right, my bad. I thought it was another application.