【问题标题】:vs studio 2015 with XP and wix 3.10.2vs studio 2015 与 XP 和 wix 3.10.2
【发布时间】: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


    【解决方案1】:

    您的 Visual C++ 项目很可能是使用“现代”工具集构建的,您应该使用支持 Windows XP 的“旧”工具集版本。

    Configuring C++ 11 Programs for Windows XP

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多