When you run your upgrade, at some point in time it will do a
RemoveExistingProducts which is the uninstall of the prior version.
Assuming the new setup has a ServiceControl to stop the installing
service: If your upgrade has REP towards the end of the install, then
the sequence is that your service starts the install. If it starts it
asynchronously it can get out of the way, but if it calls
MsiInstallProduct() or equivalent then it will be running when told to
shut down, so that's a complication. When your install reaches
InstallValidate it will look for files-in-use and should see your
service is going to shut down, so preventing any files-in-use issues
related to the running service. By the time your install gets to
StartServices the files have all been updated, your service starts.
After that, the REP will uninstall the older product, and with luck
there won't be any in-use files that need to be removed.

There is no way to guess all this accurately. If you're doing a
command line install you can create a verbose log of the entire
upgrade and see where the files are in use (the upgrade or the
uninstall of the older product) band which files they are. You should
also get some info about where and why reboots are required.

The reboot situation is complicated when you're doing it from a
service. It's my understanding it can't show UI to the interactive
user anyway because of service session isolation, and maybe you're
running with some admin account and not the system account?

It shouldn't fail the install because of /norestart. There may be
other reasons why it might fail, but that shouldn't be one of them.
The log will tell you, and look for things like the MSI engine
returning 3010, meaning it finished successfully but needed a reboot.
---------------
Phil Wilson


On Fri, Apr 25, 2014 at 10:21 AM,  <keith.doug...@statcan.gc.ca> wrote:
> Do I have to have created a proper ServiceControl *before* I do the upgrade, 
> or can my new package do everything? In any case, I do have ServiceControl 
> Stop="both" and Wait="yes" in the *existing* packages (including the one 
> which was causing some people trouble), so something is funny. Is there a 
> problem with the name: some services use an 8 character name, but I've never 
> had any other trouble with "EscalationService" as a name, so ...
>
> As for the restart, there's a situation's explanation missing: how do the 
> command line arguments to msiexec work? (/quiet and /norestart.) Does that 
> work to simply *stop* the restart you mentioned? Or does it fail the install 
> because it can't tell you it is about to do so because of /quiet? Or does it 
> just do it? Do those interact with RestartManager in any way?
>
>
>
>
> 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: Phil Wilson [mailto:phildgwil...@gmail.com]
> Sent: April-25-14 1:05 PM
> To: General discussion about the WiX toolset.
> Subject: Re: [WiX-users] Restart manager, services, unattended installs
>
> 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
> ------------------------------------------------------------------------------
> 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

Reply via email to