- use BM_GETCHECK instead of BM_SETCHECK to get reboot now's state
- compare check state as a number (rebooting should work now) git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5291 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
83a44fd2e7
commit
e4a9f65806
1 changed files with 4 additions and 4 deletions
|
@ -425,8 +425,8 @@ Finish page (implemented using nsDialogs)
|
|||
|
||||
;Check whether the user has chosen to reboot the computer
|
||||
${if} ${RebootFlag}
|
||||
SendMessage $mui.FinishPage.RebootNow ${BM_SETCHECK} 0 0 $mui.FinishPage.ReturnValue
|
||||
${if} $mui.FinishPage.ReturnValue == ${BST_CHECKED}
|
||||
SendMessage $mui.FinishPage.RebootNow ${BM_GETCHECK} 0 0 $mui.FinishPage.ReturnValue
|
||||
${if} $mui.FinishPage.ReturnValue = ${BST_CHECKED}
|
||||
Reboot
|
||||
${else}
|
||||
Return
|
||||
|
@ -441,7 +441,7 @@ Finish page (implemented using nsDialogs)
|
|||
|
||||
SendMessage $mui.FinishPage.Run ${BM_GETCHECK} 0 0 $mui.FinishPage.ReturnValue
|
||||
|
||||
${if} $mui.FinishPage.ReturnValue == ${BST_CHECKED}
|
||||
${if} $mui.FinishPage.ReturnValue = ${BST_CHECKED}
|
||||
!ifndef MUI_FINISHPAGE_RUN_FUNCTION
|
||||
!ifndef MUI_FINISHPAGE_RUN_PARAMETERS
|
||||
Exec "$\"${MUI_FINISHPAGE_RUN}$\""
|
||||
|
@ -459,7 +459,7 @@ Finish page (implemented using nsDialogs)
|
|||
|
||||
SendMessage $mui.FinishPage.ShowReadme ${BM_GETCHECK} 0 0 $mui.FinishPage.ReturnValue
|
||||
|
||||
${if} $mui.FinishPage.ReturnValue == ${BST_CHECKED}
|
||||
${if} $mui.FinishPage.ReturnValue = ${BST_CHECKED}
|
||||
!ifndef MUI_FINISHPAGE_SHOWREADME_FUNCTION
|
||||
ExecShell open "${MUI_FINISHPAGE_SHOWREADME}"
|
||||
!else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue