Discussion:
[WiX-users] MsiRMFilesInUse example to restart browsers
E. Timothy Uy
2012-04-25 20:53:44 UTC
Permalink
Dear Rob et al.,

Thanks everyone for being so gracious. This time I would like the installer
to shutdown any browsers (IE, Chrome, Firefox) prior to installation, and
restart them after installation completes. I think I should
use MsiRMFilesInUse but have not been able to locate any samples or
instructions. Is this used with util:CloseApplication?

I gather that I need <DialogRef Id="MsiRMFilesInUse" /> in UI. Can I use
WixUI_InstallDir or should I be using Mondo? A completed example would be
ideal. The How To Guides are fantastic.

Respectfully,
Tim
E. Timothy Uy
2012-04-25 20:56:40 UTC
Permalink
Looks like RM only works with Vista+. What is the fallback for XP?
Post by E. Timothy Uy
Dear Rob et al.,
Thanks everyone for being so gracious. This time I would like the
installer to shutdown any browsers (IE, Chrome, Firefox) prior to
installation, and restart them after installation completes. I think I
should use MsiRMFilesInUse but have not been able to locate any samples or
instructions. Is this used with util:CloseApplication?
I gather that I need <DialogRef Id="MsiRMFilesInUse" /> in UI. Can I use
WixUI_InstallDir or should I be using Mondo? A completed example would be
ideal. The How To Guides are fantastic.
Respectfully,
Tim
E. Timothy Uy
2012-04-25 21:14:56 UTC
Permalink
I was able to show the FilesInUse (for iexplore, chrome and firefox) but
just adding

<util:RestartResource Id="RestartIE" ProcessName="iexplore.exe" />
<util:RestartResource Id="RestartChrome" ProcessName="chrome.exe" />
<util:RestartResource Id="RestartFirefox" ProcessName="firefox.exe" />

However, clicking on attempt to close prompted me with

The setup was unable to automatically close all requested applications.
Please ensure that the applications holding files in use are closed before
continuing with the installation.

None of the browser instances are closed.

Any advice would be much appreciated.

Respectfully,
Tim
Post by E. Timothy Uy
Looks like RM only works with Vista+. What is the fallback for XP?
Post by E. Timothy Uy
Dear Rob et al.,
Thanks everyone for being so gracious. This time I would like the
installer to shutdown any browsers (IE, Chrome, Firefox) prior to
installation, and restart them after installation completes. I think I
should use MsiRMFilesInUse but have not been able to locate any samples or
instructions. Is this used with util:CloseApplication?
I gather that I need <DialogRef Id="MsiRMFilesInUse" /> in UI. Can I use
WixUI_InstallDir or should I be using Mondo? A completed example would be
ideal. The How To Guides are fantastic.
Respectfully,
Tim
E. Timothy Uy
2012-04-25 21:50:54 UTC
Permalink
The plot thickens. Removing Chrome from the mix makes it work.

<util:RestartResource Id="RestartIE" ProcessName="iexplore.exe" />
<util:RestartResource Id="RestartFirefox" ProcessName="firefox.exe" />

