WiX 无法安装为 64 位
WiX failing to install as 64 bit
我通过 WiX 内置的 .msi 安装了 Windows 服务。我正在尝试将服务安装为 64 位,但由于某种原因失败得很惨。
实际 .wixproj
文件具有所需的构建属性:
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
.wxs
文件有必要的信息:
<Package ... Platform = x64 />
- 安装到
Program Files
文件夹
- 我所有的
Component
元素都有 Win64=yes
包含服务 .exe 的项目构建为 AnyCPU
环境(Windows Server '08 R2)为 64 位。
.exe 和 .wixproj
的实际构建都正常。
安装顺利。
但是当我通过任务管理器查看实际服务时,它被标记为 *32
。
我在这里遗漏了什么阻止我的应用程序安装为 64 位 process/causing 它安装为 32 位吗?
这不是因为 WiX。这是因为您将程序构建为 AnyCPU。有关详细信息,请参阅此答案。
我通过 WiX 内置的 .msi 安装了 Windows 服务。我正在尝试将服务安装为 64 位,但由于某种原因失败得很惨。
实际 .wixproj
文件具有所需的构建属性:
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
.wxs
文件有必要的信息:
<Package ... Platform = x64 />
- 安装到
Program Files
文件夹 - 我所有的
Component
元素都有Win64=yes
包含服务 .exe 的项目构建为 AnyCPU
环境(Windows Server '08 R2)为 64 位。
.exe 和 .wixproj
的实际构建都正常。
安装顺利。
但是当我通过任务管理器查看实际服务时,它被标记为 *32
。
我在这里遗漏了什么阻止我的应用程序安装为 64 位 process/causing 它安装为 32 位吗?
这不是因为 WiX。这是因为您将程序构建为 AnyCPU。有关详细信息,请参阅此答案。