我想爲我的應用程序創建安裝程序安裝程序。我已經下載的WiX 3.6並安裝它在VS 2012WiX安裝程序在2012年無法運行
- 創建簡單的WinForm應用程序
- 的WiX安裝項目添加到我的解決方案
- 右鍵點擊引用和我的WinForm應用程序添加到設置的參考
- 我構建解決方案並轉到安裝項目中的調試目錄,然後運行SetupProject1.exe.msi它不起作用,並關閉安裝程序對話框而沒有任何錯誤。
返回設定項目
- 上安裝項目並選擇屬性右擊
- 在安裝選項卡>輸出類型,將其更改爲executablefile.exe
- 建立它,去調試並運行SetupProject1.exe - 仍然不起作用
出了什麼問題?這是我的設置項目product.wxs
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="SetupProject1" Language="1033" Version="1.0.0.0" Manufacturer="Natiloos" UpgradeCode="cfc2f4dd-2da5-49e2-9099-96968d75aaa4">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate />
<Feature Id="ProductFeature" Title="SetupProject1" Level="1">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
</Product>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="SetupProject1" />
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
<!-- <Component Id="ProductComponent"> -->
<!-- </Component> -->
</ComponentGroup>
</Fragment>
我怎樣才能安裝程序建立正確?
什麼版本的WiX您使用的是? –