代码之家  ›  专栏  ›  技术社区  ›  Pat

根据CPU架构(x86 32位、x64 64位等)选择MSI的安装程序

  •  4
  • Pat  · 技术社区  · 14 年前

    我有一个安装程序(visualstudio安装项目),它 uses DIFxApp and an Orca transform to install drivers

    我和你一起工作过 NSIS 一点点,所以走那条路可能最容易。 Inno-Setup dotNetInstaller .

    3 回复  |  直到 8 年前
        1
  •  19
  •   Anders    14 年前

    如果您决定使用NSIS:

    !include "x64.nsh"
    ${If} ${RunningX64}
       MessageBox MB_OK "running on x64"
    ${Else}
       MessageBox MB_OK "running on x86"
    ${EndIf}
    
        2
  •  2
  •   Community CDub    8 年前

    您可以使用自定义操作来检测操作系统,然后调用正确的安装程序。

    single-msi-to-install-correct-32-or-64-bit-c-application

        3
  •  0
  •   arifwn    14 年前