You haven't said (or I missed it) if you're using ServiceControl - you can use that to shut down the service and restart it after the upgrade. In most cases that will mitigate any files-in-use situations because Windows looks at the ServiceControl table to see if the service will be shut down. That may make a difference in your case.
If it's a completely silent install, it'll stay silent. There'll be no dialogs, and if a reboot is needed it will just do it - it can't prompt in a silent install, and a reboot is needed to complete the install so it does it. --------------- Phil Wilson On Fri, Apr 25, 2014 at 8:28 AM, Marc Beaudry <mbeau...@matrox.com> wrote: > Hi Keith, > > Not sure that the Util:RestartResource does but have you tried something > simple like: > > <Property Id="REBOOT" Value="ReallySuppress"></Property> > > I am using this: > <Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable"/> > <Property Id="REBOOT" Value="ReallySuppress"></Property> > > And all my reboots seem suppressed. > > Hope this helps, > Marc > > -----Original Message----- > From: keith.doug...@statcan.gc.ca [mailto:keith.doug...@statcan.gc.ca] > Sent: April-25-2014 9:50 AM > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] Restart manager, services, unattended installs > > Hi Marc, I think I'm finally piecing this together: the only very missing > part is the interaction with /quiet - if I am not mistaken. But I have one > question for everyone: > > Util:RestartResource - does one use that to register that one wants to > restart an *existing* application / service, or does it flag part of one's > installation as sensitive for the changes to *it*? If it is the latter, I > will be no further ahead until I install an update which includes that, > presumably. (Once I also set MSIRMSHUTDOWN=2 and MSIDISABLERMRESTART=0) > > My question is the dual to the one on stackoverflow: 8354767. The person > there wants to prevent auto-kill; I want to do the opposite (to ensure that > the installation succeeds). > > > Keith Douglas > Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 > Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6 > keith.doug...@statcan.gc.ca Telephone | Téléphone 613-854-5589 Facsimile | > Télécopieur 613-951-4674 Government of Canada | Gouvernement du Canada > > -----Original Message----- > From: Marc Beaudry [mailto:mbeau...@matrox.com] > Sent: April-24-14 5:31 PM > To: 'General discussion about the WiX toolset.' > Subject: Re: [WiX-users] Restart manager, services, unattended installs > > Hi Keith, > > I am not running silently and the Property and the removal of the dialogs > worked for my Windows 7 installation, on Windows 8 I am still getting the > Restart at the very end, when the MSI terminates (The last dialog closes). > It seems to be popping the reboot dialog from Windows Installer and not WIX. > > Sorry I couldn't be of more help, > Marc > > > -----Original Message----- > From: keith.doug...@statcan.gc.ca [mailto:keith.doug...@statcan.gc.ca] > Sent: April-24-2014 4:37 PM > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] Restart manager, services, unattended installs > > Hi Marc, thanks for answering. > > I am not sure the property you mentioned is the right one: the documentation > says that with it set the way you recommend the FilesInUse dialog will be > used. But since I do unattended/installs from a service, that doesn't sound > useful - since it seems that would freeze the installation waiting for the > input which can never come. Unless of course some other option (on the > command line? a property?) works to automatically answer the dialog with a > "shut down the process" type answer. But that's precisely what I don't see > explained - least of all on that page. Is it buried somewhere else? In fact > I already use the property in question, so maybe this is exactly opposite? > Hm, for some reason I have MSIRMSHUTDOWN = 2 set as well. Maybe that's > wrong. > > > As for the Restart Manager APIs, I found on my own aa373682, which explains > how to register applications to automatically be shutdown and restarted. > That sounds promising, but how do I do that from WiX? Util:RestartResource ? > I seem to have tried that in the past unsuccessfully. > > > Keith Douglas > Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 > Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6 > keith.doug...@statcan.gc.ca Telephone | Téléphone 613-854-5589 Facsimile | > Télécopieur 613-951-4674 Government of Canada | Gouvernement du Canada > > -----Original Message----- > From: Marc Beaudry [mailto:mbeau...@matrox.com] > Sent: April-24-14 4:04 PM > To: 'General discussion about the WiX toolset.' > Subject: Re: [WiX-users] Restart manager, services, unattended installs > > Hi Keith, > > Far from being an expert, but I am currently dealing with similar issues: > > Here is an Idea: > <Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable"/> > > Also you can remove the FileInUse dialogs from within the WIX sources > > And lastly take a look at this: > http://msdn.microsoft.com/en-us/library/aa373649(v=vs.85).aspx > > Hope this helps, > Marc > > -----Original Message----- > From: keith.doug...@statcan.gc.ca [mailto:keith.doug...@statcan.gc.ca] > Sent: April-24-2014 3:07 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Restart manager, services, unattended installs > > We have a in house windows service installed by a WiX installer. Since our > users on these remote systems are not administrators, this install is > actually "brokered" by the same service. That is, msiexec is called by the > service itself, and the installation is called with /quiet /norestart as we > do not want the user to see anything nor to have the OS reboot immediately, > as the user will be confused/lose work, etc. by this. Unfortunately under > some circumstances the installation fails because the files from the service > (e.g. its EXE and its remoting proxy library) are in use. I don't care if it > takes a reboot to finish the installation; but I do want to ensure the files > are eventually updated and the service continues working. What is the most > reliable way to do this? I take it that if the installation were to be > manual the FilesInUse dialog would do the trick, but with the unattended, > SYSTEM brokered install this won't of course work. So what will "click OK" > there and do the shutdown and restart of the service? Is it passable as a > property in the installer itself? > > Thanks, > > > Keith Douglas > Statistics Canada | 170 Tunney's Pasture Driveway, Ottawa ON K1A 0T6 > Statistique Canada | 170, promenade Tunney's Pasture, Ottawa ON K1A 0T6 > keith.doug...@statcan.gc.ca Telephone | Téléphone 613-854-5589 Facsimile | > Télécopieur 613-951-4674 Government of Canada | Gouvernement du Canada > > > ---------------------------------------------------------------------------- > -- > Start Your Social Network Today - Download eXo Platform Build your > Enterprise Intranet with eXo Platform Software Java Based Open Source > Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your > Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ---------------------------------------------------------------------------- > -- > Start Your Social Network Today - Download eXo Platform Build your > Enterprise Intranet with eXo Platform Software Java Based Open Source > Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your > Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ---------------------------------------------------------------------------- > -- > Start Your Social Network Today - Download eXo Platform Build your > Enterprise Intranet with eXo Platform Software Java Based Open Source > Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your > Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ---------------------------------------------------------------------------- > -- > Start Your Social Network Today - Download eXo Platform Build your > Enterprise Intranet with eXo Platform Software Java Based Open Source > Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your > Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ---------------------------------------------------------------------------- > -- > Start Your Social Network Today - Download eXo Platform Build your > Enterprise Intranet with eXo Platform Software Java Based Open Source > Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your > Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > http://p.sf.net/sfu/ExoPlatform > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users