If I try this: <util:CloseApplication Id="NetSvrUI" CloseMessage="yes" Target="NetSvrUI.exe" ElevatedCloseMessage="yes" RebootPrompt="no" />
I still get the error 2762 (see trace below), this happens with any combination of ElevatedCloseMessage and RebootPrompt. Also, the CloseApplication custom action is not stopping the application. I have a test application that I have written to send WM_CLOSE to the same program and that works ok. Let me know if you want me to try anything else. Neil MSI (s) (90:20) [15:06:53:411]: Doing action: WixCloseApplications Action 15:06:53: WixCloseApplications. Action start 15:06:53: WixCloseApplications. MSI (s) (90:90) [15:06:53:427]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI102.tmp, Entrypoint: WixCloseApplications MSI (s) (90:1C) [15:06:53:427]: Generating random cookie. MSI (s) (90:1C) [15:06:53:442]: Created Custom Action Server with PID 3604 (0xE14). MSI (s) (90:04) [15:06:53:474]: Running as a service. MSI (s) (90:04) [15:06:53:474]: Hello, I'm your 32bit Impersonated custom action server. WixCloseApplications: Checking App: NetSvrUI.exe WixCloseApplications: App: NetSvrUI.exe found running, 1 processes, attempting to send close message. WixCloseApplications: Attempting to send close message to process id 0xf48 WixCloseApplications: Sending close message to process id 0xf48 WixCloseApplications: Result 0x5 WixCloseApplications: Checking App: Net2.exe MSI (s) (90!48) [15:06:58:661]: PROPERTY CHANGE: Adding WixCloseApplicationsDeferred property. Its value is 'NetSvrUI.exe5Net2.exe3'. MSI (s) (90!48) [15:06:58:661]: Doing action: WixCloseApplicationsDeferred Action 15:06:58: WixCloseApplicationsDeferred. Action start 15:06:58: WixCloseApplicationsDeferred. MSI (s) (90!48) [15:06:58:677]: Note: 1: 2762 DEBUG: Error 2762: Unable to schedule operation. The action must be scheduled between InstallInitialize and InstallFinalize. The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2762. The arguments are: , , MSI (s) (90!48) [15:07:01:349]: Product: Net2 Access Control -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2762. The arguments are: , , Action ended 15:07:01: WixCloseApplicationsDeferred. Return value 3. WixCloseApplications: Error 0x80070643: Failed MsiDoAction on deferred action WixCloseApplications: Error 0x80070643: failed to schedule WixCloseApplicationsDeferred action Action ended 15:07:01: WixCloseApplications. Return value 1. MSI (s) (90:20) [15:07:01:364]: Doing action: InstallValidate Action 15:07:01: InstallValidate. Validating install -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Arnson Sent: 24 August 2008 01:11 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] util:CloseApplication - how do I use it Neil Sleightholm wrote: > suppress a reboot. I want it to try to stop the application, if it can't > then it should schedule a reboot. > Then it has to be scheduled between InstallInitialize/InstallFinalize, because CloseApplication uses a deferred CA. Eric just added a new attribute to try sending the WM_CLOSE while elevated; you might try that. -- sig://boB http://joyofsetup.com/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users