I changed the Custom Action call as:

<Custom Action="UpgradeStopServices1" 
After="InstallFinalize">PREVIOUSFOUND</Custom>

But there is still the error in log as last email. 

The Custom Action is defined as:

<CustomAction Id='UpgradeStopServices1' FileKey='tao_imr.exe' 
ExeCommand='tao_imr -ORBInitRef ImplRepoService=file::/Locator.ior shutdown 
VPWEBSERVER' Return='check' />

If I run the function in the command line, there is message:

D:\VP6Wix\VPCommon>tao_imr -ORBInitRef ImplRepoService=file::/Locator.ior 
shutdown VPWEBSERVER
ACE (5544|3760) LN::open_dll - Failed to open TAO_Codeset: Error: check log for 
details.
ACE (5544|3760) Unable to create service object for TAO_Codeset
Successfully shut down server <VPWEBSERVER>

Although there is error, but the function works. Is it the reason that Custom 
Action doesn't work?



Regards,

Chunyan

-----Ursprüngliche Nachricht-----
Von: Jiang, Chunyan (GE Healthcare) 
Gesendet: Montag, 10. August 2009 13:45
An: General discussion for Windows Installer XML toolset.
Betreff: [WiX-users] Custom Action during Upgrade got error

Hi Wix-users,
 
I have one Custom Action, which should be called during upgrade. I called it as:
 
<Custom Action="UpgradeStopServices1"
After="CostFinalize">PREVIOUSFOUND</Custom>

 
But there is error in installation log, when I upgrade the msi:
 
MSI (s) (F8:78) [12:59:27:612]: Doing action: UpgradeStopServices1 Action 
12:59:27: UpgradeStopServices1. 
Action start 12:59:27: UpgradeStopServices1.
MSI (s) (F8:78) [12:59:27:956]: Note: 1: 1722 2: UpgradeStopServices1 3:
d:\VP6Wix\VPCommon\tao_imr.exe 4: tao_imr -ORBInitRef 
ImplRepoService=file::/Locator.ior shutdown VPWEBSERVER MSI (s) (F8:78) 
[12:59:27:956]: Note: 1: 2205 2:  3: Error MSI (s) (F8:78) [12:59:27:956]: 
Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 
1722 Error 1722. 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.  Action UpgradeStopServices1,
location: d:\VP6Wix\VPCommon\tao_imr.exe, command: tao_imr -ORBInitRef 
ImplRepoService=file::/Locator.ior shutdown VPWEBSERVER MSI (s) (F8:78) 
[12:59:33:362]: Note: 1: 2205 2:  3: Error MSI (s) (F8:78) [12:59:33:362]: 
Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 
1709 MSI (s) (F8:78) [12:59:33:362]: Product: VP6 Wix -- Error 1722. 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.  
Action UpgradeStopServices1, location:
d:\VP6Wix\VPCommon\tao_imr.exe, command: tao_imr -ORBInitRef 
ImplRepoService=file::/Locator.ior shutdown VPWEBSERVER 

 
Is there something wrong with After="CostFinalize"?
 
 
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

Reply via email to