|
|
#1 |
|
Junior Member
Join Date: Aug 2014
Posts: 5
|
Checkboxes in "PageEx directory"
Hey guy,
how do I make something like this code: I included this file in my installer but it won't work. While this does: code: |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
NSD_* macros only work on custom pages that use the nsDialogs plugin, if you want to change the standard dialogs you must use Resource Hacker and the ChangeUI instruction...
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 | |||
|
Junior Member
Join Date: Aug 2014
Posts: 5
|
Quote:
We remcompile the Installer pretty often, so it would be no so good to use ResHacker every time. The thing I want is a page that looks like the standard page but with a checkbox. (I want the checkbox to provide "Advanced settings") ________________________________________________________ Edit: Okay if this doesn't work, here is an other question. If my checkbox is not checked, then I want to skip the next 2 pages. Quote:
Quote:
|
|||
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
You only use Resource Hacker once on a file in \NSIS\Contrib\UIs and save as a new .exe that you give to ChangeUI in the script.
To skip a page you must call Abort in the pre-callback for that page... IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 | ||
|
Junior Member
Join Date: Aug 2014
Posts: 5
|
Quote:
Edit: I just wrote this in my "java-selection-page.nsi"file and it seems not the work Quote:
|
||
|
|
|
|
|
#6 | ||||
|
Major Dude
Join Date: May 2005
Location: New Zealand
Posts: 916
|
Quote:
Quote:
Quote:
This (http://nsis.sourceforge.net/NonObligatoricPages) is also a good example for run time commands and page skipping. "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me) NSIS 3 POSIX Ninja Wiki Profile |
||||
|
|
|
|
|
#7 | |
|
Junior Member
Join Date: Aug 2014
Posts: 5
|
Thank you very much your your answers, it works pretty good so far.
Just one more question, if I check my checkbox then press "Next" and then "Back" then my checkbox doesnt show as checked. I see where the problem ist, but I dont know how to fix it. Quote:
|
|
|
|
|
|
|
#8 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
You normally don't use OnClick on a checkbox, you just get the state in the page leave callback function with NSD_GetState. When you create the page you need to use NSD_SetState so back works correctly...
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Aug 2014
Posts: 5
|
Thank you very much for your help!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|