Archive: NSIS Script and browse button


NSIS Script and browse button
Hey folks,

I'm not a programer..But I use this and various other scripts to compile and build .exe for bundles of music content I deliver over the internet. The build and extraction work fine. The problem I have is that when you double click on the .exe file to extract...Even when I choose another directory from the browse button, the files extract to the current folder where the .exe file resides ??? Anyone have an idea of what I'm missing ? Here is a the script...

; example1.nsi
;
; This script is perhaps one of the simplest NSIs you can make. All of the
; optional settings are left to their default settings. The installer simply
; prompts the user asking them where to install, and drops a copy of makensisw.exe
; there.

;--------------------------------

; The name of the installer
Name "1linkdist"

; The file to write
OutFile "e:\AAAEncodedFiles\Land_MP2.exe"

; The default installation directory
InstallDir $EXEDIR

; The text to prompt the user to enter a directory
DirText "1linkdist tool. Choose a directory to install."

;--------------------------------

; The stuff to install
Section "" ;No components page, name is not important

; Set output path to the installation directory.
SetOutPath $EXEDIR

; Source file
File /r e:\AAAEncodedFiles\Land\MP2

SectionEnd ; end the section
;LogSet on;


Replace "SetOutPath $EXEDIR"
with "SetOutPath $INSTDIR"


Perfect..
Thanks, thats was it !