我们正在使用带有 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);
}
蜡声明:
<InstallExecuteSequence>
<Custom Action="myCustomAction" After='AppSearch' ></Custom>
</InstallExecuteSequence>
有任何想法吗 ?线索?方向将不胜感激