Jumping in late here....
 
It's not at all clear to me that a reboot is supposed to be asked for in
these situations, even though the log will have text about a reboot
being necessary. I honestly don't recall reboot requests out of
uninstalls except when they were explicitly added. This is what I see on
Vista and Server 2003 SP1.  
 
1) An uninstall of a running program with a top level window prompts for
the user to shut it down and says (on Vista) that if you don't shut it
down then a reboot will be necessary. Server 2003 SP1 just has an
"Ignore" choice to ignore the running app. Proceeding with the program
running does not ask for a reboot at the end of the uninstall on either
OS. 
 
2) Uninstalling a running program without a top level window just
uninstalls without any "in use" dialogs, and again the log has entries
saying a reboot will be necessary etc etc, but no reboot is asked for. 
 
As I say, I believe this is what previous versions of MSI did, and my
tests confirm this for a somewhat limited set of OS versions.  It's
always been my impression that uninstalls show a dialog to close apps if
there's a top level window, but don't explicitly ask for a reboot just
for an in use condition. If you care that an MSI reboot is pending, then
use the MSI 4.0 MsiSystemRebootPending property. It tells you if there's
a MSI reboot pending and can be used as a launch condition, and I
confirmed that it is set to 1 in subsequent installs where a previous
uninstall required file removal as described above. 
 
Phil Wilson 

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Lalande
Sent: Tuesday, November 21, 2006 4:59 PM
To: Rob Mensching
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Uninstalling while application is running


If it makes any difference, this is a .Net application.  Furthermore, I
seem to remember the same issue existed in our InstallShield-based
installer as well.


On 11/21/06, Rob Mensching <[EMAIL PROTECTED]> wrote: 

        I'm at a loss then.  The log file message you note below is what
I would expect to see when a file is in use.  Is there maybe something
more about the files in use in the log file?

         

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Lalande
        Sent: Tuesday, November 21, 2006 15:30
        To: Rob Mensching
        Cc: Bob Arnson; wix-users@lists.sourceforge.net 
        
        Subject: Re: [WiX-users] Uninstalling while application is
running

        

         

        I am not *explicitly* suppressing any dialogs.  I have tried
uninstalling by right-clicking the MSI and selecting uninstall from the
context menu, I have tried uninstalling from the Add/Remove Programs
applet, and at Bob's suggestion I uninstalled using the command line
(misexec /x ...) so that I could log the uninstall.  All result in the
same behavior. 

        On 11/21/06, Rob Mensching <[EMAIL PROTECTED]> wrote:

        You shouldn't need a custom action.  If a file was in use then
the Windows Installer should prompt for install.  How are you
uninstalling the product?  Is it possible that you are suppressing the
dialog that would tell you a reboot is required?

         

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Lalande
        Sent: Tuesday, November 21, 2006 14:29
        To: Bob Arnson
        Cc: wix-users@lists.sourceforge.net
        Subject: Re: [WiX-users] Uninstalling while application is
running

         

        Does my installer have to explicitly do something to reboot if
the files are in use?  Is there a custom action I should be inserting
into my uninstall sequence?
        
        This is a major bug in my installer.

        On 11/21/06, John Lalande <[EMAIL PROTECTED]> wrote:

        I have logged the uninstall, however I am not sure what I should
be looking for.
        
        I see several entries similar to:
        "FileX.dll is being held in use by the following process:
...Name: AppX, Id: 4284, Window Title: '(not determined yet)'. Close
that application and retry." 
        
        Is there somthing in particular I should look for?

         

        On 11/21/06, Bob Arnson < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >
wrote: 

        John Lalande wrote:
        > In this scenario, shouldn't the user be prompted to reboot and
then 
        > the files removed on the reboot?  Or did I fail to do
something
        > important when I write the installer?
        
        Yes, you should have gotten a reboot prompt. Check a verbose log
-- MSI
        logs additional data when files are in use. 
        
        --
        sig://boB
        http://bobs.org

         

         

         


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to