Archive: Unzipping plugin advice needed.


Unzipping plugin advice needed.
Hi,
I'm in need for a recommendation for a good unzipping plugin for NSIS since I need to ship large files with the installer.

I'm currently trying the nsisunz plugin but I'm running into problems. I don't seem to be able to use a local folder path for the extraction script. Here's the problem:

I've got the nsis compiled installer along with the zip file lying in a random folder. I don't seem to be able to have the installer extract the file from this same folder without giving an absolute folder path to the zip file. This is absolutely necessary for me though as I have no idea where the users will place the install files. They could be in a downloads folder, on a CD or somewhere else altogether. I'm currently using the following command in my installer:

nsisunz::Unzip "test.zip" "$INSTDIR"

The above line does not work while the following will work when all files are placed in "C:\installer_test_folder":

nsisunz::Unzip "C:\installer_test_folder\test.zip" "$INSTDIR"

Any idea on how I can give the script the path of the folder where the user runs the installer from so I don't have to use hardcoded paths?

Thanks in advance.


http://nsis.sourceforge.net/Docs/Chapter4.html#4.2.3
$EXEDIR


Thank you good sir. I tried $EXEPATH before which didn't work. Leaves me wondering what this was supposed to do. Anyway $EXEDIR is working fine so thanks for the quick help.


Call MessageBox MB_OK "$EXEPATH" and you'll see what's going wrong.
It's because of the definition of 'path', which is misunderstood often.