WIX自定义操作执行失败

时间:2013-07-09 06:40:41

标签: visual-studio-2010 wix custom-action wix3.7

我已经创建了一个在数据库上执行脚本的设置。但是,当我试图运行设置时,我得到了以下错误,我已经从日志中取出。

Doing action: VerifyConnection Action 12:03:17: VerifyConnection.  
Action start 12:03:17: VerifyConnection. MSI (c) (38:E0) 
[12:03:17:739]: Invoking remote custom action. DLL: C:\Users\adityak\AppData\Local\Temp\MSI4F99.tmp, Entrypoint: VerifyConnection MSI (c) (38:A4) [12:03:17:741]: Cloaking enabled. MSI (c) (38:A4) 
[12:03:17:741]: Attempting to enable all disabled privileges before calling Install on Server MSI (c) (38:A4) 
[12:03:17:742]: Connected to service for CA interface. MSI (c) (38:54) 
[12:03:17:788]: Note: 1: 1723 2: VerifyConnection 3: VerifyConnection 4: C:\Users\adityak\AppData\Local\Temp\MSI4F99.tmp  Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor.  Action VerifyConnection, entry: VerifyConnection, library: C:\Users\adityak\AppData\Local\Temp\MSI4F99.tmp  MSI (c) (38:54) 
[12:03:19:186]: Product: CRMnext -- Error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your support personnel or package vendor.  Action VerifyConnection, entry: VerifyConnection, library: C:\Users\adityak\AppData\Local\Temp\MSI4F99.tmp

Action ended 12:03:19: VerifyConnection. Return value 3.
DEBUG: Error 2896:  Executing action VerifyConnection failed

任何想法如何解决这个问题???

1 个答案:

答案 0 :(得分:0)

  1. 确保您的操作具有正确的签名;特别是该方法需要“公共”和“静态”,即“公共静态ActionResult doSomething(会话会话)”
  2. 使用“CustomAction”属性标记mehtod,以便导出
  3. 处理在一个dll中实施的多个自定义操作时,请确保您没有遇到已知的MakeSfxCA错误(参见http://wixtoolset.org/issues/4502/Adding a new Custom Action to a project prevents an existing Custom Action from being run