[wix-users] Upgrade prompts for restart
Roni Fuchs
ronif at microsoft.com
Tue Oct 27 14:56:41 PDT 2015
Thanks for your long answer Phil!
I'll dig into this to try to understand if this is indeed our case.
Roni
________________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Phil Wilson <phil.wilson at mvps.org>
Sent: Tuesday, October 27, 2015 9:38 PM
To: 'WiX Toolset Users Mailing List'
Subject: Re: [wix-users] Upgrade prompts for restart
Elegance requires some cooperation between the install and the app. Some
examples:
Why aren't you seeing any FilesInUse dialogs prompting to close apps? It's
rather unusual to see none, especially when Restart Manager is enabled,
MSIRESTARTMANAGERCONTROL property and so on.
If you have services that need to be shut down, then if you're not shutting
them down with ServiceControl (for example, because you're using a custom
action instead) then Windows doesn't know they'll be closing down and will
release in-use files. If the service fires off a process, then the service
should shut that process down when it shuts itself down. If ServiceControl
IS used, but Wait is neq 1, then maybe the service is still running holding
filews in use. Even if Wait=1 it's also possible for the service process to
stop being a service but continue to run as a normal process, holding files
in use.
If there are running apps that have a windows message that responds to Close
messages, then look at util:CloseApplication.
Apps can integrate with Restart Manager and automatically save the current
app state and be automatically restarted after the upgrade to restore that
state and give the user a seamless experience.
And, as always get a verbose log so you can see the actual files and
processes involved rather than guessing in the absence of actual data.
Phil W
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of
Roni Fuchs
Sent: Tuesday, October 27, 2015 7:19 AM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Upgrade prompts for restart
Ok,
But doesn't that mean that almost every update will cause a reboot? Isn't
there a more elegant way to stop everything before upgrade?
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of
John Cooper
Sent: Tuesday, October 27, 2015 15:51
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Upgrade prompts for restart
Because locked files cannot be overwritten and files in use are nearly by
definition always locked. Windows Installer Service will save a file
targeted to overwrite a locked file and install it on the next reboot.
--
John Merryweather Cooper
Senior Software Engineer | Integration Development Group | Enterprise
Notification Service Jack Henry & Associates, Inc.® | Lenexa, KS 66214 |
Ext: 431050 |JoCooper at jackhenry.com
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of
Roni Fuchs
Sent: Tuesday, October 27, 2015 8:21 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Upgrade prompts for restart
The e-mail below is from an external source. Please do not open attachments
or click links from an unknown or suspicious origin.
Why would that prompt a restart? And how come it's after the upgrade is
almost complete?
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of
Walter Dexter
Sent: Monday, October 26, 2015 23:47
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Upgrade prompts for restart
The standard reason would be that one of the files you're trying to replace
is currently in use.
On Mon, Oct 26, 2015 at 6:53 AM, Roni Fuchs <ronif at microsoft.com> wrote:
> Hi everyone,
>
> Why would my upgrade that's basically only replaces files (minor
> update of the msi, majorUpgrade of the bundle) require a restart?
> Is it possible that the machine has a pending restart (perhaps an os
> update that hasn't completed) and that's why I also get a restart
required?
>
> Thanks,
>
> Roni (Aron) Fuchs
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.fi
> regiant.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7cd702275
> c99084bd16eeb08d2de4f09df%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata
> =zZB2GEgZ3raUHVD6OQVHFkbaNtNjE0hOjIUScqiGQiw%3d
>
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegian
t.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7cd702275c99084bd16ee
b08d2de4f09df%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=zZB2GEgZ3raUHVD6O
QVHFkbaNtNjE0hOjIUScqiGQiw%3d
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegian
t.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7ce9e06eab70874397de7
508d2ded5b8b7%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=qAXuwP0QgVgMi7cZJ
TYva%2bKWLPZw%2b7espZrkk0PlP6Y%3d
NOTICE: This electronic mail message and any files transmitted with it are
intended exclusively for the individual or entity to which it is addressed.
The message, together with any attachment, may contain confidential and/or
privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or
distribution is strictly prohibited. If you have received this message in
error, please immediately advise the sender by reply email and delete all
copies.
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegian
t.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7ce9e06eab70874397de7
508d2ded5b8b7%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=qAXuwP0QgVgMi7cZJ
TYva%2bKWLPZw%2b7espZrkk0PlP6Y%3d
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7c3feaf4e6ba3c4ec10eae08d2df0633e5%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=qh0R3de%2fAP734MJBpKJQUu%2fYpWIPsZ2xqULd%2bxhxY84%3d
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.firegiant.com%2f&data=01%7c01%7cronif%40064d.mgd.microsoft.com%7c3feaf4e6ba3c4ec10eae08d2df0633e5%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=qh0R3de%2fAP734MJBpKJQUu%2fYpWIPsZ2xqULd%2bxhxY84%3d
More information about the wix-users
mailing list