Is this solvable? I did notice that chrome.exe uses a lot of processes.
Could this be the issue? Is there a limit on the # of processes?
Post by E. Timothy Uy
I was able to show the FilesInUse (for iexplore, chrome and firefox) but
just adding
<util:RestartResource Id="RestartIE" ProcessName="iexplore.exe" />
<util:RestartResource Id="RestartChrome" ProcessName="chrome.exe" />
<util:RestartResource Id="RestartFirefox" ProcessName="firefox.exe" />
However, clicking on attempt to close prompted me with
The setup was unable to automatically close all requested applications.
Please ensure that the applications holding files in use are closed before
continuing with the installation.
None of the browser instances are closed.
Any advice would be much appreciated.
Respectfully,
Tim
Post by E. Timothy Uy
Looks like RM only works with Vista+. What is the fallback for XP?
Post by E. Timothy Uy
Dear Rob et al.,
Thanks everyone for being so gracious. This time I would like the
installer to shutdown any browsers (IE, Chrome, Firefox) prior to
installation, and restart them after installation completes. I think I
should use MsiRMFilesInUse but have not been able to locate any samples or
instructions. Is this used with util:CloseApplication?
I gather that I need <DialogRef Id="MsiRMFilesInUse" /> in UI. Can I use
WixUI_InstallDir or should I be using Mondo? A completed example would be
ideal. The How To Guides are fantastic.
Respectfully,
Tim
E. Timothy Uy
2012-04-25 22:59:46 UTC
Permalink
chrome.exe - does not close
firefox.exe - closes, but never restarts
iexplore.exe - closes and restarts (blank page)
Post by E. Timothy Uy
The plot thickens. Removing Chrome from the mix makes it work.
<util:RestartResource Id="RestartIE" ProcessName="iexplore.exe" />
<util:RestartResource Id="RestartFirefox" ProcessName="firefox.exe" />
Is this solvable? I did notice that chrome.exe uses a lot of processes.
Could this be the issue? Is there a limit on the # of processes?
Post by E. Timothy Uy
I was able to show the FilesInUse (for iexplore, chrome and firefox) but
just adding
<util:RestartResource Id="RestartIE" ProcessName="iexplore.exe" />
<util:RestartResource Id="RestartChrome" ProcessName="chrome.exe" />
<util:RestartResource Id="RestartFirefox" ProcessName="firefox.exe" />
However, clicking on attempt to close prompted me with
The setup was unable to automatically close all requested applications.
Please ensure that the applications holding files in use are closed before
continuing with the installation.
None of the browser instances are closed.
Any advice would be much appreciated.
Respectfully,
Tim
Post by E. Timothy Uy
Looks like RM only works with Vista+. What is the fallback for XP?
Post by E. Timothy Uy
Dear Rob et al.,
Thanks everyone for being so gracious. This time I would like the
installer to shutdown any browsers (IE, Chrome, Firefox) prior to
installation, and restart them after installation completes. I think I
should use MsiRMFilesInUse but have not been able to locate any samples or
instructions. Is this used with util:CloseApplication?
I gather that I need <DialogRef Id="MsiRMFilesInUse" /> in UI. Can I
use WixUI_InstallDir or should I be using Mondo? A completed example would
be ideal. The How To Guides are fantastic.
Respectfully,
Tim
E. Timothy Uy
2012-04-26 16:21:40 UTC
Permalink
With chrome in the mix, nothing at all (not even IE or Firefox) gets
terminated.

Action 9:04:37: WixRegisterRestartResources.
Action start 9:04:37: WixRegisterRestartResources.
WixRegisterRestartResources: Entering WixRegisterRestartResources in
C:\Windows\Installer\MSI7074.tmp, version 3.6.2809.0
WixRegisterRestartResources: Registering process name iexplore.exe with
the Restart Manager.
WixRegisterRestartResources: Registering process name firefox.exe with the
Restart Manager.
WixRegisterRestartResources: Registering process name chrome.exe with the
Restart Manager.
Action ended 9:04:38: WixRegisterRestartResources. Return value 1.
Action 9:04:38: InstallValidate. Validating install
Action start 9:04:38: InstallValidate.
Action 9:04:43: ShutdownApplications. Shutting down applications
The setup was unable to automatically close all requested applications.
Please ensure that the applications holding files in use are closed before
continuing with the installation.
Action ended 9:04:54: InstallValidate. Return value 1.
Post by E. Timothy Uy
chrome.exe - does not close
firefox.exe - closes, but never restarts
iexplore.exe - closes and restarts (blank page)
Post by E. Timothy Uy
The plot thickens. Removing Chrome from the mix makes it work.
<util:RestartResource Id="RestartIE" ProcessName="iexplore.exe" />
<util:RestartResource Id="RestartFirefox" ProcessName="firefox.exe" />
Is this solvable? I did notice that chrome.exe uses a lot of processes.
Could this be the issue? Is there a limit on the # of processes?
Post by E. Timothy Uy
I was able to show the FilesInUse (for iexplore, chrome and firefox) but
just adding
<util:RestartResource Id="RestartIE" ProcessName="iexplore.exe" />
<util:RestartResource Id="RestartChrome" ProcessName="chrome.exe" />
<util:RestartResource Id="RestartFirefox" ProcessName="firefox.exe" />
However, clicking on attempt to close prompted me with
The setup was unable to automatically close all requested applications.
Please ensure that the applications holding files in use are closed before
continuing with the installation.
None of the browser instances are closed.
Any advice would be much appreciated.
Respectfully,
Tim
Post by E. Timothy Uy
Looks like RM only works with Vista+. What is the fallback for XP?
Post by E. Timothy Uy
Dear Rob et al.,
Thanks everyone for being so gracious. This time I would like the
installer to shutdown any browsers (IE, Chrome, Firefox) prior to
installation, and restart them after installation completes. I think I
should use MsiRMFilesInUse but have not been able to locate any samples or
instructions. Is this used with util:CloseApplication?
I gather that I need <DialogRef Id="MsiRMFilesInUse" /> in UI. Can I
use WixUI_InstallDir or should I be using Mondo? A completed example would
be ideal. The How To Guides are fantastic.
Respectfully,
Tim
Wilson, Phil
2012-04-26 17:14:04 UTC
Permalink
Are you maybe misunderstanding the FilesInUse dialogs? Windows decides to show this or nor based on what files need replacing, whether they are in use, their versions etc. CloseApplication is not the same thing at all - it's a WiX feature that closes applications.

