.net WiX-安装windows服务以在x64模式下运行

.net WiX-安装windows服务以在x64模式下运行,.net,installation,wix,wix3.5,.net,Installation,Wix,Wix3.5,我正在使用WiX 3.5及其ServiceInstall标记安装Windows服务: <DirectoryRef Id="WindowsServiceContentDir"> <Component Id="WindowsServiceExecutableComponent" Guid="*" Win64="yes"> <File Source="$(var.WindowsServiceTargetDir)$(var.Windo

我正在使用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位计算机上安装后,该服务将以32位(x86)模式运行,尽管有Win64=“yes”属性。安装后,还需要执行哪些操作才能在x64模式下运行服务

谢谢

服务安装中的Type=“ownProcess”是针对win32进程的,因此服务以32位模式运行。也许您可以使用自定义操作来安装服务,而不是ServiceInstall元素