Old 9th August 2010, 21:53   #1
Bansaw
Junior Member
 
Bansaw's Avatar
 
Join Date: Jul 2010
Posts: 32
FINISHPAGE - deactivating the checkbox ... ?

I have been told that we should launch the ReadMe.pdf instructions when we exit the installer.
The boss really, really wants them to read it.

So, at the moment I have a checkbox [/] Read Instructions
But the user can uncheck the box (as happened today and it led to his confusion on what he should do next).

We want the checkbox to appear but for it to be de-activated so the user cannot check or uncheck it. It stays checked no matter what.

Any ideas?
Bansaw is offline   Reply With Quote
Old 9th August 2010, 23:47   #2
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 672
You can use the function EnableWindow to disable a control.

If you use MUI, the handle to the checkbox is:
$mui.FinishPage.Run

You should disable the control in the SHOW callback function of the finishpage.
jpderuiter is offline   Reply With Quote
Old 10th August 2010, 11:02   #3
orecchionebruno
Junior Member
 
Join Date: Jun 2010
Posts: 35
I thing that what you are looking for is this:

;this event is run on the finish event if installer has success
Function .onInstSuccess
ExecShell "Open" "$INSTDIR\MyDPF.pdf"
FunctionEnd
orecchionebruno is offline   Reply With Quote
Old 10th August 2010, 11:34   #4
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 672
Quote:
Originally Posted by Bansaw View Post
We want the checkbox to appear but for it to be de-activated so the user cannot check or uncheck it. It stays checked no matter what.
The checkbox will not show with your solution...
jpderuiter 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