1.编译生成wixobj文件:
candle.exe Sample.wxs
2.生成最终Sample.msi:
light.exe Sample.wixobj
light.exe -ext WixUIExtension SampleWixUI.wixobj (带用户界面的安装包)
3.添加自定义用户界面页后编译生成.msi文件
candle.exe SampleWixUIAddDlg.wxs UserRegistrationDlg.wxs
light.exe -ext WixUIExtension -out SampleWixUIAddDlg.msi SampleWixUIAddDlg.wixobj UserRegistrationDlg.wixobj
4.本地化自定义用户界面
candle.exe SampleWixUIAddDlgLoc.wxs UserRegistrationDlg.wxs
light.exe -ext WixUIExtension -cultures:fr-fr -loc UserRegistrationDlg.fr-fr.wxl -out SampleWixUIAddDlgLoc.msi SampleWixUIAddDlgLoc.wixobj UserRegistrationDlg.wixobj
5.整合碎片的命令
candle.exe SampleFragment.wxs Manual.wxs
light.exe -out SampleFragment.msi SampleFragment.wixobj Manual.wixobj
6.Merge module的命令
candle.exe Module1.wxs
light.exe Module1.wixobj sou
candle.exe Module2.wxs
light.exe Module2.wixobj
candle.exe SampleMerge.wxs
light.exe SampleMerge.wixobj
7.抽取dll文件COM的命令
heat.exe file MyCOMDll.dll -out MyCOMDll.wxs
8.查看安装LOG:
msiexec /i SampleFirst.msi /l* SampleFirst.log
msiexec /i SampleFirst.msi /l*v SampleFirst.log
9.删除已安装程序:
msiexec /x SampleFirst.msi
wix帮助文档:
英文手册:
中文解释:
Wix 安装部署教程(四) 添加安装文件及快捷方式 - stoneniqiu - 博客园
系统文件夹属性:
https://docs.microsoft.com/en-us/previous-versions//aa372057(v=vs.85)?redirectedfrom=MSDN
其他更多属性:
属性引用 - Win32 apps | Microsoft Learn
标准行为参考:
标准操作参考 - Win32 apps | Microsoft Learn
变量名的含义:
标准控制事件:
Control Events (Windows Installer) - Win32 apps | Microsoft Learn