&tag(WiX/基本); *目次 [#obe99b1f] #contents *関連ページ [#e818adf8] *参考情報 [#nc7c8c66] *基本 [#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]]というのもある。