wixproject.xpt
来自「c#源代码」· XPT 代码 · 共 488 行 · 第 1/2 页
XPT
488 行
<?xml version="1.0"?>
<Template originator = "Mike Krueger"
created = "06/10/2001"
lastModified = "05/19/2005">
<!-- Template Header -->
<TemplateConfiguration>
<Name>${res:Templates.Project.SetupProject.Name}</Name>
<Category>Setup</Category>
<Icon>Icons.32x32.EmptyProjectIcon</Icon>
<LanguageName>WIX</LanguageName>
<Description>${res:Templates.Project.SetupProject.Description}</Description>
</TemplateConfiguration>
<!-- Actions -->
<Actions>
<Open filename = "Setup.wxs"/>
</Actions>
<!-- Template Content -->
<Combine name = "${ProjectName}" directory = ".">
<Options>
<StartupProject>${ProjectName}</StartupProject>
</Options>
<Project name = "${ProjectName}" directory = ".">
<Options/>
<Files>
<File name="Setup.wxs"><![CDATA[<?xml version="1.0"?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
<!-- WARNING! IT WILL NOT WORK UNTIL YOU SET VALID GUIDS HERE -->
<Product
Id = 'PUT-GUID-HERE'
UpgradeCode = 'PUT-GUID-HERE'
Name = 'Your Application'
Language = '1033'
Version = '1.0.0.0'
Manufacturer = 'Your Company'
Codepage = '1252'
>
<Package
Id = '????????-????-????-????-????????????'
Description = '#Description'
Comments = 'Comments'
InstallerVersion = '200'
Compressed = 'yes'
/>
<!-- INSTALL DESCRIPTION -->
<Media Id='1' Cabinet='contents.cab' EmbedCab='yes' />
<Directory Id='TARGETDIR' Name='SourceDir'>
</Directory>
<Feature Id='MyFeature' Title='Required Files' Level='1'>
<!-- add your ComponentRef nodes here -->
</Feature>
<!-- END INSTALL DESCRIPTION -->
<!-- FRAGMENTS -->
<FragmentRef Id="UserInterfaceInclude"/>
<FragmentRef Id="CustomActionInclude"/>
<FragmentRef Id="BinariesInclude"/>
<FragmentRef Id="LaunchConditionsInclude"/>
<!-- END FRAGMENTS -->
</Product>
</Wix>
]]></File>
<File name="CustomActions.wxs"><![CDATA[<?xml version="1.0"?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
<Fragment Id="CustomActionInclude">
<CustomAction Id="SET_TARGETDIR" Property="TARGETDIR" Value="[ProgramFilesFolder]\[ProductName]"
Execute="firstSequence" />
<InstallExecuteSequence>
<Custom Action="SET_TARGETDIR" Before="CostInitialize">TARGETDIR=""</Custom>
</InstallExecuteSequence>
<InstallUISequence>
<Custom Action="SET_TARGETDIR" Before="CostInitialize">TARGETDIR=""</Custom>
</InstallUISequence>
</Fragment>
</Wix>
]]></File>
<File name="Binaries.wxs"><![CDATA[<?xml version="1.0"?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
<Fragment Id="BinariesInclude">
<!-- add your binaries here -->
</Fragment>
</Wix>
]]></File>
<File name="LaunchConditions.wxs"><![CDATA[<?xml version="1.0"?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
<Fragment Id="LaunchConditionsInclude">
<!-- add your launch conditions here -->
</Fragment>
</Wix>
]]></File>
<File name="UserInterface.wxs"><![CDATA[<?xml version="1.0"?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
<Fragment Id="UserInterfaceInclude">
<Property Id="AcceptLicense">No</Property>
<!--BUTTON TEXTS-->
<Property Id="Button_Back">< &Back</Property>
<Property Id="Button_Next">&Next ></Property>
<Property Id="Button_Finish">&Finish</Property>
<Property Id="Button_OK">OK</Property>
<Property Id="Button_Cancel">Cancel</Property>
<Property Id="Button_Browse">Br&owse...</Property>
<Property Id="Button_Exit">&Exit</Property>
<Property Id="Button_Ignore">&Ignore</Property>
<Property Id="Button_Install">&Install</Property>
<Property Id="Button_Remove">&Remove</Property>
<Property Id="Button_Repair">&Repair</Property>
<Property Id="Button_Reset">&Reset</Property>
<Property Id="Button_Resume">&Resume</Property>
<Property Id="Button_Retry">&Retry</Property>
<Property Id="Button_Return">&Return</Property>
<Property Id="Button_Yes">&Yes</Property>
<Property Id="Button_No">&No</Property>
<!--END BUTTON TEXTS-->
<UI>
<!-- FONT DEFINITION -->
<Property Id="TitleFont">{&DlgFontBold8}</Property>
<Property Id="BigFont">{&VerdanaBold13}</Property>
<Property Id="DefaultUIFont">DlgFont8</Property>
<TextStyle Id="DlgFont8" FaceName="Tahoma" Size="8" />
<TextStyle Id="DlgFontBold8" FaceName="Tahoma" Size="8" Bold="yes" />
<TextStyle Id="VerdanaBold13" FaceName="Verdana" Size="13" Bold="yes" />
<!-- END FONT DEFINITION -->
<!-- DIALOG DEFINITION -->
<Dialog Id="WelcomeDialog" Width="370" Height="270" Title="[ProductName] [Setup]">
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="[Button_Next]">
<Publish Event="NewDialog" Value="ViewLicenseAgreement">1</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="[Button_Cancel]">
<Publish Event="SpawnDialog" Value="CancelDialog">1</Publish>
</Control>
<Control Id="Bitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="234" FixedSize="yes" TabSkip="no" Text="dialog.bmp" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Disabled="yes" Text="[Button_Back]" />
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="135" Y="70" Width="220" Height="90" Transparent="yes" NoPrefix="yes">
<Text>The installer will guide you through the steps required to install [ProductName] on your computer.</Text>
</Control>
<Control Id="Title" Type="Text" X="135" Y="20" Width="220" Height="60" Transparent="yes" NoPrefix="yes">
<Text>[BigFont]Welcome to the [ProductName] installation</Text>
</Control>
</Dialog>
<Dialog Id="ViewLicenseAgreement" Width="370" Height="270" Title="[ProductName]">
<Control Id="Buttons" Type="RadioButtonGroup" X="20" Y="187" Width="330" Height="40" Property="AcceptLicense" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="[Button_Back]">
<Publish Event="NewDialog" Value="WelcomeDialog">1</Publish>
</Control>
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="[Button_Next]">
<Publish Event="NewDialog" Value="SelectFolderDialog">AcceptLicense = "Yes"</Publish>
<Condition Action="disable">AcceptLicense <> "Yes"</Condition>
<Condition Action="enable">AcceptLicense = "Yes"</Condition>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="[Button_Cancel]">
<Publish Event="SpawnDialog" Value="CancelDialog">1</Publish>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" FixedSize="yes" TabSkip="no" Text="banner.bmp" />
<Control Id="AgreementText" Type="ScrollableText" X="20" Y="60" Width="330" Height="120" Sunken="yes" TabSkip="no">
<Text src="$(sys.SOURCEFILEDIR)/license.rtf"/>
</Control>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
<Control Id="BottomLine" Type="Line" X="4" Y="234" Width="366" Height="0" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
<Text>Please read the following license agreement carefully!</Text>
</Control>
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
<Text>[TitleFont]End-User License Agreement</Text>
</Control>
</Dialog>
<RadioButtonGroup Property="AcceptLicense">
<RadioButton Text="I &accept the terms in the License Agreement" X="5" Y="0" Width="300" Height="15" Value="Yes"/>
<RadioButton Text="I &do not accept the terms in the License Agreement" X="5" Y="20" Width="300" Height="15" Value="No"/>
</RadioButtonGroup>
<Dialog Id="SelectFolderDialog" Width="370" Height="270" Title="[ProductName]" TrackDiskSpace="yes">
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="[Button_Next]">
<Publish Event="NewDialog" Value="VerifyReadyDialog">1</Publish>
</Control>
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="[Button_Cancel]">
<Publish Event="SpawnDialog" Value="CancelDialog">1</Publish>
</Control>
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="[Button_Back]">
<Publish Event="NewDialog" Value="ViewLicenseAgreement">1</Publish>
</Control>
<Control Id="FolderEdit" Type="PathEdit" X="18" Y="126" Width="252" Height="18" Property="TARGETDIR" Sunken="yes" />
<Control Id="Browse" Type="PushButton" X="276" Y="126" Width="90" Height="18" Text="[Button_Browse]">
<Publish Property="_BrowseProperty" Value="TARGETDIR">1</Publish>
<Publish Event="SpawnDialog" Value="BrowseDialog">1</Publish>
</Control>
<Control Id="Text" Type="Text" X="25" Y="70" Width="320" Height="40">
<Text>To install in this folder, click "Next". To install to a different folder, enter it below or click "Browse".</Text>
</Control>
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" FixedSize="yes" Text="banner.bmp" />
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
<Control Id="BottomLine" Type="Line" X="4" Y="234" Width="366" Height="0" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
<Text>This is the folder where [ProductName] will be installed.</Text>
</Control>
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
<Text>[TitleFont]Select Installation Folder</Text>
</Control>
<Control Id="FolderLabel" Type="Text" X="20" Y="114" Width="348" Height="12" Text="&Folder:" />
</Dialog>
<Dialog Id="VerifyReadyDialog" Width="370" Height="270" Title="[ProductName]" TrackDiskSpace="yes">
<Control Id="Install" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="[Button_Install]">
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace <> 1</Publish>
<Publish Event="SpawnDialog" Value="OutOfRbDiskDlg">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST)</Publish>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?