But I don't want to restart unconditionally. Only when the user chooses to stop the Restart Manager from closing the offending applications. Is there a way to detect that?
I'm reading the documentation for the REBOOT property here: http://msdn.microsoft.com/en-us/library/aa371101(VS.85).aspx It says "For example, the installer automatically prompts for a restart if it needs to replace any files in use during the installation." So I'm thinking that I should get a reboot prompt at the end of the uninstall or upgrade. But there isn't one. Am I reading the documentation correctly? Blair wrote: > If you have code that causes the application(s) detected to shutdown > (including using the built-in actions to stop services you install) the > restart manager-related detection code doesn't always acknowledge that. As a > result the user is often told of a need for reboots that ultimately are > never required. > > If files-in-use are not replaced (just moved/marked for removal on next > reboot) then Windows Installer doesn't ask for a reboot unless a > reboot-related action or property are set indicating otherwise. In > uninstallations, that is often the case. > > You could try setting REBOOT=Force when you detect that you will be > uninstalling. That should cause a reboot prompt. > > The reason for reboot instead of logoff is that the system that removes > marked files system boot during isn't activated during logoff or logon, so > the marked files are never actually removed until an actual reboot. > > -----Original Message----- > From: Ivo Beltchev [mailto:i...@roadrunner.com] > Sent: Tuesday, July 13, 2010 8:55 PM > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] Restart Manager (reboot after uninstall) > > Hi > > I have an uninstaller that uses the Restart Manager. When it detects > that files are in use it shows one of two messages: > > 1) When uninstalling in quiet mode, there is a popup saying "...... a > reboot will be required to complete the setup" > > 2) When uninstalling in UI mode, there is a list of processes with 2 > options: A) restart applications, B) Do not close applications. A reboot > will be required. > > I am expecting that after the uninstaller is finished there will be a > prompt to restart the computer, but I don't get one. > > Reading about MsiRMFilesInUse here: > http://wix.sourceforge.net/manual-wix3/WixUI_dialogs.htm, I see "It > allows the user to attempt to automatically close applications or ignore > the prompt and result in the setup requiring a reboot after it > completes." What does "result in requiring a reboot" mean? That the > setup will ask the user to reboot, or that the user must remember to > reboot manually? > > If there is no reboot prompt built in, how do I make one (basically how > do I detect if the user has chosen not to close the applications)? And > even better, if I can customize the prompt to do a log off instead of > reboot. > > > Thanks > Ivo > > > > ---------------------------------------------------------------------------- > -- > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users