- 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:
kichik 2007-09-28 18:35:16 +00:00
parent 83a44fd2e7
commit e4a9f65806

View file

@ -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