📄 wixproject.xpt
字号:
<?xml version="1.0"?>
<Template originator = "Mike Krueger"
created = "06/10/2001"
lastModified = "02/01/2003">
<!-- 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'>
<Product
Id = 'A0AB2551-A579-42D3-9A90-D6424B3AC2CD'
Name = 'Your Application'
Language = '1033'
Version = '1.0.0.0'
Manufacturer = 'Your Company'
>
<Package
Id = 'A0AB2551-A579-42D3-9A90-D6424B3AC2CD'
Description = '#Description'
Comments = 'Comments'
InstallerVersion = '200'
Compressed = 'yes'
/>
<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-->
<CustomAction Id="SET_TARGETDIR" Property="TARGETDIR" Value="[ProgramFilesFolder]\[ProductName]" Execute="firstSequence" />
<!-- INSTALL DESCRIPTION -->
<Media Id='1' Cabinet='contents.cab' EmbedCab='yes' />
<Directory Id='TARGETDIR' Name='SourceDir'>
</Directory>
<Feature Id='MyFeature' Title='Required Files' Level='1'>
</Feature>
<!-- END INSTALL DESCRIPTION -->
<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="374" 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="374" 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="374" Height="0" />
<Control Id="BottomLine" Type="Line" X="4" Y="234" Width="370" 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>
<RadioGroup Property="AcceptLicense">
<RadioButton Text="I &accept the terms in the License Agreement" X="5" Y="0" Width="300" Height="15">Yes</RadioButton>
<RadioButton Text="I &do not accept the terms in the License Agreement" X="5" Y="20" Width="300" Height="15">No</RadioButton>
</RadioGroup>
<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="374" Height="44" FixedSize="yes" Text="banner.bmp" />
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="374" Height="0" />
<Control Id="BottomLine" Type="Line" X="4" Y="234" Width="370" 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>
<Publish Event="EndDialog" Value="Return">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="EnableRollback" Value="False">OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D"</Publish>
<Publish Event="SpawnDialog" Value="OutOfDiskDlg">(OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F")</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="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="374" Height="44" FixedSize="yes" TabSkip="no" Text="banner.bmp" />
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="[Button_Back]">
<!-- <Publish Event="NewDialog" Value="AdminInstallPointDlg">InstallMode = "Server Image"</Publish>
<Publish Event="NewDialog" Value="CustomizeDlg">InstallMode = "Custom" OR InstallMode = "Change"</Publish>
<Publish Event="NewDialog" Value="MaintenanceTypeDlg">InstallMode = "Repair"</Publish> InstallMode = "Typical" OR InstallMode = "Complete" -->
<Publish Event="NewDialog" Value="SelectFolderDialog"></Publish>
</Control>
<Control Id="Text" Type="Text" X="25" Y="70" Width="320" Height="80">
<Text>Click Install to begin the installation. If you want to review or change any of your installation settings, click Back. Click Cancel to exit the wizard.</Text>
</Control>
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="374" Height="0" />
<Control Id="BottomLine" Type="Line" X="4" Y="234" Width="370" Height="0" />
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
<Text>The [Wizard] is ready to begin the [InstallMode] installation</Text>
</Control>
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
<Text>[TitleFont]Ready to Install</Text>
</Control>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -