- 浏览: 4200450 次
最新评论
[WiX]我的第一个WiX安装脚本
我的第一个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:
xml version="1.0" encoding="GB2312"?> Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi"> Product Id="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="4" unitname="a">4A</chmetcnv>63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector" Language="1033" Version="<chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.0.1</chsdate>.0" Manufacturer="UltraPower"> Package Id="<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="71" unitname="a">71A</chmetcnv>692D5-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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="6" unitname="C">06C</chmetcnv><chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="F">2F</chmetcnv>1B-xxxx-4862-A2B2-DFF<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="5" unitname="a">5A</chmetcnv>7B3BF16"> 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="379D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='UltraPower..RequestHandler.dll' Name="ReqHand.dll" LongName="UltraPower..RequestHandler.dll" src='C:/ZhengYun/SetupDemo/UltraPower..RequestHandler/ 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="479D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='Microsoft.Practices.EnterpriseLibrary.Caching.dll' Name="Caching1.dll" LongName="Microsoft.Practices.EnterpriseLibrary.Caching.dll" src='C:/ZhengYun/SetupDemo/CommandListener/bin/Debug/ 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的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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="4" unitname="a">4A</chmetcnv>63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector" Language="1033" Version="<chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.0.1</chsdate>.0" Manufacturer="UltraPower"> Package Id="<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="71" unitname="a">71A</chmetcnv>692D5-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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="6" unitname="C">06C</chmetcnv><chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="F">2F</chmetcnv>1B-xxxx-4862-A2B2-DFF<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="5" unitname="a">5A</chmetcnv>7B3BF16"> 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="379D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='UltraPower..RequestHandler.dll' Name="ReqHand.dll" LongName="UltraPower..RequestHandler.dll" src='C:/ZhengYun/SetupDemo/UltraPower..RequestHandler/ 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="479D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='Microsoft.Practices.EnterpriseLibrary.Caching.dll' Name="Caching1.dll" LongName="Microsoft.Practices.EnterpriseLibrary.Caching.dll" src='C:/ZhengYun/SetupDemo/CommandListener/bin/Debug/ 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的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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="4" unitname="a">4A</chmetcnv>63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector" Language="1033" Version="<chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.0.1</chsdate>.0" Manufacturer="UltraPower"> Package Id="<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="71" unitname="a">71A</chmetcnv>692D5-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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="6" unitname="C">06C</chmetcnv><chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="F">2F</chmetcnv>1B-xxxx-4862-A2B2-DFF<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="5" unitname="a">5A</chmetcnv>7B3BF16"> 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="379D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='UltraPower..RequestHandler.dll' Name="ReqHand.dll" LongName="UltraPower..RequestHandler.dll" src='C:/ZhengYun/SetupDemo/UltraPower..RequestHandler/ 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="479D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='Microsoft.Practices.EnterpriseLibrary.Caching.dll' Name="Caching1.dll" LongName="Microsoft.Practices.EnterpriseLibrary.Caching.dll" src='C:/ZhengYun/SetupDemo/CommandListener/bin/Debug/ 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的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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="4" unitname="a">4A</chmetcnv>63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector" Language="1033" Version="<chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.0.1</chsdate>.0" Manufacturer="UltraPower"> Package Id="<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="71" unitname="a">71A</chmetcnv>692D5-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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="6" unitname="C">06C</chmetcnv><chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="F">2F</chmetcnv>1B-xxxx-4862-A2B2-DFF<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="5" unitname="a">5A</chmetcnv>7B3BF16"> 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="379D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='UltraPower..RequestHandler.dll' Name="ReqHand.dll" LongName="UltraPower..RequestHandler.dll" src='C:/ZhengYun/SetupDemo/UltraPower..RequestHandler/ 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="479D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='Microsoft.Practices.EnterpriseLibrary.Caching.dll' Name="Caching1.dll" LongName="Microsoft.Practices.EnterpriseLibrary.Caching.dll" src='C:/ZhengYun/SetupDemo/CommandListener/bin/Debug/ 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的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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="4" unitname="a">4A</chmetcnv>63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector" Language="1033" Version="<chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.0.1</chsdate>.0" Manufacturer="UltraPower"> Package Id="<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="71" unitname="a">71A</chmetcnv>692D5-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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="6" unitname="C">06C</chmetcnv><chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="F">2F</chmetcnv>1B-xxxx-4862-A2B2-DFF<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="5" unitname="a">5A</chmetcnv>7B3BF16"> 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="379D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='UltraPower..RequestHandler.dll' Name="ReqHand.dll" LongName="UltraPower..RequestHandler.dll" src='C:/ZhengYun/SetupDemo/UltraPower..RequestHandler/ 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="479D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='Microsoft.Practices.EnterpriseLibrary.Caching.dll' Name="Caching1.dll" LongName="Microsoft.Practices.EnterpriseLibrary.Caching.dll" src='C:/ZhengYun/SetupDemo/CommandListener/bin/Debug/ 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的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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="4" unitname="a">4A</chmetcnv>63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector" Language="1033" Version="<chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.0.1</chsdate>.0" Manufacturer="UltraPower"> Package Id="<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="71" unitname="a">71A</chmetcnv>692D5-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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="6" unitname="C">06C</chmetcnv><chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="F">2F</chmetcnv>1B-xxxx-4862-A2B2-DFF<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="5" unitname="a">5A</chmetcnv>7B3BF16"> 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="379D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='UltraPower..RequestHandler.dll' Name="ReqHand.dll" LongName="UltraPower..RequestHandler.dll" src='C:/ZhengYun/SetupDemo/UltraPower..RequestHandler/ 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="479D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='Microsoft.Practices.EnterpriseLibrary.Caching.dll' Name="Caching1.dll" LongName="Microsoft.Practices.EnterpriseLibrary.Caching.dll" src='C:/ZhengYun/SetupDemo/CommandListener/bin/Debug/ 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的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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="4" unitname="a">4A</chmetcnv>63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector" Language="1033" Version="<chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.0.1</chsdate>.0" Manufacturer="UltraPower"> Package Id="<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="71" unitname="a">71A</chmetcnv>692D5-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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="6" unitname="C">06C</chmetcnv><chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="F">2F</chmetcnv>1B-xxxx-4862-A2B2-DFF<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="5" unitname="a">5A</chmetcnv>7B3BF16"> 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="379D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='UltraPower..RequestHandler.dll' Name="ReqHand.dll" LongName="UltraPower..RequestHandler.dll" src='C:/ZhengYun/SetupDemo/UltraPower..RequestHandler/ 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="479D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='Microsoft.Practices.EnterpriseLibrary.Caching.dll' Name="Caching1.dll" LongName="Microsoft.Practices.EnterpriseLibrary.Caching.dll" src='C:/ZhengYun/SetupDemo/CommandListener/bin/Debug/ 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的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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="4" unitname="a">4A</chmetcnv>63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector" Language="1033" Version="<chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.0.1</chsdate>.0" Manufacturer="UltraPower"> Package Id="<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="71" unitname="a">71A</chmetcnv>692D5-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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="6" unitname="C">06C</chmetcnv><chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="F">2F</chmetcnv>1B-xxxx-4862-A2B2-DFF<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="5" unitname="a">5A</chmetcnv>7B3BF16"> 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="379D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='UltraPower..RequestHandler.dll' Name="ReqHand.dll" LongName="UltraPower..RequestHandler.dll" src='C:/ZhengYun/SetupDemo/UltraPower..RequestHandler/ 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="479D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='Microsoft.Practices.EnterpriseLibrary.Caching.dll' Name="Caching1.dll" LongName="Microsoft.Practices.EnterpriseLibrary.Caching.dll" src='C:/ZhengYun/SetupDemo/CommandListener/bin/Debug/ 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的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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="4" unitname="a">4A</chmetcnv>63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector" Language="1033" Version="<chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.0.1</chsdate>.0" Manufacturer="UltraPower"> Package Id="<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="71" unitname="a">71A</chmetcnv>692D5-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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="6" unitname="C">06C</chmetcnv><chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="F">2F</chmetcnv>1B-xxxx-4862-A2B2-DFF<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="5" unitname="a">5A</chmetcnv>7B3BF16"> 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="379D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='UltraPower..RequestHandler.dll' Name="ReqHand.dll" LongName="UltraPower..RequestHandler.dll" src='C:/ZhengYun/SetupDemo/UltraPower..RequestHandler/ 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="479D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='Microsoft.Practices.EnterpriseLibrary.Caching.dll' Name="Caching1.dll" LongName="Microsoft.Practices.EnterpriseLibrary.Caching.dll" src='C:/ZhengYun/SetupDemo/CommandListener/bin/Debug/ 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的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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="4" unitname="a">4A</chmetcnv>63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector" Language="1033" Version="<chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.0.1</chsdate>.0" Manufacturer="UltraPower"> Package Id="<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="71" unitname="a">71A</chmetcnv>692D5-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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="6" unitname="C">06C</chmetcnv><chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="F">2F</chmetcnv>1B-xxxx-4862-A2B2-DFF<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="5" unitname="a">5A</chmetcnv>7B3BF16"> 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="379D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='UltraPower..RequestHandler.dll' Name="ReqHand.dll" LongName="UltraPower..RequestHandler.dll" src='C:/ZhengYun/SetupDemo/UltraPower..RequestHandler/ 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="479D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='Microsoft.Practices.EnterpriseLibrary.Caching.dll' Name="Caching1.dll" LongName="Microsoft.Practices.EnterpriseLibrary.Caching.dll" src='C:/ZhengYun/SetupDemo/CommandListener/bin/Debug/ 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的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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="4" unitname="a">4A</chmetcnv>63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector" Language="1033" Version="<chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.0.1</chsdate>.0" Manufacturer="UltraPower"> Package Id="<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="71" unitname="a">71A</chmetcnv>692D5-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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="6" unitname="C">06C</chmetcnv><chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="F">2F</chmetcnv>1B-xxxx-4862-A2B2-DFF<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="5" unitname="a">5A</chmetcnv>7B3BF16"> 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="379D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='UltraPower..RequestHandler.dll' Name="ReqHand.dll" LongName="UltraPower..RequestHandler.dll" src='C:/ZhengYun/SetupDemo/UltraPower..RequestHandler/ 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="479D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='Microsoft.Practices.EnterpriseLibrary.Caching.dll' Name="Caching1.dll" LongName="Microsoft.Practices.EnterpriseLibrary.Caching.dll" src='C:/ZhengYun/SetupDemo/CommandListener/bin/Debug/ 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的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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="4" unitname="a">4A</chmetcnv>63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector" Language="1033" Version="<chsdate w:st="on" year="1899" month="12" day="30" islunardate="False" isrocdate="False">1.0.1</chsdate>.0" Manufacturer="UltraPower"> Package Id="<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="71" unitname="a">71A</chmetcnv>692D5-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="E<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="6" unitname="C">06C</chmetcnv><chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="F">2F</chmetcnv>1B-xxxx-4862-A2B2-DFF<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="5" unitname="a">5A</chmetcnv>7B3BF16"> 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="379D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='UltraPower..RequestHandler.dll' Name="ReqHand.dll" LongName="UltraPower..RequestHandler.dll" src='C:/ZhengYun/SetupDemo/UltraPower..RequestHandler/ 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="479D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="59" unitname="a">059A</chmetcnv>-xxxx<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="460" unitname="F">-460f</chmetcnv>-83D9-90300D<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="2" unitname="C">2C</chmetcnv>10D8"> File Id='Microsoft.Practices.EnterpriseLibrary.Caching.dll' Name="Caching1.dll" LongName="Microsoft.Practices.EnterpriseLibrary.Caching.dll" src='C:/ZhengYun/SetupDemo/CommandListener/bin/Debug/ 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>
|
相关推荐
wix3.11版本安装工具
wix教程wix教程wix教程wix教程wix教程wix教程
WiX3.10版本安装工具
WIX 工具生成 MSI 驱动安装包的脚本,打包工具
WIX制作C#应用程序安装包
WiX Toolset v3.11.1 源码 在使用wix toolset 进行打包安装的时候,常常需要自定义界面,自定义界面就需要参照Wix本身提供的模板,在源码中经常会用到的目录是 wix3-wix3111rtm\src\ext\UIExtension\wixlib
程序中为wix3.7版本,但对于环境对wix3.5到wix3.7版本的需求都可使用(自己已经亲测可用),具体使用方法见压缩包内的readme文件
wix311-binaries.zip
wix3.0中文资源包 wix3.7中文资源包 WixUI_zh-cn.wxl WixUI_zh-tw.wxl
Wix Toolset 最新安装包,也包括VS支持包。安装后在VS上找不到Wix的话,就安装VS对应版本的支持包
wix development for windows installer
MSI安装包工具Wix帮助文档,这个可以直接生成MSI安装文件
wix 3.6 developers guide to windows installer.
WIX生成MSI包的核心程序,可以直接的通过脚本生成对应的MSI包,生成过程中修改对应的WMS文件来完成程序包的制作。
WiX Toolset v3.7 The most powerful set of tools available to create your Windows installation experience. Free and Open Source since 2004!
java jui 打包成exe 要用的两个工具, 下载非常慢,这个进行保存; wix310.exe & innosetup-5.6.1。 ----------- 检测到 [iscc.exe] 版本 0, 但需要版本 5。 [INFO] Skipping 'EXE 安装程序' because of ...
wix installwix installwix installwix installwix installwix installwix install