【发布时间】:2016-05-02 12:26:49
【问题描述】:
我们正在使用带有 wix 3.10.2015 的 Visual Studio 2015。
在win7 32位上安装时没有问题
在 XP 上安装时,调用 dll 中的自定义操作时出现以下错误。
Action start 16:03:50: MyCustomAction.
Action ended 16:03:51: MyCustomAction. Return value 3.
Action ended 16:03:51: INSTALL. Return value 3.
这是来自 customAction.cpp 文件的声明:
extern "C" _declspec(dllexport) UINT __stdcall MyCustomAction(MSIHANDLE hInstall);
extern "C" UINT __stdcall MyCustomAction(MSIHANDLE hInstall)
{
HRESULT hr = S_OK;
UINT er = ERROR_SUCCESS;
// commented out code
return WcaFinalize(er);
}
wix 声明:
<InstallExecuteSequence>
<Custom Action="myCustomAction" After='AppSearch' ></Custom>
</InstallExecuteSequence>
有什么想法吗?线索?方向将不胜感激
【问题讨论】:
标签: visual-c++ wix windows-xp wix3 wix3.10