2013-07-22 86 views
2

我使用WiX的3.5和ServiceInstall標籤安裝一個Windows服務運行:維克斯 - 安裝Windows服務在64位模式

<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模式下運行服務?

謝謝

回答

1

TYPE =「ownProcess」服務安裝爲Win32進程因此服務是在32位模式運行。也許你可以使用自定義操作來安裝服務而不是ServiceInstall元素。