|
|
#1 |
|
Junior Member
Join Date: Jun 2003
Location: Germany
Posts: 20
|
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 |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
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.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Debian user
(Forum King) Join Date: Jan 2003
Location: Arch land
Posts: 4,896
|
Don't you mean:
$EXEDIR: code:
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4. * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4. |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jun 2003
Location: Germany
Posts: 20
|
Very fast answer! Thanks.
Now, I was looking in the documentation and I think InstallDir $EXEDIR is the an easier way. |
|
|
|
|
|
#5 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Installer, right, my bad. I thought it was another application.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|