2012-10-22 51 views
-1

我是WIX的新品牌,並試圖創建MSI來安裝服務。安裝項目正在生成.wixlib對象而不是msi。我正在關閉this example爲什麼WiX安裝項目生成wixlib而不是MSI?

<?xml version="1.0" encoding="UTF-8"?> 
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 
    <!-- TODO: Put your code here. --> 
<Product Name="Smart Elf Service" 
     Id="*" 
     UpgradeCode="927E7BBE-58C0-4832-A821-24A6B19AEE63" 
     Version="1.0.0.0" 
     Manufacturer="Me!" 
     Language="1033"> 
<Package 
    Manufacturer="Me!" 
    InstallerVersion="100" 
    Languages="1033" /> 
    <Directory Id="TARGETDIR" Name="SourceDir"> 
    <Directory Id="ProgramFilesFolder" Name="Program Files(x86)"> 
     <Directory Id="CorporationFolder" Name="Corporation"> 
     <Directory Id="SmartElfFolder" Name="SmartElf Service"> 
      <Component Id="SmartElfService"> 
      <File Id="SmartElfServiceBinary" Name="ElfVerificationService.exe" Source ="..\ElfVerificationService\bin\debug\ElfVerificationService.exe" KeyPath="yes" Vital="yes"/> 
      <ServiceInstall 
       Id="SI_SmartElfService" 
       Vital="yes" 
       Name="sesvc" 
       DisplayName="SmartElf Service" 
       Start="auto" 
       ErrorControl="normal" 
       Type="ownProcess" 
      /> 

      <ServiceControl 
       Id="SC_SmartElfService" 
       Name="sesvc" 
       Start="install" 
       Stop="both" 
       Remove="uninstall" 
       Wait="yes" 
      /> 
      </Component> 
     </Directory> 
     </Directory> 
    </Directory> 
    </Directory> 
<Feature Id="DefaultFeature" Level="1"> 
    <ComponentRef Id="SmartElfService"/> 
</Feature> 
</Product> 
</Wix> 

回答

4

右鍵單擊解決方案資源管理器中的項目,然後選擇屬性。確保輸出類型設置爲Windows安裝程序包(.msi)。

+0

謝謝。不,我感到極其愚蠢:-P – user1354486