|
|
#1 |
|
Junior Member
|
${NSD_GetState}
hello,
are there another ways to save the control state without having to write ${NSD_GetState} like this: code: can nsis autosave it when switching to another page like innosetup does? im just curious if it will be possible in the next version of nsis. thank you so much! |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Oct 2006
Posts: 555
|
NSIS does nearly nothing automatic. Not everyone will want the state to be saved automatically, after all. This can be done very easily manually, so there's no point in automating it.
|
|
|
|
|
|
#3 |
|
Junior Member
|
"not everyone" means some of them do want it
![]() so what's the point to not automating it? I am creating an installer which requires a lot of custom forms (for now 2 and will increase to 5), each of them will have 2-4 text controls and 2 or 3 checkboxes which have their own event handlers. imagine how long the codes will. i'm not lazy, i'm just thinking the codes will be harder to read and maintenance. Last edited by doniking; 19th March 2010 at 21:24. |
|
|
|
|
|
#4 | ||
|
Major Dude
Join Date: Oct 2006
Posts: 555
|
Quote:
Quote:
|
||
|
|
|
|
|
#5 | ||
|
Junior Member
|
Quote:
![]() Quote:
is it possible to save all control's states using a macro so i can reuse it in another installation project? |
||
|
|
|
|
|
#6 |
|
Major Dude
Join Date: Mar 2003
Posts: 529
|
Using InstallOptions instead of nsDialogs may help because it makes it easier to retain the state. But if you have never used InstallOptions before then you'll have to learn how to use it, so it may not be the best solution for you.
|
|
|
|
|
|
#7 |
|
Junior Member
|
@pengyou: yes i used installoptions before but i forgot if it saves the states. does it support event handler onchange onkeypress, etc ?
Last edited by doniking; 20th March 2010 at 18:35. |
|
|
|
|
|
#8 | |
|
Major Dude
Join Date: Jun 2001
Posts: 900
|
Quote:
Personally I'd say setting up page leave/enter function to store/restore the settings isn't all that painful and makes you more aware of your custom pages' functionality. |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|