syntax format
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2331 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8afa27dff9
commit
9ddf36c054
1 changed files with 50 additions and 37 deletions
|
@ -49,6 +49,12 @@ table
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #303030;
|
color: #303030;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.parameter
|
||||||
|
{
|
||||||
|
font-weight: bold;
|
||||||
|
color: #6586AC;
|
||||||
|
}
|
||||||
|
|
||||||
.header
|
.header
|
||||||
{
|
{
|
||||||
|
@ -66,9 +72,9 @@ table
|
||||||
|
|
||||||
.footer
|
.footer
|
||||||
{
|
{
|
||||||
margin: 5px 5px 5px 5px;
|
margin: 5px 5px 5px 5px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-size: 8pt;
|
font-size: 8pt;
|
||||||
color: #909090;
|
color: #909090;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,14 +145,15 @@ follow these steps:</p>
|
||||||
should insert. Most defines (i.e. MUI_WELCOMEPAGE) don't need
|
should insert. Most defines (i.e. MUI_WELCOMEPAGE) don't need
|
||||||
a value, there are true/false settings. Others
|
a value, there are true/false settings. Others
|
||||||
(i.e. MUI_FINISHPAGE_RUN) can be used to define a specific
|
(i.e. MUI_FINISHPAGE_RUN) can be used to define a specific
|
||||||
value: the value type is given next to the define name:
|
value.<br />
|
||||||
MUI_DEFINE (required) (option1 | option2) [optional].
|
Parameters are specified in this format:
|
||||||
When there are multiple values or optional flags, put them all
|
<span class="parameter">required (option1 | option2)
|
||||||
between the quotes of a define value.</p>
|
[optional]</span>.<br />
|
||||||
|
You should put all parameters in one string for the define:</p>
|
||||||
<pre class="margin">
|
<pre class="margin">
|
||||||
!define MUI_WELCOMEPAGE ;No value
|
!define MUI_WELCOMEPAGE ;No value
|
||||||
!define MUI_FINISHPAGE_RUN "$INSTDIR\Application.exe" ;Value
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\Application.exe" ;Value
|
||||||
!define MUI_FONTSTYLE_HEADER "700 /ITALIC" ;Multiple values
|
!define MUI_FONTSTYLE_HEADER "700 /ITALIC" ;Multiple parameters
|
||||||
</pre>
|
</pre>
|
||||||
<p class="text">All defines are optional.</p>
|
<p class="text">All defines are optional.</p>
|
||||||
<p class="subheader">3a. General settings</p>
|
<p class="subheader">3a. General settings</p>
|
||||||
|
@ -178,17 +185,18 @@ follow these steps:</p>
|
||||||
</pre>
|
</pre>
|
||||||
</p>
|
</p>
|
||||||
<div class="margin">
|
<div class="margin">
|
||||||
<p class="text"><span class="bold">MUI_STARTMENUPAGE_VARIABLE (variable)</span><br />
|
<p class="text"><span class="bold">MUI_STARTMENUPAGE_VARIABLE </span><span class="parameter">variable</span><br />
|
||||||
Variable to store the current Start Menu Folder. Default is $9.
|
Variable to store the current Start Menu Folder. Default is $9.
|
||||||
You cannot use this variable in your script (or you should Push/Pop it).</p>
|
You cannot use this variable in your script (or you should Push/Pop it).</p>
|
||||||
<p class="text"><span class="bold">MUI_STARTMENUPAGE_DEFAULTFOLDER (folder)</span><br />
|
<p class="text"><span class="bold">MUI_STARTMENUPAGE_DEFAULTFOLDER </span><span class="parameter">folder</span><br />
|
||||||
The default Start Menu Folder. Use $(LANGSTRINGNAME) as value is you want
|
The default Start Menu Folder. Use $(LANGSTRINGNAME) as value is you want
|
||||||
to use a language string.</p>
|
to use a language string.</p>
|
||||||
<p class="text"><span class="bold">MUI_STARTMENUPAGE_NODISABLE</span><br />
|
<p class="text"><span class="bold">MUI_STARTMENUPAGE_NODISABLE</span><br />
|
||||||
Do not display the checkbox to disable the creation of Start Menu
|
Do not display the checkbox to disable the creation of Start Menu
|
||||||
shortcuts.</p>
|
shortcuts.</p>
|
||||||
<p class="text"><span class="bold">MUI_STARTMENUPAGE_REGISTRY_ROOT (root),
|
<p class="text"><span class="bold">MUI_STARTMENUPAGE_REGISTRY_ROOT </span><span class="parameter">root</span><br />
|
||||||
MUI_STARTMENUPAGE_REGISTRY_KEY (key), MUI_STARTMENUPAGE_REGISTRY_VALUENAME (value_name)</span><br />
|
<span class="bold">MUI_STARTMENUPAGE_REGISTRY_KEY </span><span class="parameter">key</span><br />
|
||||||
|
<span class="bold">MUI_STARTMENUPAGE_REGISTRY_VALUENAME </span><span class="parameter">value_name</span><br />
|
||||||
The registry key to store the Start Menu folder. The page will use it to
|
The registry key to store the Start Menu folder. The page will use it to
|
||||||
remember the users preference. You should also use it in the uninstaller to
|
remember the users preference. You should also use it in the uninstaller to
|
||||||
remove the Start Menu folders. Don't forget to remove this key in the
|
remove the Start Menu folders. Don't forget to remove this key in the
|
||||||
|
@ -200,17 +208,17 @@ follow these steps:</p>
|
||||||
If the reboot flag is set, a page that allows the user to reboot the system
|
If the reboot flag is set, a page that allows the user to reboot the system
|
||||||
will be displayed (this option can be disabled).</p>
|
will be displayed (this option can be disabled).</p>
|
||||||
<div class="margin">
|
<div class="margin">
|
||||||
<p class="text"><span class="bold">MUI_FINISHPAGE_RUN (exe_file)</span><br />
|
<p class="text"><span class="bold">MUI_FINISHPAGE_RUN </span><span class="parameter">exe_file</span><br />
|
||||||
Application which the user can select to run (using a checkbox).
|
Application which the user can select to run (using a checkbox).
|
||||||
You don't need to put quotes around the filename when it contains spaces.</p>
|
You don't need to put quotes around the filename when it contains spaces.</p>
|
||||||
<div class="margin">
|
<div class="margin">
|
||||||
<p class="text"><span class="bold">MUI_FINISHPAGE_RUN_PARAMETERS (parameters)</span><br />
|
<p class="text"><span class="bold">MUI_FINISHPAGE_RUN_PARAMETERS </span><span class="parameter">parameters</span><br />
|
||||||
Parameters for the application to run. Don't forget to escape double
|
Parameters for the application to run. Don't forget to escape double
|
||||||
quotes in the value (use $\").</p>
|
quotes in the value (use $\").</p>
|
||||||
<p class="text"><span class="bold">MUI_FINISHPAGE_RUN_NOTCHECKED</span><br />
|
<p class="text"><span class="bold">MUI_FINISHPAGE_RUN_NOTCHECKED</span><br />
|
||||||
Do not check the 'Run program' checkbox by default</p>
|
Do not check the 'Run program' checkbox by default</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="text"><span class="bold">MUI_FINISHPAGE_SHOWREADME (file/url)</span><br />
|
<p class="text"><span class="bold">MUI_FINISHPAGE_SHOWREADME </span><span class="parameter">file/url</span><br />
|
||||||
File or website which the user can select to view (using a checkbox).
|
File or website which the user can select to view (using a checkbox).
|
||||||
You don't need to put quotes around the filename when it contains spaces.
|
You don't need to put quotes around the filename when it contains spaces.
|
||||||
Use $(LANGSTRINGNAME) as value is you want to use a language string.</p>
|
Use $(LANGSTRINGNAME) as value is you want to use a language string.</p>
|
||||||
|
@ -244,50 +252,55 @@ follow these steps:</p>
|
||||||
<p class="subheader">3b. Interface settings</p>
|
<p class="subheader">3b. Interface settings</p>
|
||||||
<p class="text">For UI elements that are enabled by default, the default value will be used when a setting
|
<p class="text">For UI elements that are enabled by default, the default value will be used when a setting
|
||||||
has not been defined.</p>
|
has not been defined.</p>
|
||||||
<p class="text"><span class="bold">MUI_UI (ui_file)</span><br />
|
<p class="text"><span class="bold">MUI_UI </span><span class="parameter">ui_file</span><br />
|
||||||
The interface file with the dialog resources. Change this if you have made your own customized UI.<br />
|
The interface file with the dialog resources. Change this if you have made your own customized UI.<br />
|
||||||
<i>Default: ${NSISDIR}\Contrib\UIs\modern.exe</i></p>
|
<i>Default: ${NSISDIR}\Contrib\UIs\modern.exe</i></p>
|
||||||
<p class="text"><span class="bold">MUI_UI_HEADERBITMAP (ui_file), MUI_UI_HEADERBITMAP_RIGHT (ui_file)</span><br />
|
<p class="text"><span class="bold">MUI_UI_HEADERBITMAP </span><span class="parameter">ui_file</span><br />
|
||||||
|
<span class="bold">MUI_UI_HEADERBITMAP_RIGHT </span><span class="parameter">ui_file</span><br />
|
||||||
The interface files with the dialog resource IDD_INST that contains a bitmap control and space for
|
The interface files with the dialog resource IDD_INST that contains a bitmap control and space for
|
||||||
the header bitmap.<br /><i>Default: ${NSISDIR}\Contrib\UIs\modern-headerbmp(r).exe</i></p>
|
the header bitmap.<br /><i>Defaults: ${NSISDIR}\Contrib\UIs\modern-headerbmp.exe,
|
||||||
<p class="text"><span class="bold">MUI_UI_SMALLDESCRIPTION, MUI_UI_NODESCRIPTION</span>
|
${NSISDIR}\Contrib\UIs\modern-headerbmpr.exe</i></p>
|
||||||
<i>(${NSISDIR}\Contrib\UIs\modern-(small/no)desc.exe)</i><br />
|
<p class="text"><span class="bold">MUI_UI_SMALLDESCRIPTION<br />MUI_UI_NODESCRIPTION</span><br />
|
||||||
The interface files with a customized dialog resource IDD_SELCOM for a small or no description area.</p>
|
The interface files with a customized dialog resource IDD_SELCOM for a small or no description area.<br />
|
||||||
<p class="text"><span class="bold">MUI_ICON (icon_file)</span><br />
|
<i>Defaults: {NSISDIR}\Contrib\UIs\modern-smalldesc.exe, {NSISDIR}\Contrib\UIs\modern-nodesc.exe</i></p>
|
||||||
|
<p class="text"><span class="bold">MUI_ICON </span><span class="parameter">icon_file</span><br />
|
||||||
The icon of the installer.<br /><i>Default: ${NSISDIR}\Contrib\Icons\modern-install.ico</i></p>
|
The icon of the installer.<br /><i>Default: ${NSISDIR}\Contrib\Icons\modern-install.ico</i></p>
|
||||||
<p class="text"><span class="bold">MUI_UNICON (icon_file)</span><br />
|
<p class="text"><span class="bold">MUI_UNICON </span><span class="parameter">icon_file</span><br />
|
||||||
The icon of the uninstaller.<br /><i>Default: ${NSISDIR}\Contrib\Icons\modern-uninstall.ico</i></p>
|
The icon of the uninstaller.<br /><i>Default: ${NSISDIR}\Contrib\Icons\modern-uninstall.ico</i></p>
|
||||||
<p class="text"><span class="bold">MUI_CHECKBITMAP (bitmap_file)</span><br />
|
<p class="text"><span class="bold">MUI_CHECKBITMAP </span><span class="parameter">bitmap_file</span><br />
|
||||||
The bitmap with images for the checks of the component select treeview.<br />
|
The bitmap with images for the checks of the component select treeview.<br />
|
||||||
<i>Default: ${NSISDIR}\Contrib\Icons\modern.bmp</i></p>
|
<i>Default: ${NSISDIR}\Contrib\Icons\modern.bmp</i></p>
|
||||||
<p class="text"><span class="bold">MUI_FONT (font_name), MUI_FONTSIZE (font_size)</span><br />
|
<p class="text"><span class="bold">MUI_FONT </span><span class="parameter">font_name</span><br />
|
||||||
|
<span class="bold">MUI_FONTSIZE </span><span class="parameter">font_size</span><br />
|
||||||
The font for the normal texts.<br /><i>Defaults: MS Shell Dlg, 8</i></p>
|
The font for the normal texts.<br /><i>Defaults: MS Shell Dlg, 8</i></p>
|
||||||
<p class="text"><span class="bold">MUI_FONT_HEADER (font_name), MUI_FONTSIZE_HEADER (font_size), MUI_FONTSTYLE_HEADER
|
<p class="text"><span class="bold">MUI_FONT_HEADER </span><span class="parameter">font_name</span><br />
|
||||||
(weight) [/ITALIC] [/UNDERLINE] [/STRIKE]</span><br /> The font for the title in the header.<br />
|
<span class="bold">MUI_FONTSIZE_HEADER </span><span class="parameter">font_size</span><br />
|
||||||
<i>Defaults: MS Shell Dlg, 8, 700</i></p>
|
<span class="bold">MUI_FONTSTYLE_HEADER </span><span class="parameter">weight [/ITALIC] [/UNDERLINE] [/STRIKE]</span><br />
|
||||||
<p class="text"><span class="bold">MUI_FONT_TITLE (font_name), MUI_FONTSIZE_TITLE (font_size), MUI_FONTSTYLE_TITLE
|
The font for the title in the header.<br /><i>Defaults: MS Shell Dlg, 8, 700</i></p>
|
||||||
(weight) [/ITALIC] [/UNDERLINE] [/STRIKE]</span><br />
|
<p class="text"><span class="bold">MUI_FONT_TITLE </span><span class="parameter">font_name</span><br />
|
||||||
|
<span class="bold">MUI_FONTSIZE_TITLE </span><span class="parameter">font_size</span></br />
|
||||||
|
<span class="bold">MUI_FONTSTYLE_TITLE </span><span class="parameter">weight [/ITALIC] [/UNDERLINE] [/STRIKE]</span><br />
|
||||||
The font for the title on the Welcome and Finish page.<br /><i>Defaults: Verdana, 12, 700</i></p>
|
The font for the title on the Welcome and Finish page.<br /><i>Defaults: Verdana, 12, 700</i></p>
|
||||||
<p class="text"><span class="bold">MUI_INSTALLCOLORS (/windows | (foreground color: RRBBGG)
|
<p class="text"><span class="bold">MUI_INSTALLCOLORS </span><span class="parameter">(/windows | (foreground color: RRBBGG)
|
||||||
(background color: RRGGBB))</span>
|
(background color: RRGGBB))</span>
|
||||||
<br />The colors of the details screen. Use /windows instead of the colors to use the Windows
|
<br />The colors of the details screen. Use /windows instead of the colors to use the Windows
|
||||||
colors (the default).<br /><i>Default: /windows</i></p>
|
colors (the default).<br /><i>Default: /windows</i></p>
|
||||||
<p class="text"><span class="bold">MUI_PROGRESSBAR ("" | colored | smooth)</span><br />
|
<p class="text"><span class="bold">MUI_PROGRESSBAR </span><span class="parameter">("" | colored | smooth)</span><br />
|
||||||
The style of the progress bar. Colored makes it use the MUI_INSTALLCOLORS.</br /><i>Default: smooth</i></p>
|
The style of the progress bar. Colored makes it use the MUI_INSTALLCOLORS.</br /><i>Default: smooth</i></p>
|
||||||
<p class="text"><span class="bold">MUI_HEADERBITMAP (bmp_file)</span><br />
|
<p class="text"><span class="bold">MUI_HEADERBITMAP </span><span class="parameter">bmp_file</span><br />
|
||||||
Bitmap to display in the white header. With the default DPI, a bitmap with a size 150x57
|
Bitmap to display in the white header. With the default DPI, a bitmap with a size 150x57
|
||||||
won't have to be resized. An example of a header bitmap is ${NSISDIR}\Contrib\Icons\modern-header.bmp,
|
won't have to be resized. The NSIS Setup uses the ${NSISDIR}\Contrib\Icons\modern-header.bmp bitmap,
|
||||||
but can also make one with your own logo.</p>
|
but can also make one with your own logo.</p>
|
||||||
<div class="margin">
|
<div class="margin">
|
||||||
<p class="text"><span class="bold">MUI_HEADERBITMAP_RIGHT</span><br />
|
<p class="text"><span class="bold">MUI_HEADERBITMAP_RIGHT</span><br />
|
||||||
Display the header image on the right side instead of the left side.</p>
|
Display the header image on the right side instead of the left side.</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="text"><span class="bold">MUI_SPECIALINI (ini_file)</span><br />
|
<p class="text"><span class="bold">MUI_SPECIALINI </span><span class="parameter">ini_file</span><br />
|
||||||
Install Options INI File for the Welcome and Finish page.<br />
|
Install Options INI File for the Welcome and Finish page.<br />
|
||||||
<i>Default: ${NSISDIR}\Contrib\Modern UI\ioSpecial.ini</i></p>
|
<i>Default: ${NSISDIR}\Contrib\Modern UI\ioSpecial.ini</i></p>
|
||||||
<p class="text"><span class="bold">MUI_SPECIALBITMAP (bmp_file)</span><br />
|
<p class="text"><span class="bold">MUI_SPECIALBITMAP </span><span class="parameter">bmp_file</span><br />
|
||||||
Bitmap for the Welcome and Finish page.<br /><i>Default: ${NSISDIR}\Contrib\Icons\modern-wizard.bmp</i></p>
|
Bitmap for the Welcome and Finish page.<br /><i>Default: ${NSISDIR}\Contrib\Icons\modern-wizard.bmp</i></p>
|
||||||
<p class="text"><span class="bold">MUI_BGCOLOR (color: 0xBBGGRR)</span><br />
|
<p class="text"><span class="bold">MUI_BGCOLOR </span><span class="parameter">(color: 0xBBGGRR)</span><br />
|
||||||
Background color for the header, Welcome page and Finish page.<br /><i>Default: 0xFFFFFF</i></p>
|
Background color for the header, Welcome page and Finish page.<br /><i>Default: 0xFFFFFF</i></p>
|
||||||
<p class="text"><span class="bold">MUI_RTL_UI</span><br />
|
<p class="text"><span class="bold">MUI_RTL_UI</span><br />
|
||||||
Right-to-left interface.</p>
|
Right-to-left interface.</p>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue