Thanks Rob!

After discussing with our product architecture it's acceptable to have this
FileInUse dialog though it's weird.

I also wander how to add the option into that Dialog because I only refer
that Dialog to my wxs but cannot modify the definition.

<UI>
<DialogRef Id="FilesInUse"/>
</UI

If that has lots of work to do, I will leave it as it is.

Thank all of you for your kindly helps!

Sunny

2011/4/1 Rob Hamflett <r...@snsys.com>

> I'm not sure that this will actually help your situation, but to answer
> your question about
> suppressing the FilesInUse dialog, add these values to the dialog
> definition:
> Dialog@Modeless="yes"
> Dialog@Hidden="yes"
>
> Rob
>
> On 01/04/2011 08:29, sunny wrote:
> >
> > Yes I am deploying an application with Qt dlls which are put in my
> install
> > folder.
> > When I test with running my application and uninstall, the process is
> killed
> > and the FilesInUse is triggered. But it indicates to close my "Qt
> Assistant"
> > which is launched before my test.
> >
> > I put down the log it says the "Qt Assistant" holds some Qt dll from my
> > install folder. That's strange!
> >
> > Info 1603. The file C:\MyApplicationFolder\phonon4.dll is being held in
> use
> > by the following process: Name: assistant, Id: 6820, Window Title: '(not
> > determined yet)'.  Close that application and retry.
> > ....
> >
> >
> >
> > Rob Hamflett wrote:
> >>
> >> Are you deploying the C runtime, or something similar?  That can
> sometimes
> >> cause that issue.  If you
> >> skip the FilesInUse dialog you'll probably get prompted for a reboot,
> >> which is probably more of a pain.
> >>
> >> Rob
> >>
> >> On 01/04/2011 06:45, lxy.su...@gmail.com wrote:
> >>> Thanks for help from Peter, Rob Hamflett and Rob Mensching!
> >>>
> >>> I have achieved detecting the process with "WixCloseApplications" and
> >>> killing the process by "taskkill".
> >>> But I still have an issue that when I try to uninstall it pops
> >>> "FileInUse"
> >>> dialog. But the application it indicates has no relationship with my
> >>> application which is killed.
> >>> So I want to disable this dialog to avoid confusing.
> >>> Could anyone give me a help?
> >>>
> >>> Any comment is appreciated!
> >>>
> >>>
> >>> 2011/3/31 Rob Mensching&lt;r...@robmensching.com&gt;
> >>>
> >>>> WiX v3.5 also shipped with the RestartApplication element that allows
> >>>> you
> >>>> to
> >>>> add more files to the Restart Manager (which gives the user the option
> >>>> to
> >>>> shut things down).
> >>>>
> >>>> On Thu, Mar 31, 2011 at 2:12 AM, Peter
> >>>> Shirtcliffe&lt;pshirtcli...@sdl.com
> >> &gt;>>  wrote:
> >>>>
> >>>>> Agreed, it doesn't look like it can kill them forcibly but there is
> an
> >>>>> option
> >>>>> to set a property when it can't so that the installer can abort or
> >>>>> prompt
> >>>>> the
> >>>>> user if the application doesn't close. It depends on whether the user
> >>>>> is
> >>>> in
> >>>>> danger of losing any work if you terminate the process. There is
> still
> >>>> the
> >>>>> Files In Use dialog as a second line of defence too (although I have
> >>>>> once
> >>>>> seen a user ignore that and expect an uninstall to work without
> >>>> rebooting).
> >>>>>
> >>>>> -----Original Message-----
> >>>>> From: Rob Hamflett [mailto:r...@snsys.com]
> >>>>> Sent: 31 March 2011 09:59
> >>>>> To: wix-users@lists.sourceforge.net
> >>>>> Subject: Re: [WiX-users] [Wix-users] How can I kill process when
> >>>> uninstall
> >>>>>
> >>>>> Can CloseApplication kill processes though?  It doesn't look like it
> >>>>> can.
> >>>>>    If
> >>>>> you need to forcibly
> >>>>> kill something you might need a custom action to run taskkill or some
> >>>>> custom
> >>>>> code that does the job.
> >>>>>
> >>>>> Rob
> >>>>>
> >>>>> On 31/03/2011 09:45, Peter Shirtcliffe wrote:
> >>>>>> Look at the CloseApplication element in the util schema in the Wix
> >>>>>> documentation.
> >>>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: lxy.su...@gmail.com [mailto:lxy.su...@gmail.com]
> >>>>>> Sent: 31 March 2011 09:40
> >>>>>> To: General discussion for Windows Installer XML toolset.
> >>>>>> Subject: [WiX-users] [Wix-users] How can I kill process when
> uninstall
> >>>>>>
> >>>>>> Hi all
> >>>>>>
> >>>>>> How can I achieve killing the process with the given name  when
> >>>> uninstall
> >>>>> my
> >>>>>> application. Is there something that Wix can support that feature?
> >>>>>>
> >>>>>> Thanks!
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> -----------------------------------------------------------------------------
> >>>>> -
> >>>>> Create and publish websites with WebMatrix
> >>>>> Use the most popular FREE web apps or write code yourself;
> >>>>> WebMatrix provides all the features you need to develop and
> >>>>> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> >>>>> _______________________________________________
> >>>>> WiX-users mailing list
> >>>>> WiX-users@lists.sourceforge.net
> >>>>> https://lists.sourceforge.net/lists/listinfo/wix-users
> >>>>> SDL PLC confidential, all rights reserved.
> >>>>> If you are not the intended recipient of this mail SDL requests and
> >>>>> requires that you delete it without acting upon or copying any of its
> >>>>> contents, and we further request that you advise us.
> >>>>> SDL PLC is a public limited company registered in England and Wales.
> >>>>>    Registered number: 02675207.
> >>>>> Registered address: Globe House, Clivemont Road, Maidenhead,
> Berkshire
> >>>> SL6
> >>>>> 7DY, UK.
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> ------------------------------------------------------------------------------
> >>>>> Create and publish websites with WebMatrix
> >>>>> Use the most popular FREE web apps or write code yourself;
> >>>>> WebMatrix provides all the features you need to develop and
> >>>>> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> >>>>> _______________________________________________
> >>>>> WiX-users mailing list
> >>>>> WiX-users@lists.sourceforge.net
> >>>>> https://lists.sourceforge.net/lists/listinfo/wix-users
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>> --
> >>>> virtually, Rob Mensching - http://RobMensching.com LLC
> >>>>
> >>>>
> ------------------------------------------------------------------------------
> >>>> Create and publish websites with WebMatrix
> >>>> Use the most popular FREE web apps or write code yourself;
> >>>> WebMatrix provides all the features you need to develop and
> >>>> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> >>>> _______________________________________________
> >>>> WiX-users mailing list
> >>>> WiX-users@lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/wix-users
> >>>>
> >>>
> >>>
> >>>
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Create and publish websites with WebMatrix
> >> Use the most popular FREE web apps or write code yourself;
> >> WebMatrix provides all the features you need to develop and
> >> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> >> _______________________________________________
> >> WiX-users mailing list
> >> WiX-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wix-users
> >>
> >
> >
> > --
> > View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-users-How-can-I-kill-process-when-uninstall-tp6226358p6229953.html
> > Sent from the wix-users mailing list archive at Nabble.com.
> >
> >
> ------------------------------------------------------------------------------
> > Create and publish websites with WebMatrix
> > Use the most popular FREE web apps or write code yourself;
> > WebMatrix provides all the features you need to develop and
> > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
>
>
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
天行健,君子以自强不息
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to