tmxk
10th December 2008 18:58 UTC
How to remember user selections after clicking Back or Next?
Hi to all, especially to Stu,
I found an example to remember user's selections after clicking button Back or Next at http://nsis.sourceforge.net/Two_inst..._one_installer , it is quite complicated. What do we need to do if I have over 10 options? Is there a simpler approach to implement the feature since the NSIS version is 2.41?
Thanks in advance.
TMXK
Yathosho
10th December 2008 20:15 UTC
save them in a variables?
tmxk
10th December 2008 20:24 UTC
There should be a mechanizm behind to remember the selections.
Animaether
11th December 2008 08:04 UTC
.. what makes you think it doesn't already? I'm assuming you're referring to selections on the Components page, at least..
!include "LogicLib.nsh"
Name "Test"
OutFile "SetupTest.exe"
InstallDir "$PROGRAMFILES\Test"
Page Directory
Page Components
Page Directory
Section "A" "a"
SectionEnd
Section "B" "b"
SectionEnd
Section "C" "c"
SectionEnd
Evaluate, click Next on the first directory page, uncheck the 'B' section, click Next then Back, or Back then Nect.. 'B' section should still be unchecked.
tmxk
11th December 2008 16:22 UTC
You are right.
As long as I use my own function for Components page, the selections will be lost after clicking Next or Back.
And I checked the function and found that I mixed component option unselect and disable.
Finally I fixed the function and it works,
Thank you very much for your help.