wix #wix
1 1: wix 2 2 WiX 2 WiX 2 WiX 2 3 Examples 3 3 3 3 4 8
You can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: wix It is an unofficial and free wix ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official wix. The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners. Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to info@zzzprojects.com https://riptutorial.com/ja/home 1
1: wix をいめる WiX とはですか WiXツールセットをすると WindowsインストーラーであるWindows Installerのインストーラーをできます オープンソースであり.NET Foundationのです WiXのは のとじビルドコンセプトをしてWindowsインストーラパッケージをするのビルドツールです ソースコードをコンパイルしてリンクしてファイルをします このは.exeセットアップバンドル.msiインストールパッケージ.msmマージモジュール および.mspパッチがです WiXのコマンドラインビルドツールは すべてのビルドシステムでします また MSBuildはコマンドライン Visual Studio Team Buildからサポートされています WiXには Windows Installerのをするいくつかのがまれています たとえば WiXはIIS Webサイトをインストールし SQL Serverデータベースをし をWindowsファイアウォールにすることができます WiXのブートストラップであるBurnをすると.NET Frameworkやのランタイムのようなをのとともにインストールするセットアップバンドルをできます Burnをすると パッケージをダウンロードしたり ダウンロードなの.exeファイルにすることができます WiX SDKには CとC ++ ののカスタムアクションをむ Windowsインストーラでするコードをにできるライブラリとネイティブライブラリがまれています WiX はどのようにしますか WiXソースコードはXMLで.wxsファイルでかれています WiXツールは ソースコードからファイルをするためにされるのコンパイルおよびリンクモデルにいます ビルドに WiXソースファイルはコアWiXスキーマにしてされ プリプロセッサ コンパイラ およびリンカによってされ ながされます さまざまなタイプをするためにできるのWiXツールがあります WiX システム WiXは.NET 3.5および4.0のをサポートしています WiXのMSBuildサポートには.NET 3.5がです.Windows 8およびWindows Server 2012にはデフォルトではインストールされません WiXv3.11ののバージョンでは.NET 4.0がです.NET 3.5をしたビルドはサポートされなくなります https://riptutorial.com/ja/home 2
バージョン バージョン リリース 3.11 2017-05-05 3.10.3 2016-07-04 3.9 R2 2015-01-21 3.8 2013-11-28 3.7 2012-12-24 3.6 2012-09-03 3.5 2011-01-19 3.0 20090619 2.0 2007105 Examples インストールまたはセットアップ wixtoolset.org から WiX Toolset をダウンロードしてインストールします WiX Toolset のインストーラーは Visual Studio とのもします インストール WiX のプロジェク トをできるはずです がです WiX ののバージョンは Visual Studio ののバージョンとのみがあります V3.11にVisual Studioのがまれていない Visual Studioのバージョンのをダウンロードする があります V3.10はVisual Studio 2017ではしませんが Visual Studioのプロジェクトテンプレートがま れています インストーラは WiX をしてビルドされ しいウィンドウをします https://riptutorial.com/ja/home 3
それは 6 つのでされています WiX Toolsetインストーラによってインストールされたバージョンをし クリックしてWix Toolset Web サイトをします ライセンスライセンスをする インストールインストールをする Up To Dateしいバージョンがかどうかをチェックする ニュース WiXニュースをする インストーラをじる シンプルセットアップ このでは MyApp というのアプリケーションをむソリューションがにするとしています しいプロジェクトをソリューションにします https://riptutorial.com/ja/home 4
セットアッププロジェクトで [ プロジェクト ] タブからMyAppへのしいをします https://riptutorial.com/ja/home 5
Product.wxsファイルで ProductノードのManufacturerをHelloWorldます <Product Id="*" Name="MyApp.Setup" Language="1033" Version="1.0.0.0" Manufacturer="HelloWorld" UpgradeCode="52f2c69b-5901-4d18-bb96-8c1c86cd1a3e"> Directory ノードをむ Fragment ノードで をしい Directory でラップします <Directory Id="ManufacturerFolder" Name="!(bind.property.Manufacturer)"> <Directory Id="INSTALLFOLDER" Name="MyApp.Setup" /> </Directory> ComponentGroup ノードで コメントのいたノードのコメントをし TODO をしてから Component ノ ードに File ノードをし File <File Source="$(var.MyApplication.TargetPath)" /> Source は ビルドにパッケージングするファイルをつけるをします これらののをソースコード にハードコードするのではなく WiX コンパイラにされる WiX プリプロセッサをします https://riptutorial.com/ja/home 6
WiXプロジェクトをビルドします それでおしまいこれで アプリケーションをインストールしてアンインストールするインストーラがしました な Product.wxs ファイル <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="*" Name="MyApp.Setup" Language="1033" Version="1.0.0.0" Manufacturer="HelloWorld" UpgradeCode="52f2c69b-5901-4d18-bb96-8c1c86cd1a3e"> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> <MediaTemplate /> <Feature Id="ProductFeature" Title="MyApp.Setup" Level="1"> <ComponentGroupRef Id="ProductComponents" /> </Feature> </Product> <Fragment> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="ManufacturerFolder" Name="!(bind.property.Manufacturer)"> <Directory Id="INSTALLFOLDER" Name="MyApp.Setup" /> </Directory> </Directory> </Directory> </Fragment> <Fragment> <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> <Component Id="ProductComponent"> <File Source="$(var.MyApp.TargetPath)" /> </Component> </ComponentGroup> </Fragment> </Wix> オンラインで wix をいめるをむ https://riptutorial.com/ja/wix/topic/4487/wix をいめる https://riptutorial.com/ja/home 7
クレジット S. No Contributors 1 wix をいめる Community, cristallo, Jérémie Bertrand https://riptutorial.com/ja/home 8