Here's another possible clue:
http://sourceforge.net/tracker/?func=detail&atid=642717&aid=1989218&group_id=105970
-
"CloseApplication element doesn't cause the FilesInUseDialog".

Indeed, the latest CloseApps.cpp still has:

    //
    // Do the UI dance now.
    //
    /*

    TODO: Do this eventually

*
*

On Thu, Apr 26, 2012 at 2:06 AM, E. Timothy Uy <t...@loqu8.com> wrote:

> Dear Peter,
>
> Thanks for writing back. util:CloseApplication will close the application
> if CloseMessage="yes", but when CloseMessage="no" it seems that this should
> trigger the FilesInUse dialog. At least, that was my expectation.
>
> In Wix tutorials (e.g.,
> http://weblogs.sqlteam.com/mladenp/archive/2010/02/17/WiX-3-Tutorial-Understanding-main-WXS-and-WXI-file.aspx)
> it seems that FilesInUse is specifically for use with CloseApplication:
>
> <UI>
>> <!-- These dialog references are needed for CloseApplication above to
>> work correctly -->
>>  <DialogRef Id="FilesInUse" />
>>  <DialogRef Id="MsiRMFilesInUse" />
>>  <!-- Here we'll add the GUI logic for installation and updating in a
>> future post-->
>>  </UI>
>
>
> I know now that I can close the browsers using CloseMessage="yes", but the
> best would be to show them the FilesInUse dialog and let them choose what
> to do.
>
> Puzzled,
> Tim
>
>
> On Thu, Apr 26, 2012 at 1:55 AM, Peter Shirtcliffe 
> <pshirtcli...@sdl.com>wrote:
>
>> FilesInUse automatically detects files in use during InstallValidate and
>> displays the dialog if one of those files are changed.
>>
>> Restart manager is a newer feature of Windows Installer and works with
>> filesinuse. The applications that are shut down because they have files in
>> use must have registered with restart manager when they were installed.
>> That
>> enables them to restart automatically, saving and restoring state.
>>
>> I don't think closeapplication has much to do with filesinuse. I suspect
>> it
>> sends WM_CLOSE messages to applications or possibly kills them. If your
>> installer runs elevated then setting ElevatedCloseMessage="yes" should be
>> more effective.
>>
>> -----Original Message-----
>> From: E. Timothy Uy [mailto:t...@loqu8.com]
>> Sent: 26 April 2012 00:28
>> To: General discussion for Windows Installer XML toolset.
>> Subject: Re: [WiX-users] killing Chrome and Firefox
>>
>> It seems that CloseMessage="no" should have triggered FilesInUse, but it
>> doesn't at all. The installation just proceeds.
>>
>> On Wed, Apr 25, 2012 at 1:05 PM, E. Timothy Uy <t...@loqu8.com> wrote:
>>
>> > Silly me. I was able to get the browsers to close by setting
>> > CloseMessage="yes". Next step, how do I use "FilesInUse"?
>> >
>> >
>> > On Wed, Apr 25, 2012 at 12:18 PM, E. Timothy Uy <t...@loqu8.com> wrote:
>> >
>> >> I changed WixCloseApplications to run before InstallInitialize but
>> >> this did not help either. From the .msi log, I see
>> >>
>> >> Action 12:12:49: WixCloseApplications.
>> >>> Action start 12:12:49: WixCloseApplications.
>> >>> Action ended 12:12:50: WixCloseApplications. Return value 1.
>> >>> Action 12:12:50: InstallInitialize.
>> >>> Action start 12:12:50: InstallInitialize.
>> >>> Action ended 12:12:55: InstallInitialize. Return value 1.
>> >>
>> >>
>> >> I expected some kind of dialog saying I had these applications open,
>> >> and for the installer to either shut them down or prompt me to
>> >> shutdown, but no browsers get closed and there is no indication of any
>> changes.
>> >>
>> >>
>> >>>     <UI>
>> >>>       <DialogRef Id="FilesInUse" />
>> >>>       <DialogRef Id="MsiRMFilesInUse" />
>> >>>       <UIRef Id="WixUI_InstallDir" />
>> >>>       <UIRef Id="WixUI_ErrorProgressText" />
>> >>>     </UI>
>> >>>     <InstallExecuteSequence>
>> >>>       <Custom Action="WixCloseApplications"
>> Before="InstallInitialize" />
>> >>>       <Custom Action="QtExecInstallCmdLineSet"
>> >>> After="InstallFiles">Not Installed</Custom>
>> >>>       <Custom Action="QtExecInstallCmdLineRun"
>> >>> After="QtExecInstallCmdLineSet">Not Installed</Custom>
>> >>>       <ScheduleReboot After="QtExecInstallCmdLineRun" />
>> >>>       <Custom Action="QtExecUninstallCmdLineSet"
>> >>> Before="RemoveFiles">Installed</Custom>
>> >>>       <Custom Action="QtExecUninstallCmdLineRun"
>> >>> After="QtExecUninstallCmdLineSet">Installed</Custom>
>> >>>     </InstallExecuteSequence>
>> >>>
>> >>>     <util:CloseApplication Id="CloseIE" CloseMessage="no"
>> >>>                            Description="Internet Explorer is still
>> >>> running."
>> >>>                            ElevatedCloseMessage="no"
>> >>>                            RebootPrompt="no"
>> >>>                            Target="iexplore.exe"/>
>> >>>     <util:CloseApplication Id="CloseChrome" CloseMessage="no"
>> >>>                            Description="Chrome is still running."
>> >>>                            ElevatedCloseMessage="no"
>> >>>                            RebootPrompt="no"
>> >>>                            Target="chrome.exe"/>
>> >>>     <util:CloseApplication Id="CloseFirefox" CloseMessage="no"
>> >>>                            Description="Chrome is still running."
>> >>>                            ElevatedCloseMessage="no"
>> >>>                            RebootPrompt="no"
>> >>>                            Target="firefox.exe"/>
>> >>>
>> >>
>> >>
>> >> On Wed, Apr 25, 2012 at 12:04 PM, E. Timothy Uy <t...@loqu8.com> wrote:
>> >>
>> >>> By the way, the code below doesn't work at all.
>> >>>
>> >>>
>> >>> On Wed, Apr 25, 2012 at 12:02 PM, E. Timothy Uy <t...@loqu8.com>
>> wrote:
>> >>>
>> >>>> Looks like I can only use WixCloseApplications once. How do I close
>> >>>> all browsers both before installation and right before
>> >>>> uninstallation? Trying the following...
>> >>>>
>> >>>>      <util:CloseApplication Id="CloseIE" CloseMessage="no"
>> >>>>>                            Description="Internet Explorer is still
>> >>>>> running."
>> >>>>>                            ElevatedCloseMessage="no"
>> >>>>>                            RebootPrompt="no"
>> >>>>>                            Target="iexplore.exe"/>
>> >>>>>     <util:CloseApplication Id="CloseChrome" CloseMessage="no"
>> >>>>>                            Description="Chrome is still running."
>> >>>>>                            ElevatedCloseMessage="no"
>> >>>>>                            RebootPrompt="no"
>> >>>>>                            Target="chrome.exe"/>
>> >>>>>     <util:CloseApplication Id="CloseFirefox" CloseMessage="no"
>> >>>>>                            Description="Chrome is still running."
>> >>>>>                            ElevatedCloseMessage="no"
>> >>>>>                            RebootPrompt="no"
>> >>>>>                            Target="firefox.exe"/>
>> >>>>>     <InstallExecuteSequence>
>> >>>>>       <Custom Action="WixCloseApplications"
>> Before="LaunchConditions"
>> >>>>> />
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>> On Wed, Apr 25, 2012 at 2:03 AM, Peter Shirtcliffe <
>> >>>> pshirtcli...@sdl.com> wrote:
>> >>>>
>> >>>>> See Util:CloseApplication in the wix help.
>> >>>>>
>> >>>>> -----Original Message-----
>> >>>>> From: E. Timothy Uy [mailto:t...@loqu8.com]
>> >>>>> Sent: 25 April 2012 06:00
>> >>>>> To: General discussion for Windows Installer XML toolset.
>> >>>>> Subject: [WiX-users] killing Chrome and Firefox
>> >>>>>
>> >>>>> Hi, we are a requirement to kill Chrome and Firefox during
>> >>>>> install, so that we can install or modify a plugin. What is the
>> >>>>> best way to kill processes (or ask the user to kill processes)?
>> >>>>>
>> >>>>> Thanks,
>> >>>>> Tim
>> >>>>>
>> >>>>> ------------------------------------------------------------------
>> >>>>> -----------
>> >>>>> -
>> >>>>> Live Security Virtual Conference
>> >>>>> Exclusive live event will cover all the ways today's security and
>> >>>>> threat landscape has changed and how IT managers can respond.
>> >>>>> Discussions will include endpoint security, mobile security and
>> >>>>> the latest in malware threats.
>> >>>>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> >>>>> _______________________________________________
>> >>>>> 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.
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> ------------------------------------------------------------------
>> >>>>> ------------
>> >>>>> Live Security Virtual Conference
>> >>>>> Exclusive live event will cover all the ways today's security and
>> >>>>> threat landscape has changed and how IT managers can respond.
>> >>>>> Discussions
>> >>>>> will include endpoint security, mobile security and the latest in
>> >>>>> malware threats.
>> >>>>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> >>>>> _______________________________________________
>> >>>>> WiX-users mailing list
>> >>>>> WiX-users@lists.sourceforge.net
>> >>>>> https://lists.sourceforge.net/lists/listinfo/wix-users
>> >>>>>
>> >>>>
>> >>>>
>> >>>
>> >>
>> >
>>
>> -----------------------------------------------------------------------------
>> -
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and threat
>> landscape has changed and how IT managers can respond. Discussions will
>> include endpoint security, mobile security and the latest in malware
>> threats.
>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to