当前位置: 首页 > 工具软件 > WiX > 使用案例 >

wix示例

宋华美
2023-12-01
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' xmlns:iis='http://schemas.microsoft.com/wix/IIsExtension'>

<Product Name='test of wix' Id='FA55B128-7312-4899-9300-BFE2B8299DCF'
    UpgradeCode='44ADC6FF-5F9E-418d-A035-D0F4DD7B6001'
    Language='1033' Codepage='1252' Version='1.0.0.0' Manufacturer='honty'>

<Package Id='*' Keywords='Installer' Description="test of wix"
     Comments='no comment' Manufacturer='honty'
     InstallerVersion='200' Languages='1033' Compressed='yes' SummaryCodepage='1252' InstallScope="perMachine"/>

<UI>
      <UIRef Id="WixUI_InstallDir" />
      <UIRef Id="WixUI_ErrorProgressText" />
    </UI>

<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />

<Media Id='1' Cabinet='gplpv.cab' EmbedCab='yes' />


<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="dir">
<!--<Component Id="test1.bat" Guid="31B5277C-8C62-4abb-A9C3-A8A6CDA7EDBC">
<File Id="test1.bat" Source=".\test1.bat"/>
</Component>-->
</Directory>
</Directory>
</Directory>

<Component Id="test1.bat" Guid="31B5277C-8C62-4abb-A9C3-A8A6CDA7EDBC" Directory="INSTALLDIR">
<File Id="test1.bat" Source=".\test1.bat"/>
</Component>

<Feature Id="MainApplication" Title="Main Application" Level="1">
<ComponentRef Id="test1.bat" />
</Feature>

<CustomAction Id='ExeBat' FileKey='test1.bat' ExeCommand='' Execute='deferred' Return='ignore' Impersonate='no'/>

<InstallExecuteSequence>
<Custom Action='ExeBat' After='InstallFiles'>NOT Installed</Custom>
</InstallExecuteSequence>

</Product>
</Wix>


 类似资料: