📄 dbwix.m4
字号:
<UIText Id="SelAbsentAbsent">This feature will remain uninstalled.</UIText>
<UIText Id="SelAbsentLocal">This feature will be installed.</UIText>
<UIText Id="SelChildCostNeg">This feature frees up [1] on your hard drive.</UIText>
<UIText Id="SelChildCostPos">This feature requires [1] on your hard drive.</UIText>
<UIText Id="SelCostPending">Compiling cost for this feature...</UIText>
<UIText Id="SelLocalAbsent">This feature will be completely removed.</UIText>
<UIText Id="SelLocalLocal">This feature will remain installed.</UIText>
<UIText Id="SelParentCostNegNeg">This feature frees up [1] on your hard drive. It has [2] of [3] subfeatures selected. The subfeatures free up [4] on your hard drive.</UIText>
<UIText Id="SelParentCostNegPos">This feature frees up [1] on your hard drive. It has [2] of [3] subfeatures selected. The subfeatures require [4] on your hard drive.</UIText>
<UIText Id="SelParentCostPosNeg">This feature requires [1] on your hard drive. It has [2] of [3] subfeatures selected. The subfeatures free up [4] on your hard drive.</UIText>
<UIText Id="SelParentCostPosPos">This feature requires [1] on your hard drive. It has [2] of [3] subfeatures selected. The subfeatures require [4] on your hard drive.</UIText>
<UIText Id="TimeRemaining">Time remaining: {[1] min }[2] sec</UIText>
<UIText Id="VolumeCostAvailable">Available</UIText>
<UIText Id="VolumeCostDifference">Differences</UIText>
<UIText Id="VolumeCostRequired">Required</UIText>
<UIText Id="VolumeCostSize">Disk Size</UIText>
<UIText Id="VolumeCostVolume">Volume</UIText>
')
m4_define(`COMMON_FEATURES', `
<!-- Here we list all the features to be installed.
- There is one canned feature, the rest of the
- features come from features.in, by way of a file
- that gets included.
-->
<Feature Id="AlwaysInstall" Title="Always Install"
Description="`$1'" Display="hidden" Level="1"
AllowAdvertise="no"
ConfigurableDirectory="INSTALLDIR" Absent="disallow">
<ComponentRef Id="RequiredFiles" />
<ComponentRef Id="RequiredCommonFiles" />
</Feature>
<!-- <Feature>, <ComponentRef> generated from {features,files}.in -->
WIX_DB_FEATURE_STRUCTURE()
')
m4_define(`COMMON_EXECUTE_SEQUENCE', `
<!-- TODO: fix comment
- We modify the execute sequence to insert some custom actions:
- we want the instenv program to run during install (after files
- are installed), and during uninstall (before files are removed).
- We set a condition on the custom actions to make this happen.
- The "!ident" notation indicates the current action for a feature
- with that identifier. We use the AlwaysInstall feature because
- it is always present in our feature list. A value of 3 means
- it is being installed locally, 1 means it is being uninstalled.
- TODO: removed for now
<Custom Action="InstEnvironment" After="PublishProduct">
<![CDATA[Not Installed]]></Custom>
-->
<InstallExecuteSequence>
</InstallExecuteSequence>
')
<!--
- Here are macros for each dialog that is shared by the installers.
- The idea for any customization is that each installer
- could potentially override a particular dialog.
- However, if it is feasible to share code, any of these
- dialogs could be parameterized further.
-
- In general, these macros have 3 parameters.
- The first is the id name of the dialog.
- The second is the id of the previous dialog (for the Back button).
- The third is the id of the next dialog (for the Next button).
-->
m4_define(`DIALOG_WELCOME', `
<Dialog Id="`$1'" DIALOGPROP>
BOTTOMSTRIPE()
BACKBUTTON_DISABLED()
CANCELBUTTON()
NEXTBUTTON(`$3')
TOPSTRIPE(54, `Welcome',
`The Installer will install [ProductName] on your computer.
To continue, click Next.')
<Control Id="Logo" Type="Bitmap" Text="OracleLogo"
X="0" Width="DIALOG_WIDTH" PARTIALHEIGHT(168) />
</Dialog>
')
<!-- Takes a 4th parameter, a short product name, like "Berkeley DB" -->
m4_define(`DIALOG_LICENSE', `
<RadioGroup Property="LicenseType">
<RadioButton Value="Open"
X="0" Y="0" Width="310" Height="15"
Text="I qualify for the &open source license shown above" />
<RadioButton Value="Commercial"
X="0" Y="15" Width="310" Height="15"
Text="I will need a co&mmercial license when I ship my product" />
</RadioGroup>
<Dialog Id="`$1'" DIALOGPROP>
TOPSTRIPE(84, `Open Source License', DB_LICENSE_INTRO(`$4'))
BOTTOMSTRIPE()
BACKBUTTON(`$2')
CANCELBUTTON()
NEXTBUTTON(`$3')
<Control Id="LicenseText" Type="ScrollableText" X="8" Width="368"
PARTIALHEIGHT(130) Sunken="yes">
<Text>WIX_DB_LICENSE_RTF()</Text>
</Control>
<Control Id="LicenseRadio" Type="RadioButtonGroup" X="8" Width="340"
PARTIALHEIGHT(35) Property="LicenseType" />
</Dialog>
')
m4_define(`DIALOG_TARGET', `
<RadioGroup Property="ApplicationUsers">
<RadioButton Value="AnyUser" X="0" Y="0" Width="270" Height="15"
Text="&Anyone who uses this computer (all users)" />
<RadioButton Value="CurUser" X="0" Y="15" Width="270" Height="15"
Text="Only for the current user" />
</RadioGroup>
<Dialog Id="`$1'" DIALOGPROP>
TOPSTRIPE(44, `Installation Folder',
`Click Next to install to the default folder.')
BOTTOMSTRIPE()
BACKBUTTON(`$2')
CANCELBUTTON()
NEXTBUTTON_GENERIC(Next,,
NEWDIALOGEVENT(`$3')
<Publish Event="SetInstallLevel" Value="300">
<![CDATA[0]]></Publish>
<Publish Property="ALLUSERS" Value="1">
<![CDATA[ApplicationUsers = "AnyUser"]]></Publish>
<Publish Property="ALLUSERS" Value="{}">
<![CDATA[ApplicationUsers = "CurUser"]]></Publish>
<Publish Property="SelectedSetupType" Value="Custom">
<![CDATA[1]]></Publish>
)
TEXTCONTROL(InstallToText, 16, `Install [ProductName] to:')
<Control Id="ChangeFolder" Type="PushButton" X="318" Y="_YPOS"
Width="66" Height="17" Text="&Change...">
<Publish Event="SpawnDialog" Value="ChangeFolderDlg">
<![CDATA[1]]></Publish>
<Publish Property="NewInstallDir" Value="INSTALLDIR">
<![CDATA[1]]></Publish>
</Control>
<Control Id="InstallToValue" Type="Text" X="40" Width="250"
PARTIALHEIGHT(20, 20)
Property="NewInstallDir" Text="[INSTALLDIR]" />
TEXTCONTROL(InstallForText, 14, `Install [ProductName] for:')
<Control Id="InstallForRadio" Type="RadioButtonGroup" PARTIALHEIGHT(50)
X="40" Width="310" Property="ApplicationUsers" />
</Dialog>
<Dialog Id="ChangeFolderDlg" DIALOGPROP>
TOPSTRIPE(44, `Change the Installation Folder',
`Browse to the folder you want to install to.')
BOTTOMSTRIPE()
NEXTBUTTON_GENERIC(OK,,
<Publish Event="SetTargetPath"
Value="[NewInstallDir]"><![CDATA[1]]></Publish>
<Publish Event="EndDialog" Value="Return"><![CDATA[1]]></Publish>
)
CANCELBUTTON_GENERIC(Cancel, Cancel="yes",
<Publish Event="Reset" Value="0"><![CDATA[1]]></Publish>
<Publish Event="EndDialog" Value="Return"><![CDATA[1]]></Publish>
)
TEXTCONTROL(LookText, 15, `&Install into:')
<Control Id="DirCombo" Type="DirectoryCombo"
X="20" Width="270" Y="_YPOS" Height="80"
Property="NewInstallDir" Indirect="yes" Removable="yes"
Fixed="yes" Remote="yes" CDROM="yes" RAMDisk="yes" Floppy="yes" />
<Control Id="FolderUp" Type="PushButton"
X="320" Width="19" Y="_YPOS" Height="19"
ToolTip="Up One Level" Icon="yes" FixedSize="yes"
IconSize="16" Text="IconUp">
<Publish Event="DirectoryListUp" Value="0"><![CDATA[1]]></Publish>
</Control>
<Control Id="FolderCreate" Type="PushButton"
X="345" Width="19" Y="_YPOS" Height="19"
ToolTip="Create New Folder" Icon="yes" FixedSize="yes"
IconSize="16" Text="IconCreateDir">
<Publish Event="DirectoryListNew" Value="0"><![CDATA[1]]></Publish>
</Control>
INCY(25)
<Control Id="DirList" Type="DirectoryList"
X="20" Width="342" PARTIALHEIGHT(100, 5)
Property="NewInstallDir" Sunken="yes"
Indirect="yes" TabSkip="no" />
<Control Id="FolderText" Type="Text"
X="20" Width="99" PARTIALHEIGHT(14, 1)
TabSkip="no" Text="&Folder name:" />
<Control Id="PathEditControl" Type="PathEdit"
X="20" Width="342" PARTIALHEIGHT(17)
Property="NewInstallDir" Sunken="yes" Indirect="yes" />
</Dialog>
')
<!-- Takes a 4th parameter, any extra text (restrictions) for debug libs -->
m4_define(`DIALOG_FEATURE', `
<Dialog Id="`$1'" DIALOGPROP TrackDiskSpace="yes">
TOPSTRIPE(36, `Feature Selection',
`Select the features of [ProductName] you want. Maximum install size is [MaxInstallSize].')
BOTTOMSTRIPE()
CANCELBUTTON
BACKBUTTON(`$2')
NEXTBUTTON_GENERIC(Next,,
<Publish Event="NewDialog" Value="`$3'">
<![CDATA[OutOfNoRbDiskSpace <> 1]]></Publish>
<Publish Event="NewDialog" Value="OutOfSpaceDlg">
<![CDATA[OutOfNoRbDiskSpace = 1]]></Publish>
<Publish Property="FullOrCustom" Value="Custom">
<![CDATA[1]]></Publish>
<!--
- This updates the FeatureList property and the
- properties like PATHValue that track the value
- to be displayed for environment variables.
-->
WIX_DB_ENV_FEATURE_SET()
)
<!-- TODO: When the debug checkbox is clicked,
- we would like to update the disk space usage numbers
- as shown in the SelectionTreeControl. Tried this:
<Publish Event="DoAction" Value="CostFinalize">
<![CDATA[1]]></Publish>
- but it made all the numbers zero. Probably need
- to perform a whole sequence, (like CostInitialize,...)
-->
TEXTCONTROL(ClickText, 15,
`Click on an icon in the list below to change how a feature is installed.')
INCY(5)
<Control Id="SelectionTreeControl" Type="SelectionTree"
X="8" Width="220" FULLHEIGHT
Property="NewInstallDir" Sunken="yes" TabSkip="no" />
<Control Id="GroupBoxControl" Type="GroupBox"
X="235" Width="131" FULLHEIGHT
Text="Feature Description" />
INCY(15)
<Control Id="ItemDescription" Type="Text"
X="241" Width="120" PARTIALHEIGHT(50) >
<Text></Text>
<Subscribe Event="SelectionDescription" Attribute="Text" />
</Control>
<Control Id="Size" Type="Text"
X="241" Width="120" PARTIALHEIGHT(50)
Text="Feature size">
<Subscribe Event="SelectionSize" Attribute="Text" />
</Control>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -