![]() |
#1 |
Junior Member
Join Date: Sep 2021
Posts: 3
|
Adding License Page to working script
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, |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,445
|
Do you have other pages? You need Page InstFiles.
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Sep 2021
Posts: 3
|
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 |
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,445
|
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... IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Sep 2021
Posts: 3
|
Thanks for all your assistance.
Got it working. Love the tool. |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|