Hi Blair, Again to my question. I got to know how to get the installation log and I checked the log. I found that when I call MyCA1 as:
<Custom Action="MyCA1" After="CostFinalize">UPGRADINGPRODUCTCODE</Custom> In the log file, it says: MSI (s) (08:3C) [11:37:10:114]: Skipping action: MyCA1 (condition is false) It means that UPGRADINGPRODUCTCODE is wrong, right? Which candition should I use? And I am not sure whether After="CostFinalize" is correct, yet. Regards, Chunyan -----Ursprüngliche Nachricht----- Von: Jiang, Chunyan (GE Healthcare) Gesendet: Montag, 10. August 2009 10:03 An: General discussion for Windows Installer XML toolset. Betreff: Re: [WiX-users] WG: WG: Do some Custom Actions during Upgrade Hi Blair, The problem is when I call MyCA1 as: <Custom Action="MyCA1" After="FindRelatedProducts">UPGRADINGPRODUCTCODE</Custom> There is compiler error: error LGHT0204: ICE75: UpgradeStopServices1 is a custom action whose source is an installed file. It must be sequenced after the CostFinalize action in the InstallExecuteSequence Sequence table When I call MyCA1 as: <Custom Action="MyCA1" After="CostFinalize">UPGRADINGPRODUCTCODE</Custom> It passed the compile, no error. But when I run .msi to upgrade the software, there is error message: There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Furthermore, the software is installed again in Software Add/Remove Panel, which is not what I want. I only want to do upgrade, not new install. Could you please give me some hint, how to run the CA only in upgrade? Thanks in advance! Chunyan -----Ursprüngliche Nachricht----- Von: Blair [mailto:os...@live.com] Gesendet: Freitag, 7. August 2009 18:31 An: 'General discussion for Windows Installer XML toolset.' Betreff: Re: [WiX-users] WG: WG: Do some Custom Actions during Upgrade What error code is your MyCA1 returning? And why? -----Original Message----- From: Jiang, Chunyan (GE Healthcare) [mailto:chunyan.ji...@ge.com] Sent: Friday, August 07, 2009 6:38 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] WG: WG: Do some Custom Actions during Upgrade I tried something more: set the first Custom Action as, <Custom Action="MyCA1" After="InstallFinalize">UPGRADEFOUND</Custom> The other CAs are same. It can pass compile. But when I install the msi, I still get the error message box "A program run as part of the setup did not finish as expected", like the first email. Furthermore, there is new software installed in Software control panel, which is not I want. I only want to upgrade it. How to resolve this problem? Thanks in advance! Chunyan -----Ursprüngliche Nachricht----- Von: Jiang, Chunyan (GE Healthcare) Gesendet: Freitag, 7. August 2009 10:04 An: General discussion for Windows Installer XML toolset. Betreff: [WiX-users] WG: Do some Custom Actions during Upgrade Hi again, For the custom action, I put it in <InstallExecuteSequence> And tried <Custom Action="UpgradeStopServices1" After="FindRelatedProducts">UPGRADINGPRODUCTCODE However, I got the error: error LGHT0204: ICE75: UpgradeStopServices1 is a custom action whose source is an installed file. It must be sequenced after the CostFinalize action in the InstallExecuteSequence Sequence table But if I change the After to CostFinalize, I got the error as my last email. It is strange. I have no idea how to set the "After". Regards, Chunyan -----Ursprüngliche Nachricht----- Von: Jiang, Chunyan (GE Healthcare) Gesendet: Donnerstag, 6. August 2009 17:31 An: General discussion for Windows Installer XML toolset. Betreff: [WiX-users] Do some Custom Actions during Upgrade Hi Wix-users, I have some Custom Actions, which should be called during Upgrade. Actually I want them to be called in the beginning of Upgrade, before remove files. So I set them as: <Custom Action="MyCA1" After="CostFinalize">UPGRADINGPRODUCTCODE</Custom> <Custom Action="MyCA2" After="MyCA1">UPGRADINGPRODUCTCODE</Custom> <Custom Action="MyCA3" After="MyCA2">UPGRADINGPRODUCTCODE</Custom> But when I ran .msi, as the custom actions started, one error message popped up: There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. I guess I call MyCAs in the wrong time. Is After="CostFinalize" wrong? What should I set here? Regards, Chunyan ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users