[WiX]我的第一个WiX安装脚本

news/2024/7/3 3:36:22

我的第一个WiX安装脚本

 

WiXWiki

WiX 代表 Windows Installer Xml (WiX) toolset  它是建立Windows InstallerXML 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 4A 63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector"

        Language="1033" Version=" 1.0.1 .0" Manufacturer="UltraPower">

        <Package Id=" 71A 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 06C 2F 1B-xxxx-4862-A2B2-DFF 5A 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 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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="479D 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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安装脚本

 

WiXWiki

WiX 代表 Windows Installer Xml (WiX) toolset  它是建立Windows InstallerXML 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 4A 63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector"

        Language="1033" Version=" 1.0.1 .0" Manufacturer="UltraPower">

        <Package Id=" 71A 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 06C 2F 1B-xxxx-4862-A2B2-DFF 5A 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 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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="479D 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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安装脚本

 

WiXWiki

WiX 代表 Windows Installer Xml (WiX) toolset  它是建立Windows InstallerXML 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 4A 63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector"

        Language="1033" Version=" 1.0.1 .0" Manufacturer="UltraPower">

        <Package Id=" 71A 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 06C 2F 1B-xxxx-4862-A2B2-DFF 5A 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 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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="479D 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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安装脚本

 

WiXWiki

WiX 代表 Windows Installer Xml (WiX) toolset  它是建立Windows InstallerXML 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 4A 63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector"

        Language="1033" Version=" 1.0.1 .0" Manufacturer="UltraPower">

        <Package Id=" 71A 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 06C 2F 1B-xxxx-4862-A2B2-DFF 5A 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 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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="479D 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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安装脚本

 

WiXWiki

WiX 代表 Windows Installer Xml (WiX) toolset  它是建立Windows InstallerXML 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 4A 63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector"

        Language="1033" Version=" 1.0.1 .0" Manufacturer="UltraPower">

        <Package Id=" 71A 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 06C 2F 1B-xxxx-4862-A2B2-DFF 5A 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 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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="479D 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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安装脚本

 

WiXWiki

WiX 代表 Windows Installer Xml (WiX) toolset  它是建立Windows InstallerXML 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 4A 63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector"

        Language="1033" Version=" 1.0.1 .0" Manufacturer="UltraPower">

        <Package Id=" 71A 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 06C 2F 1B-xxxx-4862-A2B2-DFF 5A 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 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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="479D 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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安装脚本

 

WiXWiki

WiX 代表 Windows Installer Xml (WiX) toolset  它是建立Windows InstallerXML 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 4A 63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector"

        Language="1033" Version=" 1.0.1 .0" Manufacturer="UltraPower">

        <Package Id=" 71A 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 06C 2F 1B-xxxx-4862-A2B2-DFF 5A 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 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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="479D 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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安装脚本

 

WiXWiki

WiX 代表 Windows Installer Xml (WiX) toolset  它是建立Windows InstallerXML 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 4A 63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector"

        Language="1033" Version=" 1.0.1 .0" Manufacturer="UltraPower">

        <Package Id=" 71A 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 06C 2F 1B-xxxx-4862-A2B2-DFF 5A 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 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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="479D 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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安装脚本

 

WiXWiki

WiX 代表 Windows Installer Xml (WiX) toolset  它是建立Windows InstallerXML 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 4A 63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector"

        Language="1033" Version=" 1.0.1 .0" Manufacturer="UltraPower">

        <Package Id=" 71A 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 06C 2F 1B-xxxx-4862-A2B2-DFF 5A 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 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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="479D 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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安装脚本

 

WiXWiki

WiX 代表 Windows Installer Xml (WiX) toolset  它是建立Windows InstallerXML 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 4A 63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector"

        Language="1033" Version=" 1.0.1 .0" Manufacturer="UltraPower">

        <Package Id=" 71A 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 06C 2F 1B-xxxx-4862-A2B2-DFF 5A 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 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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="479D 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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安装脚本

 

WiXWiki

WiX 代表 Windows Installer Xml (WiX) toolset  它是建立Windows InstallerXML 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 4A 63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector"

        Language="1033" Version=" 1.0.1 .0" Manufacturer="UltraPower">

        <Package Id=" 71A 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 06C 2F 1B-xxxx-4862-A2B2-DFF 5A 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 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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="479D 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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安装脚本

 

WiXWiki

WiX 代表 Windows Installer Xml (WiX) toolset  它是建立Windows InstallerXML 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 4A 63349-xxxx-4268-9633-B746461FC007" Name="Presence Collector"

        Language="1033" Version=" 1.0.1 .0" Manufacturer="UltraPower">

        <Package Id=" 71A 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 06C 2F 1B-xxxx-4862-A2B2-DFF 5A 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 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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="479D 059A -xxxx -460f -83D9-90300D 2C 10D8">

                        <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>

 

 





http://www.niftyadmin.cn/n/3649404.html

相关文章

WordPress添加侧栏小工具-博客统计(网站统计)

WordPress侧边栏“博客统计”小工具的制作方法。首先要下载cztcms.zip文件&#xff0c;解压得到一个PHP文件。蓝奏云地址&#xff1a;▶ cztcms.zip 1、将这个PHP文件放到主题目录下。打开主题目录下的function.php&#xff0c;在最后一个 ?> 前插入以下代码&#xff1a; i…

every 和some_如何使用.every()和.some()操纵JavaScript数组

every 和some介绍 (Introduction) ES5 and ES6 brought many changes to JavaScript, including better ways of working with a collection of data expressed as arrays. While the language has significantly improved support for declarative data manipulation on array…

PhotoView的使用

1. 功能介绍 特性(Features)&#xff1a; 支持Pinch手势自由缩放。支持双击放大/还原。支持平滑滚动。在滑动父控件下能够运行良好。&#xff08;例如&#xff1a;ViewPager&#xff09;支持基于Matrix变化&#xff08;放大/缩小/移动&#xff09;的事件监听。 优势&#xff1…

PackageManagerService概述

PackageManagerService主要负责对系统的apk进行管理&#xff0c;不管是系统apk(/system/app)&#xff0c;还是我们手工安装上去的&#xff0c;系统所有的apk都是由其管理的。 我们看一下PackageManager类图 从图可知&#xff0c;PackageManage负责提供对外的接口&#xff0c;Pa…

PHP+MySQL实现精确统计网站访问量(IP个数)

基于WordPress的网站有很多统计功能。但是只能统计文章阅读数。不能统计访客人数。以下代码可以实现获取来访用户的IP地址&#xff0c;一个IP对应一次访问。即使刷新也不会增加访问量。这个非常精确。 1、创建一个存储数据的表。进入MySQL后直接创建即可。 create table wp_jc_…

JDBC连接sql server 2008数据库

public class TestJdbc {public static void main(String[] args) {// 定义需要的对象PreparedStatement ps null;Connection ct null;ResultSet rs null;try {// 初始化我们的对象// 1.加载驱动// Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"…

如何使用React-Lottie将动画添加到React应用

介绍 (Introduction) Adobe After Effects can be an intuitive way to generate web animations, but there has historically been problems converting these animations to web apps. It is usually necessary to use a third party program to import an animation from A…

Android系统常用隐藏命令大全

本文出自&#xff1a;http://androidkaifa.com/thread-1038-1-1.html android手机隐藏命令大全&#xff0c;用之前要考虑清楚尤其是涉及到格式化或者恢复出厂设置类的&#xff01; 注意&#xff1a;因Android版本较多&#xff0c;固有部分隐藏命令或不能使用&#xff08;笔者用…