Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 14th June 2006, 08:45   #1
Thalion77
Junior Member
 
Join Date: Jun 2006
Posts: 16
Post REBOOTOK is useful but dangerous

Hello!

If you say RmDir /r /REBOOTOK $INSTDIR, the whole installation directory with its contents will be removed. The flag REBOOTOK will enable removing the directory after rebooting.

This is very useful, but this function is dangerous due to the activated radio button "immediately reboot Windows" by default. It is much better, if the radio button "reboot later by yourself" is activated by default.

How can I do that?
Thalion77 is offline   Reply With Quote
Old 14th June 2006, 10:19   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,216
code:

!define MUI_PAGE_CUSTOMFUNCTION_PRE FinishPagePre
!insertmacro MUI_PAGE_FINISH

Function FinishPagePre
!insertmacro MUI_INSTALLOPTIONS_WRITE ioSpecial.ini "Field #" State 0
!insertmacro MUI_INSTALLOPTIONS_WRITE ioSpecial.ini "Field #+1" State 1
FunctionEnd



Not sure the field numbers exactly... you'll need to find them. They're probably 4 and 5 or something.

-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp 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