Even easier paging system, no more Abort and Quit from custom pages creator functions, NSIS does it all!
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1636 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
35b45db225
commit
297e981d32
17 changed files with 123 additions and 335 deletions
|
@ -9,7 +9,7 @@ OutFile "StartMenu Test.exe"
|
|||
XPStyle on
|
||||
|
||||
Page directory
|
||||
DirText "This installer will create some shortcuts to MakeNSIS in the start menu.$\nFor this it needs NSIS's folder path." \
|
||||
DirText "This installer will create some shortcuts to MakeNSIS in the start menu.$\nFor this it needs NSIS's path." \
|
||||
"Please specify the path in which you have installed NSIS:"
|
||||
InstallDir "${NSISDIR}"
|
||||
Function .onVerifyInstDir
|
||||
|
@ -21,7 +21,7 @@ Page custom StartMenuGroupSelect
|
|||
Function StartMenuGroupSelect
|
||||
SendMessage $HWNDPARENT ${WM_SETTEXT} 0 "STR:StartMenu.dll test Setup: Start Menu Folder"
|
||||
|
||||
StartMenu::Select /autoadd "StartMenu.dll test"
|
||||
StartMenu::Select /autoadd /lastused $R0 "StartMenu.dll test"
|
||||
Pop $R1
|
||||
|
||||
StrCpy $R2 $R1 5
|
||||
|
@ -29,11 +29,8 @@ Function StartMenuGroupSelect
|
|||
; error
|
||||
MessageBox MB_OK $R1
|
||||
Return
|
||||
StrCmp $R1 "cancel" 0 +2
|
||||
Quit
|
||||
StrCmp $R1 "back" 0 +2
|
||||
Abort
|
||||
StrCpy $R0 $R1 ; got the dir
|
||||
StrCpy $R0 $R1 ; got the dir, or cancel, but if it's cancel NSIS will exit and
|
||||
; then we shouldn't care about the value of $R0
|
||||
FunctionEnd
|
||||
|
||||
Page instfiles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue