the close util:CloseApplication works fine because it closes the application graciously by displaying a dialog box with a close message within the application. but i needed something that would "kill" the process and i found the following: http://stackoverflow.com/questions/11439767/how-to-kill-a-process-from-wix
<Property Id="QtExecCmdLine" Value='"[WindowsFolder]\System32\taskkill.exe" /F /IM MyProcess.exe'/> <CustomAction Id="MyProcess.TaskKill" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="immediate" Return="ignore"/> it works fine but it displays this warning message below, my question is: Is there a better way to add this property? C:\Product.wxs(24) : warning CNDL1077 : The 'QtExecCmdLine' Property contains '[WindowsFolder]' in its value which is an illegal reference to another property. If this value is a string literal, not a property reference, please ignore this warning. To set a property with the value of another property, use a CustomAction with Property and Value attributes. On Wed, Oct 17, 2012 at 8:41 PM, Phil Wilson <phil.wil...@mvps.org> wrote: > You can write a custom action that uses the MsiProcessMessage (or > equivalent) call with INSTALLMESSAGE_FILESINUSE to cause a FilesInUse dialog > to display, as long as you populate the required record in the right way. > > http://msdn.microsoft.com/en-us/library/windows/desktop/aa371614(v=vs.85).as > px > > Phil > > -----Original Message----- > From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] > Sent: Wednesday, October 17, 2012 9:12 AM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] CloseApplication > > I don't think you can make the filesinuse dialog appear without trying to > replace a file in use. Why not close Outlook for the user with > CloseMessage="yes" ? > > -----Original Message----- > From: StevenOgilvie [mailto:sogil...@msn.com] > Sent: 17 October 2012 16:21 > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] CloseApplication > > I am trying to close Outlook since our product is a add-in for outlook, the > uninstall brings the FileInUseProcess which is great, but I also want this > for the INSTALL > > I am doing this but it is not working: > > <util:CloseApplication Id="CloseMicrosoftOutlook" > Property="FileInUseProcess" CloseMessage="no" ElevatedCloseMessage="no" > Description="Microsoft Outlook is open and needs to be closed before this > installation continues" RebootPrompt="no" Target="OUTLOOK.EXE" /> > <CustomAction Id="CA_SetProperty_FileInUseProcess" Execute="immediate" > Impersonate="yes" Property="[FileInUseProcess]" Value="OUTLOOK.EXE"/> > <UI> > <ProgressText Action="CA_SetProperty_FileInUseProcess">CA: Setting > file in use process...</ProgressText> > </UI> > > <InstallExecuteSequence> > <Custom Action="CA_SetProperty_FileInUseProcess" > Before="InstallValidate"></Custom> > > <InstallUISequence> > <Custom Action="CA_SetProperty_FileInUseProcess" > After="AppSearch"></Custom> > > Any suggestions? > > Steve > > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CloseApplicati > o > n-tp6885610p7581420.html > Sent from the wix-users mailing list archive at Nabble.com. > > ---------------------------------------------------------------------------- > - > - > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics Download AppDynamics Lite for > free > today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > 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. > > > ---------------------------------------------------------------------------- > -- > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics Download AppDynamics Lite for > free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users -- Best always, Muzi 082 594 4807 Light, Love & Prosperity in Abundance!!! ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users