mena11
23rd May 2011 14:46 UTC
Disable the run app checkbox on MUI_FINISHPAGE
Hi
I want to disable the checkbox in the MUI_FINISHPAGE.
so it will run the app all the time .
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
!define MUI_FINISHPAGE_RUN_TEXT "Run Install Drivers and Settings"
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\LICENSE.TXT"
!define MUI_FINISHPAGE_RUN "$INSTDIR\ResetDrv.exe"
in the bold line : i want to display without the checkbox.
Thanks.
jpderuiter
23rd May 2011 15:11 UTC
You can't remove the checkbox, but you can disable it.
call
EnableWindow $mui.FinishPage.Run 0
>
in the Show Callback function of the Finish page.
However, I would really advice you not to disable it, because users won't like it.
If you really need the drivers to be installed, just add another section where you install the drivers, so it will happen during installation.
T.Slappy
23rd May 2011 15:14 UTC
Simply use
ShowWindow $mui.FinishPage.Run ${SW_HIDE}
to hide it.
jpderuiter
23rd May 2011 15:41 UTC
That would be extra rude...
mena11
23rd May 2011 18:17 UTC
Thx
where to put this line ?
MSG
23rd May 2011 20:19 UTC
"in the Show Callback function of the Finish page." <-- you already have the answer.
Also deruiter is correct, you should not force running something. If it's a required part of the installation procedure you need to run it during installation, so on the instfiles page. Anything from the finish page should be optional.