Not if you use the Windows Installer integration with ARP. You would have to
use the "Legacy" ARP interface, which requires using the ARPSYSTEMCOMPONENT
property AND programming the uninstall registry key yourself. This has been
discussed on this list before.

However, I don't believe that is what is happening. From this page:
http://msdn.microsoft.com/library/aa372466.aspx:

"Basic UI or Reduced UI level installations give the user the option of
using the Restart Manager to reduce system restarts even if the
MsiRMFilesInUse dialog box is not present. Silent UI level installations
always shut down applications and services, and on Windows Vista, always use
Restart Manager."

>From my previous interactions with Windows Installer, if a file isn't
replaced, Windows Installer doesn't bother with requesting a reboot (it just
moves the files it couldn't delete to a hidden directory and marks them to
be deleted on the next system boot). Thus, it may not be engaging RM to
stop/restart a process that is holding onto a file it doesn't feel requires
a reboot.

CloseApplication may do the job you need. If it doesn't, either it should be
extended to join processes to the RM session, or another CA would need to be
used for that task.

Alternately, if you add an embedded UI you could add any processes holding
files found to be in use to the RM session yourself right from the embedded
UI (which ironically doesn't have to show any UI at all, and can be run no
matter what UI level is in play). Of course, embedded UI requires MSI 4.5 or
higher, which not everyone has (The latest Service Pack for both Vista and
2008 have 4.5, but XP SP3 doesn't, although 4.5 is available for XP.
However, XP doesn't have Restart Manager, so that may be a moot point).

-----Original Message-----
From: i...@roadrunner.com [mailto:i...@roadrunner.com] 
Sent: Monday, June 21, 2010 11:34 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Customizing WixUI_FeatureTree

>> 2) Currently when I upgrade from one version to the next I get a popup
>> from the Restart Manager asking to restart the programs that use my DLL.
>> That's good. But during uninstall I only get a simple message box saying
>> "Some files are in use, you should reboot afterwards". I want to use the
>> Restart Manager in all cases (even during "Change" when the offending
>> feature is being uninstalled).
>>
> 2 - No idea. Never used Restart Manager as it's only supported in
> Windows Installer 4.0 and later. Are you using Util:CloseApplication
> (http://wix.sourceforge.net/manual-wix3/util_xsd_closeapplication.htm)
> or relying on Windows Installer alone?

I don't use Util:CloseApplication. The package is a shell extension, so the
processes that need to be restarted are Explorer.exe and any other process
that loads the shell extension.

I think I have an idea what's happening: It says here
(http://msdn.microsoft.com/en-us/library/aa370379.aspx) that the
MsiRMFilesInUse dialog only shows up if "The Full UI user interface level is
used.". When uninstalling from the Control Panel the interface level is
"basic" or "reduced". Is there a way around that limitation? Like force
"full UI" when running from the Control Panel?


----------------------------------------------------------------------------
--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to