Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Disable Checkbox on finish page (http://forums.winamp.com/showthread.php?t=270779)

marcelfahle 7th May 2007 12:11

Disable Checkbox on finish page
 
Hey everybody,

I was wondering if it's possible to disable the 'run program' checkbox after the installation, and force the application to launch anyway.. Even the finish page is not that important for me. what i wanna do, is just start the program after install.

I saw two threads on that topic, but I'm very new to NSIS and unfortunately don't really understand what people are talking about :confused:

best,
marcel

Afrow UK 7th May 2007 14:45

!define MUI_PAGE_CUSTOMFUNCTION_PRE FinishPre
!insertmacro MUI_PAGE_FINISH

code:
Function FinishPre
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field #" "Flags" "DISABLED"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field #" "State" "1"
FunctionEnd



Note that I haven't given you the field number (#) because I don't know what it is so you shall I have to find out.

Stu

kichik 13th May 2007 17:42

Or just remove !insertmacro MUI_PAGE_FINISH and just use Exec in the last section. This way, there'll be no finish page and the program will always execute.


All times are GMT. The time now is 05:38.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.