Discussion:
[WiX-users] How to stop web app pool (w3wp.exe) to satisfy Restart Manager?
Hugh Williams
2013-09-05 11:08:44 UTC
Permalink
I have an installer that sets up a web site in IIS. All is well on the install side.

But when I go to uninstall it, I get a "reboot required" message:

MSI (s) (28:6C) [11:03:45:694]: RESTART MANAGER: Detected that application with id 14848, friendly name 'w3wp.exe', of type RmCritical and status 1 holds file[s] in use.

If I go into the IIS manager and shut down the application pool for my app, then I don't get this message.

Obviously, I'd like to avoid the "reboot required" situation here...

So my question is: is there a standard WiX-ish way to shut down the web app pool that is about to be uninstalled?
Phil Wilson
2013-09-06 17:16:01 UTC
Permalink
This seems to be the way, and I assume you'd need to run it as a custom
action. There may be APIs underneath that you can call to shut down the
pool, I don't know.

http://technet.microsoft.com/en-us/library/cc772200(v=ws.10).aspx

Phil Wilson
Post by Hugh Williams
I have an installer that sets up a web site in IIS. All is well on the install side.
MSI (s) (28:6C) [11:03:45:694]: RESTART MANAGER: Detected that application
with id 14848, friendly name 'w3wp.exe', of type RmCritical and status 1
holds file[s] in use.
If I go into the IIS manager and shut down the application pool for my
app, then I don't get this message.
Obviously, I'd like to avoid the "reboot required" situation here...
So my question is: is there a standard WiX-ish way to shut down the web
app pool that is about to be uninstalled?
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
Hugh Williams
2013-09-06 17:51:30 UTC
Permalink
Brilliant, Phil, thanks. I'll give it a go!

-----Original Message-----
From: Phil Wilson [mailto:***@gmail.com]
Sent: Friday, September 06, 2013 1:16 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How to stop web app pool (w3wp.exe) to satisfy Restart Manager?

This seems to be the way, and I assume you'd need to run it as a custom action. There may be APIs underneath that you can call to shut down the pool, I don't know.

http://technet.microsoft.com/en-us/library/cc772200(v=ws.10).aspx

Phil Wilson
Post by Hugh Williams
I have an installer that sets up a web site in IIS. All is well on the install side.
MSI (s) (28:6C) [11:03:45:694]: RESTART MANAGER: Detected that
application with id 14848, friendly name 'w3wp.exe', of type
RmCritical and status 1 holds file[s] in use.
If I go into the IIS manager and shut down the application pool for my
app, then I don't get this message.
Obviously, I'd like to avoid the "reboot required" situation here...
So my question is: is there a standard WiX-ish way to shut down the
web app pool that is about to be uninstalled?
----------------------------------------------------------------------
-------- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL
2012, more!
Discover the easy way to master current and previous Microsoft
technologies and advance your career. Get an incredible 1,500+ hours
of step-by-step tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.c
lktrk _______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
Loading...