Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wix msi抱怨无法运行DLL错误1723(1157)_Wix_Windows Installer - Fatal编程技术网

Wix msi抱怨无法运行DLL错误1723(1157)

Wix msi抱怨无法运行DLL错误1723(1157),wix,windows-installer,Wix,Windows Installer,我正在创建一个示例msi。我正在使用C++自定义操作。我能够在Windows7 32位上安装msi。但我无法在Windows Server 2008 64位上安装它 代码如下: <Binary Id="BinaryId.dll" SourceFile="Test.dll" /> <CustomAction Id="TestFunc" BinaryKey="BinaryId" DllEntry="TestFunc" Execute="

我正在创建一个示例msi。我正在使用C++自定义操作。我能够在Windows7 32位上安装msi。但我无法在Windows Server 2008 64位上安装它

代码如下:

 <Binary Id="BinaryId.dll"
       SourceFile="Test.dll" />

<CustomAction Id="TestFunc" BinaryKey="BinaryId" DllEntry="TestFunc"
              Execute="immediate" Return="check"  />

<InstallExecuteSequence>
  <Custom Action="TestFunc" Before="InstallInitialize" Overridable="yes">1</Custom>
</InstallExecuteSequence>

非常感谢您为解决此问题提供的宝贵建议和帮助。:)

看看您使用的自定义操作方法TestFunc是什么。1157错误意味着:

无法创建运行此应用程序所需的库文件之一 找到了


因此,您可能正在使用某些在Windows Server 2008 64位上不可用但在Windows 7 32位上可用的库。

看看您正在使用的自定义操作方法TestFunc。1157错误意味着:

无法创建运行此应用程序所需的库文件之一 找到了


因此,您可能使用的库在Windows Server 2008 64位上不可用,但在Windows 7 32位上可用。

在托管.Net代码中编写自定义操作并不容易,需要手动操作项目文件。如果你可以在VB脚本、JavaScript或C++中轻松地编写相同的代码,那么我建议你采用这个路径。
以下是我使用的教程:.

在托管.Net代码中编写自定义操作并不容易,需要手动操作项目文件。如果你可以在VB脚本、JavaScript或C++中轻松地编写相同的代码,那么我建议你采用这个路径。
以下是我使用的教程:。

您能给我们展示一下TestFunc方法吗?这可能与你在那里做的事情有关。你能给我们展示一下TestFunc方法吗?这可能与你在那里所做的有关。谢谢。这很有帮助结果发现其中一个附属库丢失了你。这很有帮助结果发现其中一个依赖库丢失了
 Invoking remote custom action. DLL: C:\Windows\Installer\MSI84EB.tmp, Entrypoint: MSI (s) (8C:30) [01:28:17:180]: Doing action: TestFunc
MSI (s) (8C:30) [01:28:17:180]: Note: 1: 2205 2:  3: ActionText 
Action start 1:28:17: TestFunc.
MSI (s) (8C:A0) [01:28:17:184]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI8E90.tmp, Entrypoint: TestFunc
CustomAction TestFunc returned actual error code 1157 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (8C:30) [01:28:17:218]: Note: 1: 1723 2: TestFunc3: TestFunc4: C:\Windows\Installer\MSI8E90.tmp 
MSI (s) (8C:30) [01:28:17:218]: Note: 1: 2205 2:  3: Error 
MSI (s) (8C:30) [01:28:17:218]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1723 
MSI (c) (1C:74) [01:28:17:224]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg


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 TestFunc, entry: TestFunc, library: C:\Windows\Installer\MSI8E90.tmp 
MSI (s) (8C:30) [01:28:18:451]: Note: 1: 2205 2:  3: Error 
MSI (s) (8C:30) [01:28:18:451]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 
MSI (s) (8C:30) [01:28:18:451]: Product: TestCa -- 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 TestFunc, entry: TestFunc, library: C:\Windows\Installer\MSI8E90.tmp