jaschulz
22nd October 2003 15:32 UTC
Reboot Message after Uninstall?
I may be missing something obvious, but I don't see how I can advise the user to reboot the machine so as to complete the uninstall process. Of course, I could simply put the text of a message to that effect on the uninst confirm page, but I would rather that the user see the message only if delete sets the reboot flag.
Any advice?
JAS
Joost Verburg
22nd October 2003 15:38 UTC
Use IfRebootFlag.
jaschulz
22nd October 2003 16:13 UTC
I can see how to use IfRebootFlag to show a dialog with my reboot message, but is there a way to offer the RebootNow/Reboot later message on the finish page of the uninstaller (as is possible on the finish page of the installer)?
JAS
jaschulz
22nd October 2003 16:44 UTC
Also I am a little confused about the sequence of pages in the uninstaller. I have this:
!insertmacro MUI_UNPAGE_CONFIRM
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE un.myLeaveUnInstPage
!insertmacro MUI_UNPAGE_INSTFILES
and this:
Function un.myLeaveUnInstPage
IfFileExists "${SYSDIR}\${SHORT_PRODUCT_NAME}.dll" ShowRebootMessage done
ShowRebootMessage:
MessageBox MB_OK|MB_ICONEXCLAMATION "To complete the ${PRODUCT} uninstall process,$\n$\r\
Please reboot this machine."
done:
FunctionEnd
And this works fine except that the messagebox show up before I click on the finish button of the final uninstaller page. I don't see how this could happen unless there is an undocumented uninstaller page (MUI_UNPAGE_FINISH). If there is such a page, could I (somehow) show the reboot now/reboot later messages on it?
JAS
Joost Verburg
22nd October 2003 18:23 UTC
You have to use the un.onUninstSuccess.
Support for an uninstaller finish page will be added soon.
jaschulz
22nd October 2003 18:28 UTC
OK, thanks.
Joost Verburg
22nd October 2003 20:19 UTC
Uninstall finish page support added to 1.67
See http://forums.winamp.com/showthread....hreadid=153617