Phil W

-----Original Message-----
From: E. Timothy Uy [mailto:***@loqu8.com]
Sent: Thursday, April 26, 2012 9:22 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] MsiRMFilesInUse example to restart browsers

With chrome in the mix, nothing at all (not even IE or Firefox) gets terminated.

Action 9:04:37: WixRegisterRestartResources.
Action start 9:04:37: WixRegisterRestartResources.
WixRegisterRestartResources: Entering WixRegisterRestartResources in C:\Windows\Installer\MSI7074.tmp, version 3.6.2809.0
WixRegisterRestartResources: Registering process name iexplore.exe with the Restart Manager.
WixRegisterRestartResources: Registering process name firefox.exe with the Restart Manager.
WixRegisterRestartResources: Registering process name chrome.exe with the Restart Manager.
Action ended 9:04:38: WixRegisterRestartResources. Return value 1.
Action 9:04:38: InstallValidate. Validating install Action start 9:04:38: InstallValidate.
Action 9:04:43: ShutdownApplications. Shutting down applications The setup was unable to automatically close all requested applications.
Please ensure that the applications holding files in use are closed before continuing with the installation.
Action ended 9:04:54: InstallValidate. Return value 1.
Post by E. Timothy Uy
chrome.exe - does not close
firefox.exe - closes, but never restarts iexplore.exe - closes and
restarts (blank page)
Post by E. Timothy Uy
The plot thickens. Removing Chrome from the mix makes it work.
<util:RestartResource Id="RestartIE" ProcessName="iexplore.exe" />
<util:RestartResource Id="RestartFirefox" ProcessName="firefox.exe" />
Is this solvable? I did notice that chrome.exe uses a lot of processes.
Could this be the issue? Is there a limit on the # of processes?
Post by E. Timothy Uy
I was able to show the FilesInUse (for iexplore, chrome and firefox)
but just adding
<util:RestartResource Id="RestartIE" ProcessName="iexplore.exe" />
<util:RestartResource Id="RestartChrome" ProcessName="chrome.exe" />
<util:RestartResource Id="RestartFirefox" ProcessName="firefox.exe" />
However, clicking on attempt to close prompted me with
The setup was unable to automatically close all requested applications.
Please ensure that the applications holding files in use are closed
before continuing with the installation.
None of the browser instances are closed.
Any advice would be much appreciated.
Respectfully,
Tim
Post by E. Timothy Uy
Looks like RM only works with Vista+. What is the fallback for XP?
Post by E. Timothy Uy
Dear Rob et al.,
Thanks everyone for being so gracious. This time I would like the
installer to shutdown any browsers (IE, Chrome, Firefox) prior to
installation, and restart them after installation completes. I
think I should use MsiRMFilesInUse but have not been able to
locate any samples or instructions. Is this used with util:CloseApplication?
I gather that I need <DialogRef Id="MsiRMFilesInUse" /> in UI. Can
I use WixUI_InstallDir or should I be using Mondo? A completed
example would be ideal. The How To Guides are fantastic.
Respectfully,
Tim
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/en/legal/default.aspx.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail ***@invensys.com. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates).
Loading...