PDA

View Full Version : REBOOTOK is useful but dangerous


Thalion77
14th June 2006, 08:45
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?

Afrow UK
14th June 2006, 10:19
!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