Hi Everyone,
First post and just started using NSIS. Really cool environment.
I have an installer working perfectly, but I need to add a license page and acceptance before install.
I cannot seem to get the syntax right or where to place the page code.
PageEx license
LicenseData license.txt
LicenseForceSelection checkbox
PageExEnd
Note if I place the PageEx code in my script it does bring up the license and Checkbox but it will not execute the Section code to continue with the installation. I'm hoping that I'm missing something simple.
Any assistance would be greatly appreciated.
Kindest,
Adding License Page to working script
5 posts
Do you have other pages? You need Page InstFiles.
Adding License
Thanks for the reply!
This is my whole script. Without the PageEx section it works fine, I'm not sure where to add the PageEx section.
;--------------------------------
; The name of the installer
Name GEO-OSINT-INSTALLER
; The file to write
OutFile "GEO-OSINT-INSTALLER.EXE"
; The default installation directory
InstallDir $PROGRAMFILES\SilentSignals\GEO-OSINT
; The text to prompt the user to enter a directory
DirText "Select Target Folder for Installation"
;--------------------------------
PageEx license
LicenseData licdata.txt
LicenseForceSelection checkbox
PageExEnd
; The stuff to install
Section "" ;No components page, name is not important
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File GEO-OSINT.exe
File hlist.db
File locations.kb
File ss.jpg
File go.ico
CreateShortcut "$DESKTOP\GEO-OSINT.lnk" "$INSTDIR\GEO-OSINT.EXE"
SectionEnd ; end the section
Thanks for the reply!
This is my whole script. Without the PageEx section it works fine, I'm not sure where to add the PageEx section.
;--------------------------------
; The name of the installer
Name GEO-OSINT-INSTALLER
; The file to write
OutFile "GEO-OSINT-INSTALLER.EXE"
; The default installation directory
InstallDir $PROGRAMFILES\SilentSignals\GEO-OSINT
; The text to prompt the user to enter a directory
DirText "Select Target Folder for Installation"
;--------------------------------
PageEx license
LicenseData licdata.txt
LicenseForceSelection checkbox
PageExEnd
; The stuff to install
Section "" ;No components page, name is not important
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put file there
File GEO-OSINT.exe
File hlist.db
File locations.kb
File ss.jpg
File go.ico
CreateShortcut "$DESKTOP\GEO-OSINT.lnk" "$INSTDIR\GEO-OSINT.EXE"
SectionEnd ; end the section
Add "Page InstFiles" after PageExEnd. InstFiles is added automatically if there are no pages in the script.
You might also want to add a directory page. And you should write the shortcut to $smprograms, not the desktop...
You might also want to add a directory page. And you should write the shortcut to $smprograms, not the desktop...
Thanks for all your assistance.
Got it working.
Love the tool.
Got it working.
Love the tool.