- 追加された行はこの色です。
- 削除された行はこの色です。
&tag(Wix);
*目次 [#j64c0245]
#contents
*関連ページ [#g4cef5bd]
-[[WixEdit]]…とりあえず最初慣れるのにいいかも。
-[[./チュートリアル]]
-[[./チュートリアル]]…PENDING
-[[./基本]]
-[[./多言語化]]
-[[./バンドル]]
*参考情報 [#r4df800a]
-[[WiX Toolset:http://wixtoolset.org/]]
-[[WiX チュートリアル (日本語訳) ― Windows Installer XML ツールセット入門:http://wix.softark.net/index.html]]
-[[れあ@Cafe :: WiXによるインストーラの作成でハマったのでメモ:http://blog.livedoor.jp/reah_at/archives/32018406.html]]
*基本 [#q6f2d482]
-xmlファイルにセットアップ情報を書きコンパイルしてmsiファイルを生成する。
-xmlファイル(wxs)の基本形式は以下の通り。
#pre{{
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="614099E5-BA37-4582-B8D9-3CE65D469A49" Name="HelloWix サンプル 1.0" Language="1041" Version="1.0.0" Manufacturer="src256" UpgradeCode="05AE26F8-8FD2-4863-84A3-234E33BDFF0B" Codepage="932">
<Package Description="簡単なメッセージを標準出力に出力するバッチコマンド" Comments="This installer database contains the logic and data required to install HelloWix Sample." InstallerVersion="200" Compressed="yes" />
<Media Id="1" Cabinet="simple.cab" EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="hellowix" Name="hellowix">
<Component Id="HelloWix.cmd" Guid="48F2FCF5-592E-456D-8B4C-856BF15FFAB3">
<File Id="HELLOWIX.CMD" Name="HelloWix.cmd" Source="HelloWix.cmd" />
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="DefaultFeature" Title="Main Feature" Level="1">
<ComponentRef Id="HelloWix.cmd" />
</Feature>
<UI />
<UIRef Id="WixUI_InstallDir" />
<Property Id="WIXUI_INSTALLDIR" Value="hellowix" />
</Product>
</Wix>
}}
-Directory以下に含まれるファイルの情報もろもろを記述し、Featureで指定するのが基本らしい。
-ファイル一覧をずらずら書くのがめんどくさいので、[[Harvest Tool (Heat):http://wixtoolset.org/documentation/manual/v3/overview/heat.html]]というのがある。
-さらに手作業で書くのがめんどくさすぎるのである程度のものを作ることができるGUI、[[WixEdit]]というのもある。
*Tips [#z875395a]
**VisualStudio統合機能 [#l5a46f70]
-WiXをインストールするとVisualStudio統合機能が利用できる。
-例えば[[Using Project References and Variables:http://wixtoolset.org/documentation/manual/v3/votive/votive_project_references.html]]にあるような変数を使ってファイルを参照できる。
-[[Using Built-in WixUI Dialog Sets:http://wixtoolset.org/documentation/manual/v3/wixui/wixui_dialog_library.html]]のように
WixUIExtensionを参照に追加することで、lightに引数を渡さずともOKになる。
-[[Specifying Cultures to Build:http://wixtoolset.org/documentation/manual/v3/howtos/ui_and_localization/specifying_cultures_to_build.html]]のようにカルチャーの設定も行うことができる。