Old 23rd May 2011, 13:46   #1
mena11
Junior Member
 
Join Date: Jun 2008
Posts: 4
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.
mena11 is offline   Reply With Quote
Old 23rd May 2011, 14:11   #2
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 672
You can't remove the checkbox, but you can disable it.
call
PHP Code:
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.
jpderuiter is offline   Reply With Quote
Old 23rd May 2011, 14:14   #3
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 562
Send a message via ICQ to T.Slappy
Simply use
code:
ShowWindow $mui.FinishPage.Run ${SW_HIDE}
to hide it.

Cool looking installers with custom design: www.graphical-installer.com
Create Setup Pages easily: www.install-designer.com
Build installers in Visual Studio 2005-2022: www.visual-installer.com
or RAD Studio 2009 - 11 Alexandria: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 23rd May 2011, 14:41   #4
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 672
That would be extra rude...
jpderuiter is offline   Reply With Quote
Old 23rd May 2011, 17:17   #5
mena11
Junior Member
 
Join Date: Jun 2008
Posts: 4
Thx

where to put this line ?
mena11 is offline   Reply With Quote
Old 23rd May 2011, 19:19   #6
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
"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.
MSG is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump