[英]WiX - install windows service to run in x64 mode
我正在使用WiX 3.5及其ServiceInstall標記安裝Windows服務:
<DirectoryRef Id="WindowsServiceContentDir">
<Component Id="WindowsServiceExecutableComponent" Guid="*" Win64="yes">
<File Source="$(var.WindowsServiceTargetDir)$(var.WindowsServiceTargetName).exe" KeyPath="yes" />
<ServiceInstall Id="WindowsServiceInstall" Type="ownProcess" Start="auto" ErrorControl="normal" Vital="yes"
Name="[WIN_SERVICE_NAME]" DisplayName="Name"
Description="Name"
Account="[DENTITY_DOMAIN]\[IDENTITY_NAME]"
Password="[IDENTITY_PWD]">
</ServiceInstall>
<ServiceControl Id="WindowsServiceStop" Name="[WIN_SERVICE_NAME]" Stop="both" Remove="uninstall" Wait="yes" />
</Component>
</DirectoryRef>
在64位計算機上安裝后,盡管具有Win64 =“ yes”屬性,該服務仍以32位(x86)模式運行。 在安裝后以x64模式運行服務還需要做什么?
謝謝
服務安裝中的type =“ ownProcess”用於Win32進程,因此該服務以32位模式運行。 也許您可以使用自定義操作代替ServiceInstall元素來安裝服務。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.