In general, you mark the return value from the CA as "check" so that the install will not continue. Your code can call Win32 MsiProcessMessage to display an explicit error if required.
However that error result is 259. That is the standard "error" result back from APIs that enumerate items, and it just means that they have all been enumerated. In other words that code is incorrect because 259 is not a real error in these cases. It's saying you can't have the next one because there are no more. --------------- Phil Wilson On Thu, Apr 23, 2015 at 4:15 AM, RonnyS <ronnys.cod...@gmail.com> wrote: > Hello I have a problem with a Installation that do deinstall a old version > of the programm and install the new one. > > The old installation checks if Internet Explorer is opened and show a > Dialog to close it. > If you select Yes, the Internet Explorer is closed and the old installation > will be uninstalled. After uninstall the old the new installed will be > installed. > > If you select No, the removal of the old installation is aborted but the > new installation is running. At the end of the program is then installed > twice. > > In the logs I see the following error: > > MSI (s) (20:C8) [10:20:45:099]: Doing action: INSTALL > Aktion gestartet um 10:20:45: INSTALL. > MSI (s) (20:C8) [10:20:45:099]: Running ExecuteSequence > MSI (s) (20:C8) [10:20:45:099]: Doing action: DLLWrapStartup > MSI (s) (20:C8) [10:20:45:099]: Note: 1: 2235 2: 3: ExtendedType 4: SELECT > `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` > WHERE `Action` = 'DLLWrapStartup' > MSI (s) (20:24) [10:20:45:099]: Invoking remote custom action. DLL: > C:\Windows\Installer\MSI1029.tmp, Entrypoint: DLLWrapStartup > MSI (s) (20:F0) [10:20:45:099]: Generating random cookie. > MSI (s) (20:F0) [10:20:45:099]: Created Custom Action Server with PID 3012 > (0xBC4). > MSI (s) (20:6C) [10:20:45:115]: Running as a service. > MSI (s) (20:6C) [10:20:45:115]: Hello, I'm your 32bit Impersonated custom > action server. > Aktion gestartet um 10:20:45: DLLWrapStartup. > MSI (s) (20:C8) [10:20:45:162]: Doing action: Inst_MakeSetupFromResource > Aktion beendet um 10:20:45: DLLWrapStartup. Rückgabewert 1. > MSI (s) (20:C8) [10:20:45:162]: Note: 1: 2235 2: 3: ExtendedType 4: SELECT > `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` > WHERE `Action` = 'Inst_MakeSetupFromResource' > MSI (s) (20:D8) [10:20:45:177]: Invoking remote custom action. DLL: > C:\Windows\Installer\MSI1068.tmp, Entrypoint: DLL2 > Aktion gestartet um 10:20:45: Inst_MakeSetupFromResource. > MSI (s) (20:C8) [10:20:45:193]: Doing action: > Inst_CheckAllRunningApplications > Aktion beendet um 10:20:45: Inst_MakeSetupFromResource. Rückgabewert 1. > MSI (s) (20:C8) [10:20:45:193]: Note: 1: 2235 2: 3: ExtendedType 4: SELECT > `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` > WHERE `Action` = 'Inst_CheckAllRunningApplications' > MSI (s) (20:F8) [10:20:45:193]: Invoking remote custom action. DLL: > C:\Windows\Installer\MSI1089.tmp, Entrypoint: CheckAllRunningApplicationsMSI > Aktion gestartet um 10:20:45: Inst_CheckAllRunningApplications. > > CustomAction Inst_CheckAllRunningApplications returned actual error code > 259 (note this may not be 100% accurate if translation happened inside > sandbox) > > Aktion beendet um 10:20:47: Inst_CheckAllRunningApplications. Rückgabewert > 5. > > > How can I catch the error in the new installation and cancel the uninstall > of the old and the installation of the new. > > Hope you can help me, thanks > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users