It depends on what you put in your ServiceControl for the service, but the "do 
I need to show FilesInUse" is smart enough to check the ServiceControl table in 
the MSI file, and if there's an entry that says "stop at uninstall time" then 
there's no need for FilesInUse because the service is going to be stopped 
anyway. 

Phil W 

-----Original Message-----
From: william lee [mailto:wele...@gmail.com] 
Sent: Saturday, February 18, 2012 7:11 PM
To: Rob Mensching
Cc: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] InstallValidate Action check Windows Service or not?

Hi Rob,
You are correct,  my daemon process is totally invisible to user.
Does this mean, we can assume Windows Service is more friendly to RM when
uninstall than a daemon way?  If it is true, then we should create all
background worker process as Service then.

Thanks!
William L.

On Sun, Feb 19, 2012 at 5:43 AM, Rob Mensching <r...@robmensching.com> wrote:

> I think the difference is Restart Manager not Windows installer. RM
> knows how to stop services and processes with a top level visible
> window (IIRC) so it doesn't complain about those. Your daemon is
> probably invisible and thus gets the less desirable behavior.
> From: william lee
> Sent: 2/18/2012 1:23
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] InstallValidate Action check Windows Service or
> not?
> Hi,
> I met a common problem when create an app installer.
> The app is running 24x7, like a daemon process.  When Uninstall the app,
> the InstallValidate try trigger Files In Use dialog or Restart Manager,
> because it is still running when Uninstall.
> This is easy to understand.
>
> I just create a simple demo, If I create a native Windows Service by using
> ATL, and a MSI by Wix to install it, start the service.
> Then during Uninstall, even the service is still running, I can see the
> process in Task Manager as well, Windows Installer just uninstall
> successfully.  The service was stopped and removed, files got deleted.
> InstallValidate does not pop up Files In Use or Restart Manager during
> Uninstall.
>
> Does it mean, InstallValidate treat Windows Service and Windows Application
> differently?  I'm testing on Win7 Pro, with UAC off.
>
> Thanks,
> William L.
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
WiX-users mailing list
WiX-users@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 
recept...@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).



------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to