[WiX]我的第一个WiX安装脚本
2007-12-17 10:48
330 查看
我的第一个WiX安装脚本
WiX的Wiki:
WiX 代表 Windows Installer Xml (WiX) toolset 它是建立Windows Installer的XML toolset (MSI) 包裹从XML 文件。它支持开发商集成他们的发布过程建立MSI 和MSM 设定包裹的命令行环境。
内部结构
Wix 由四份组成: 蜡烛、光、Lit 和黑暗。
蜡烛
蜡烛, 编译器, 叫蜡烛。
光
点燃, 连接器作为一个或更多目标文件和链接参考在目标文件在适当的标志在其它目标文件。光负责还对适当地收集所有binaries, 包装他们, 和组建最后的MSI 或MSM 文件。
Lit
Lit, 解放工具, 叫点燃了, 是可能被使用结合多份目标文件入图书馆可能由光解析的一个任意工具。
黑暗
黑暗, Decompiler 采取现有的代表包裹的MSI 和MSM 文件和组建XML 文件。
我的例子示范如下,脚本指示安装Windows Service以及一些dll:
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=357014
WiX的Wiki:
WiX 代表 Windows Installer Xml (WiX) toolset 它是建立Windows Installer的XML toolset (MSI) 包裹从XML 文件。它支持开发商集成他们的发布过程建立MSI 和MSM 设定包裹的命令行环境。
内部结构
Wix 由四份组成: 蜡烛、光、Lit 和黑暗。
蜡烛
蜡烛, 编译器, 叫蜡烛。
光
点燃, 连接器作为一个或更多目标文件和链接参考在目标文件在适当的标志在其它目标文件。光负责还对适当地收集所有binaries, 包装他们, 和组建最后的MSI 或MSM 文件。
Lit
Lit, 解放工具, 叫点燃了, 是可能被使用结合多份目标文件入图书馆可能由光解析的一个任意工具。
黑暗
黑暗, Decompiler 采取现有的代表包裹的MSI 和MSM 文件和组建XML 文件。
我的例子示范如下,脚本指示安装Windows Service以及一些dll:
<?xml version="1.0" encoding="GB2312"?> <Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi"> <Product Id="E4A63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector" Language="1033" Version="1.0.1.0" Manufacturer="UltraPower"> <Package Id="71A692D5-BE19-42e0-986D-AE17B98E93B1" Description="……." Comments="++++++++" InstallerVersion="200" Compressed="yes" /> <Media Id="1" Cabinet="Proxy.cab" EmbedCab="yes" /> <Media Id="2" Cabinet="Proxy2.cab" EmbedCab="yes" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramMenuFolder"/> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLLOCATION" Name="Proxy" LongName=" Proxy"> <Component Id='CommandListenerEXE' Guid="E06C2F1B-xxxx-4862-A2B2-DFF5A7B3BF16"> <File Id='UltraPower..CommandListener.exe' Name='CL.exe' LongName="UltraPower..CommandListener.exe" src='C:\ZhengYun\ SetupDemo\CommandListener\bin\Debug\UltraPower..CommandListener.exe' DiskId="1"/> <ServiceInstall Id='$(var.CommandListener.TargetFileName)' Name='CommandListener' DisplayName=' Command Listener' Type='ownProcess' Interactive='yes' Start='auto' Vital='yes' ErrorControl='normal'/> <ServiceControl Id='CommandListenerEXE' Name='CommandListener' Start='install' Stop='both' Remove='uninstall' Wait='yes'/> </Component> <Component Id="RequestHandlerCOM" Guid="379D059A-xxxx-460f-83D9-90300D2C10D8"> <File Id='UltraPower..RequestHandler.dll' Name="ReqHand.dll" LongName="UltraPower..RequestHandler.dll" src='C:\ZhengYun\SetupDemo\UltraPower..RequestHandler\ bin\Debug\UltraPower..RequestHandler.dll' DiskId="2"> <Shortcut Id="Proxy.RequestHanlder.Shortcut" Name="MyApp" LongName="Proxy RequestHanlder Shortcut" Description="A glorious expanse of battleship grey" Directory="ProgramMenuFolder"/> </File> </Component> <Component Id="CachingCOM" Guid="479D059A-xxxx-460f-83D9-90300D2C10D8"> <File Id='Microsoft.Practices.EnterpriseLibrary.Caching.dll' Name="Caching1.dll" LongName="Microsoft.Practices.EnterpriseLibrary.Caching.dll" src='C:\ZhengYun\SetupDemo\CommandListener\bin\Debug\ Microsoft.Practices.EnterpriseLibrary.Caching.dll' DiskId="1"> </File> </Component> </Directory> </Directory> </Directory> <Feature Id="ProductFeature" Title=" Collector Feature" Level="1"> <ComponentRef Id="RequestHandlerCOM" /> <ComponentRef Id="CachingCOM" /> <ComponentRef Id="CommandListenerEXE" /> </Feature> </Product> </Wix> |
相关文章推荐
- [WiX]我的第一个WiX安装脚本
- [WiX]我的第一个WiX安装脚本
- [WiX]我的第一个WiX安装脚本
- [WiX]我的第一个WiX安装脚本
- 今天看了些脚本的内容写了我的第一个脚本。安装dhcp脚本。
- Appium基础篇3-第一个appium自动化脚本之自动安装apk包到手机
- Appium基础篇3-第一个appium自动化脚本之自动安装apk包到手机
- 打印机安装脚本说明
- 脚本安装zabbix2.4(#2.2),基于centos6.6 basic server
- centos7 pptp安装脚本,防火墙使用firewall
- [shell]在线安装memcache的脚本
- ubuntu12.04 下android编译环境自动安装脚本及资源
- 解决LR12.53安装中文补丁后,回放脚本一直卡在编译的问题
- apache2.4脚本一键安装(linux环境)
- 一个批量安装文件夹下(包括子目录下)全部的Android apk文件批处理脚本
- 大三学长带我学习JAVA。作业1. 第1讲.Java.SE入门、JDK的下载与安装、第一个Java程序、Java程序的编译与执行 大三学长带我学习JAVA。作业1.
- GXT的安装与第一个程序
- 用inno Setup做应用程序安装包的示例脚本(.iss文件)
- 我的第一个shell脚本