Debian Codegraph @

Docs/src/attributes.but

raw
1 \H{instattribs} Installer Attributes
2
3 \S1{attribgen} General Attributes
4
5 The commands below all adjust attributes of the installer. These attributes control how the installer looks and functions, including which pages are present in the installer, which text is displayed in each part of each page, the name of the installer, the icon the installer uses, the default installation directory and more. Note that these attributes can be set anywhere in the file except in a \R{ssection}{Section} or \R{ffunction}{Function}.
6
7 \\<b\\>\\<u\\>Defaults are bold and underlined\\</u\\>\\</b\\>
8
9 \S2{aaddbrandingimage} AddBrandingImage
10
11 \c (left|right|top|bottom) (width|height) [padding]
12
13 Adds a branding image on the top, bottom, left, or right of the installer. Its size will be set according to the width/height specified, the installer width/height and the installers font. The final size will not always be what you requested; have a look at the output of the command for the actual size. Because this depends on the installers font, you should use \R{asetfont}{SetFont} before AddBrandingImage. The default padding value is 2. The numbers can be suffixed with \c{u} to specify dialog units instead of pixels.
14
15 AddBrandingImage only adds a placeholder for an image. To set the image itself at runtime, use \R{setbrandingimage}{SetBrandingImage}.
16
17 \c AddBrandingImage left 100
18 \c AddBrandingImage right 50
19 \c AddBrandingImage top 20u 3u
20 \c AddBrandingImage bottom 35
21 \c AddBrandingImage left 100 5
22
23 \S2{aallowrootdirinstall} AllowRootDirInstall
24
25 \c true|\\<b\\>false\\</b\\>
26
27 Controls whether or not installs are allowed in the root directory of a drive, or directly into a network share. Set to 'true' to change the safe behavior, which prevents users from selecting C:\\ or \\\\Server\\Share as an install (and later on, uninstall) directory. For additional directory selection page customizability, see \R{onverifyinstdir}{.onVerifyInstDir}.
28
29 \S2{aautoclosewindow} AutoCloseWindow
30
31 \c true|\\<b\\>false\\</b\\>
32
33 Sets whether or not the install window automatically closes when completed. This is overridable from a section using \R{setautoclose}{SetAutoClose}.
34
35 \S2{abgfont} BGFont
36
37 \c [font_face [height [weight] [/ITALIC] [/UNDERLINE] [/STRIKE]]]
38
39 Specifies the font used to show the text on the background gradient. To set the color use \R{abggradient}{BGGradient}. The default font will be used if no parameters are specified. The default font is bold and italic Times New Roman.
40
41 \S2{abggradient} BGGradient
42
43 \c [\\<b\\>off\\</b\\>|(topc botc [textcolor|notext])]
44
45 Specifies whether or not to use a gradient background window. If 'off', the installer will not show a background window, if no parameters are specified, the default black to blue gradient is used, and otherwise the top_color or bottom_color are used to make a gradient. Top_color and bottom_color are specified using the form RRGGBB (in hexadecimal, as in HTML, only minus the leading '#', since # can be used for comments). 'textcolor' can be specified as well, or 'notext' can be specified to turn the big background text off.
46
47 \S2{abrandingtext} BrandingText
48
49 \c /TRIM(LEFT|RIGHT|CENTER) text
50
51 Sets the text that is shown at the bottom of the install window (by default it is 'Nullsoft Install System vX.XX'). Setting this to an empty string ("") uses the default; to set the string to blank, use " " (a space). If it doesn't matter to you, leave it the default so that everybody can know why the installer didn't suck :). Use /TRIMLEFT, /TRIMRIGHT or /TRIMCENTER to trim down the size of the control to the size of the string.
52
53 Accepts variables. If variables are used, they must be initialized on \R{oninit}{.onInit}.
54
55 \S2{acaption} Caption
56
57 \c caption
58
59 When used outside a \R{pageex}{PageEx} block: Sets the text for the titlebar of the installer. By default it is '$(^Name) Setup', where Name is specified by the \R{aname}{Name} instruction. You can however override it with 'MyApp Installer' or whatever. If you specify an empty string (""), the default will be used (you can specify " " to simulate a empty string).
60
61 When used inside a \R{pageex}{PageEx} block: Sets the subcaption of the current page.
62
63 Accepts variables. If variables are used, they must be initialized on \R{oninit}{.onInit} or \R{onguiinit}{.onGUIInit}.
64
65 \S2{achangeui} ChangeUI
66
67 \c dialog ui_file.exe
68
69 Replaces dialog (\e{IDD_LICENSE}, \e{IDD_DIR}, \e{IDD_SELCOM}, \e{IDD_INST}, \e{IDD_INSTFILES}, \e{IDD_UNINST} or \e{IDD_VERIFY}) with a dialog from ui_file.exe with the same resource ID. You can also specify 'all' as the dialog if you wish to replace all 7 of the dialogs at once from the same UI file. For some example UIs look at Contrib\\UIs under your NSIS directory.
70
71 \b \e{IDD_LICENSE} must contain \e{IDC_EDIT1} (RICHEDIT control).
72
73 \b \e{IDD_DIR} must contain \e{IDC_DIR} (edit box), \e{IDC_BROWSE} (button) and \e{IDC_CHECK1} (checkbox).
74
75 \b \e{IDD_SELCOM} must contain \e{IDC_TREE1} (SysTreeView32 control), and \e{IDC_COMBO1} (combo box).
76
77 \b \e{IDD_INST} must contain \e{IDC_BACK} (button), \e{IDC_CHILDRECT} (static control the size of all other dialogs), \e{IDC_VERSTR} (static), \e{IDOK} (button), and \e{IDCANCEL} (button). If an image control (static with \e{SS_BITMAP} style) will be found in this dialog it will be used as the default for \R{setbrandingimage}{SetBrandingImage}.
78
79 \b \e{IDD_INSTFILES} must contain \e{IDC_LIST1} (SysListView32 control), \e{IDC_PROGRESS} (msctls_progress32 control), and \e{IDC_SHOWDETAILS} (button).
80
81 \b \e{IDD_UNINST} must contain \e{IDC_EDIT1} (edit box).
82
83 \b \e{IDD_VERIFY} must contain \e{IDC_STR} (static).
84
85 \c ChangeUI all "${NSISDIR}\Contrib\UIs\sdbarker_tiny.exe"
86
87 \S2{acheckbitmap} CheckBitmap
88
89 \c bitmap.bmp
90
91 Specifies the bitmap with the checkbox images used in the component-selection page treeview.
92
93 This bitmap should have a size of 96x16 pixels, no more than 8bpp (256 colors) and contain six 16x16 images for the different states (in order: selection mask, not checked, checked, greyed out, unchecked & read-only, checked & read-only). Use magenta as mask color (this area will be transparent).
94
95 \S2{acompletedtext} CompletedText
96
97 \c text
98
99 Replaces the default text ("Completed") that is printed at the end of the install if parameter is specified. Otherwise, the default is used.
100
101 Accepts variables. If variables are used, they must be initialized before the message is printed.
102
103 \S2{acomponenttext} ComponentText
104
105 \c [text [subtext] [subtext2]]
106
107 Used to change the default text on the component page.
108
109 text: Text above the controls, to the right of the installation icon.
110
111 subtext: Text next to the installation type selection.
112
113 subtext2: Text to the left of the components list and below the installation type.
114
115 The default string will be used if a string is empty ("").
116
117 Accepts variables. If variables are used, they must be initialized before the components page is created.
118
119 \S2{acrccheck} CRCCheck
120
121 \c \\<b\\>on\\</b\\>|off|force
122
123 Specifies whether or not the installer will perform a CRC on itself before allowing an install. Note that if the user uses /NCRC on the command line when executing the installer, and you didn't specify 'force', the CRC will not occur, and the user will be allowed to install a (potentially) corrupted installer.
124
125 \S2{adetailsbuttontext} DetailsButtonText
126
127 \c show_details_text
128
129 Replaces the default details button text of "Show details", if parameter is specified (otherwise the default is used).
130
131 Accepts variables. If variables are used, they must be initialized before the install log (instfiles) page is created.
132
133 \S2{adirtext} DirText
134
135 \c [text] [subtext] [browse_button_text] [browse_dlg_text]
136
137 Used to change the default text on the directory page.
138
139 text: Text above the controls, to the right of the installation icon.
140
141 subtext: Text on the directory selection frame.
142
143 browse_button_text: Text on the Browse button.
144
145 browse_dlg_text: Text on the "Browse For Folder" dialog, appears after clicking on "Browse" button.
146
147 The default string will be used if a string is empty ("").
148
149 Accepts variables. If variables are used, they must be initialized before the directory page is created.
150
151 \S2{adirvar} DirVar
152
153 \c user_var(dir input/output)
154
155 Specifies which variable is to be used to contain the directory selected. This variable should be initialized with a default value. This allows you to easily create two different directory pages that will not require you to move values in and out of $INSTDIR. The default variable is $INSTDIR. This can only be used in \R{pageex}{PageEx} for directory and uninstConfirm pages.
156
157 \c Var ANOTHER_DIR
158 \c PageEx directory
159 \c DirVar $ANOTHER_DIR
160 \c PageExEnd
161 \c
162 \c Section
163 \c SetOutPath $INSTDIR
164 \c File "a file.dat"
165 \c SetOutPath $ANOTHER_DIR
166 \c File "another file.dat"
167 \c SectionEnd
168
169 \S2{adirverify} DirVerify
170
171 \c \\<b\\>auto\\</b\\>|leave
172
173 If `\R{adirverify}{DirVerify} leave' is used, the Next button will not be disabled if the installation directory is not valid or there is not enough space. A flag that you can read in the leave function using \R{getinstdirerror}{GetInstDirError} will be set instead.
174
175 \c PageEx directory
176 \c DirVerify leave
177 \c PageCallbacks "" "" dirLeave
178 \c PageExEnd
179
180 \S2{a} FileErrorText
181
182 \c file_error_text [noignore_file_error_text]
183
184 Replaces the default text that comes up when a file cannot be written to. This string can contain a reference to $0, which is the filename ($0 is temporarily changed to this value). Example: "Can not write to file $\\r$\\n$0$\\r$\\ngood luck.".
185
186 Accepts variables. If variables are used, they must be initialized before \R{file}{File} is used.
187
188 \S2{aicon} Icon
189
190 \c [path\]icon.ico
191
192 Sets the icon of the installer. Every image in the icon file will be included in the installer. Use \R{auninstallicon}{UninstallIcon} to set the uninstaller icon.
193
194 \S2{ainstallbuttontext} InstallButtonText
195
196 \c install_button_text
197
198 If parameter is specified, overrides the default install button text (of "Install") with the specified text.
199
200 Accepts variables. If variables are used, they must be initialized before the install button shows.
201
202 \S2{ainstallcolors} InstallColors
203
204 \c /windows | (foreground_color background_color)
205
206 Sets the colors to use for the install info screen (the default is 00FF00 000000. Use the form RRGGBB (in hexadecimal, as in HTML, only minus the leading '#', since # can be used for comments). Note that if "/windows" is specified as the only parameter, the default windows colors will be used.
207
208 \S2{ainstalldir} InstallDir
209
210 \c definstdir
211
212 Sets the default installation directory. See the \R{variables}{variables section} for variables that can be used to make this string (especially $PROGRAMFILES). Note that the part of this string following the last \\ will be used if the user selects 'browse', and may be appended back on to the string at install time (to disable this, end the directory with a \\ (which will require the entire parameter to be enclosed with quotes). If this doesn't make any sense, play around with the browse button a bit.
213
214 \S2{ainstalldirregkey} InstallDirRegKey
215
216 \c root_key subkey key_name
217
218 This attribute tells the installer to check a string in the registry and use it as the install dir if that string is valid. If this attribute is present, it will override the \R{ainstalldir}{InstallDir} attribute if the registry key is valid, otherwise it will fall back to the \R{ainstalldir}{InstallDir} value. When querying the registry, this command will automatically remove any quotes. If the string ends in ".exe", it will automatically remove the filename component of the string (i.e. if the string is "C:\\Program Files\\Foo\\app.exe", it will know to use "C:\\Program Files\\Foo"). For more advanced install directory configuration, set $INSTDIR in .onInit.
219
220 Language strings and variables cannot be used with \R{ainstalldirregkey}{InstallDirRegKey}.
221
222 \c InstallDirRegKey HKLM Software\NSIS ""
223 \c InstallDirRegKey HKLM Software\ACME\Thingy InstallLocation
224
225 \S2{ainstprogressflags} InstProgressFlags
226
227 \c [flag [...]]
228
229 Valid values for flag are "smooth" (smooth the progress bar) or "colored" (color the progress bar with the colors set by \R{ainstallcolors}{InstallColors}. Examples: "InstProgressFlags" (default old-school windows look), "InstProgressFlags smooth" (new smooth look), "InstProgressFlags smooth colored" (colored smooth look whee). Note: neither "smooth" or "colored" work with \R{axpstyle}{XPStyle} on when the installer runs on Windows XP with a modern theme.
230
231 \S2{ainsttype} InstType
232
233 \c install_type_name [index_output] | /[UNINST]NOCUSTOM | /CUSTOMSTRING=str | /[UNINST]COMPONENTSONLYONCUSTOM
234
235 Adds an install type to the install type list, or disables the custom install type. There can be as many as \#{NSIS_MAX_INST_TYPES}32 types, each one specifying the name of the install type. If the name is prefixed with 'un.' it is an uninstaller install type. The name can contain variables which will be processed at runtime before the components page shows. Another way of changing the \R{ainsttype}{InstType} name during runtime is the \R{sinsttypesettext}{InstTypeSetText} command. The difference is that with \R{sinsttypesettext}{InstTypeSetText} you are saving your precious user variables. The first type is the default (generally 'Typical' or 'Full'). If the /NOCUSTOM switch is specified, then the "custom" install type is disabled, and the user has to choose one of the pre-defined install types. Alternatively, if the /CUSTOMSTRING switch is specified, the parameter will override the "Custom" install type text. Alternatively, if the /COMPONENTSONLYONCUSTOM flag is specified, the component list will only be shown if the "Custom" install type is selected.
236
237 Accepts variables for type names. If variables are used, they must be initialized before the components page is created.
238
239 \R{ssectioninsttype}{SectionInstType} is used to bind \cw{Section}s to install types.
240
241 \S2{alicensebkcolor} LicenseBkColor
242
243 \c color | \\<b\\>/gray\\</b\\> | /windows
244
245 Sets the background color of the license data. Color is specified using the form RRGGBB (in hexadecimal, as in HTML, only minus the leading '#', since # can be used for comments). Default is '/gray'. You can also use the Windows OS defined color by using '/windows'.
246
247 \S2{alicensedata} LicenseData
248
249 \c licdata.(txt|rtf)
250
251 Specifies a text file or a RTF file to use for the license that the user can read. Omit this to not have a license displayed. Note that the file must be in DOS text format (\\r\\n). To define a multilingual license data use \R{licenselangstring}{LicenseLangString}.
252
253 If you are using a RTF file it is recommended that you edit it with WordPad and not MS Word. Using WordPad will result in a much smaller file.
254
255 Use \R{licenselangstring}{LicenseLangString} to show a different license for every language.
256
257 \S2{alicenseforceselection} LicenseForceSelection
258
259 \c (checkbox [accept_text] | radiobuttons [accept_text] [decline_text] | \\<b\\>off\\</b\\>)
260
261 Specifies if the displayed license must be explicitly accepted or not. This can be done either by a checkbox or by radiobuttons. By default the "next button" is disabled and will only be enabled if the checkbox is enabled or the correct radio button is selected. If off is specified the "next button" is enabled by default.
262
263 \c LicenseForceSelection checkbox
264 \c LicenseForceSelection checkbox "i accept"
265 \c LicenseForceSelection radiobuttons
266 \c LicenseForceSelection radiobuttons "i accept"
267 \c LicenseForceSelection radiobuttons "i accept" "i decline"
268 \c LicenseForceSelection radiobuttons "" "i decline"
269 \c LicenseForceSelection off
270
271 \S2{alicensetext} LicenseText
272
273 \c [text [button_text]]
274
275 Used to change the default text on the license page.
276
277 text: Text above the controls, to the right of the installation icon.
278
279 button_text: Text on the "I Agree" button.
280
281 The default string will be used if a string is empty ("").
282
283 Accepts variables. If variables are used, they must be initialized before the license page is created.
284
285
286 \S2{amanifestdpiaware} ManifestDPIAware
287
288 \c \\<b\\>notset\\</b\\>|true|false
289
290 \# Note: true==System. PerMonitor is not documented because it is not fully supported yet, we need to handle WM_DPICHANGED.
291 \# Example: ManifestDPIAware System ; System DPI on Vista/7/8/8.1/10(<10.1607(AU))
292 \# Example: ManifestDPIAwareness "PerMonitorV2,System" ; PMv2 on 10.1703(CU)+, System on 10.1607(AU)
293
294 Declare that the installer is DPI-aware. A DPI-aware application is not scaled by the DWM (DPI virtualization) so the text is never blurry. NSIS does not scale the bitmap used by the tree control on the component page and some plugins might have compatibility issues so make sure that you test your installer at different DPI settings if you select \e{true}.
295
296 See \W{http://msdn.microsoft.com/en-us/library/dd464660}{MSDN} for more information about DPI-aware applications.
297
298 \# \S2{amanifestdpiawareness} ManifestDPIAwareness
299 \#
300 \# \c \\<b\\>notset\\</b\\>|comma_separated_string
301
302 \S2{amanifestlongpathaware} ManifestLongPathAware
303
304 \c \\<b\\>notset\\</b\\>|true|false
305
306 Declare that the installer can handle paths longer than MAX_PATH. Only supported on Windows 10 Anniversary Update and later.
307
308 \NsisWarnBlockContainerBegin
309 \NsisBlockHeaderNote
310 Instructions like CopyFiles and CreateShortcut do not support long paths!
311 \NsisWarnBlockContainerEnd
312
313 \NsisWarnBlockContainerBegin
314 \NsisBlockHeaderNote Has no effect if the "Enable Win32 long paths" policy is not enabled.
315 \NsisWarnBlockContainerEnd
316
317 \S2{amanifestsupportedos} ManifestSupportedOS
318
319 \c none|all|WinVista|\\<b\\>Win7|Win8|Win8.1|Win10\\</b\\>|{GUID} [...]
320
321 Declare that the installer is compatible with the specified Windows version(s). This adds a SupportedOS entry in the compatibility section of the application manifest. The default is Win7+8+8.1+10. \e{none} is the default if \R{arequestexecutionlevel}{RequestExecutionLevel} is set to \e{none} for compatibility reasons.
322
323 Windows 8.1 and later will fake its version number if you don't declare support for that particular version. You can read more about the other changes in behavior on \W{http://msdn.microsoft.com/en-us/library/windows/desktop/hh848036}{MSDN}.
324
325 \# \S2{amanifestmaxversiontested} ManifestMaxVersionTested
326 \#
327 \# \c maj.min.bld.rev
328
329 \S2{amiscbuttontext} MiscButtonText
330
331 \c [back_button_text [next_button_text] [cancel_button_text] [close_button_text]]
332
333 Replaces the default text strings for the four buttons (< Back, Next >, Cancel and Close). If parameters are omitted, the defaults are used.
334
335 Accepts variables. If variables are used, they must be initialized in \R{oninit}{.onInit}.
336
337 \S2{aname} Name
338
339 \c name [name_doubled_ampersands]
340
341 Sets the name of the installer. The name is usually simply the product name such as 'MyApp' or 'CrapSoft MyApp'. If you have one or more ampersands (&) in the name, set the second parameter to the same name, only with doubled ampersands. For example, if your product's name is "Foo & Bar", use:
342
343 \c Name "Foo & Bar" "Foo && Bar"
344
345 If you have ampersands in the name and use a \R{langstring}{LangString} for the name, you will have to create another one with doubled ampersands to use as the second parameter.
346
347 Accepts variables. If variables are used, they must be initialized in \R{oninit}{.onInit}.
348
349 \S2{aoutfile} OutFile
350
351 \c [path\]install.exe
352
353 Specifies the output file that the MakeNSIS should write the installer to. This is just the file that MakeNSIS writes, it doesn't affect the contents of the installer.
354
355 \S2{apeaddresource} PEAddResource
356
357 \c [/OVERWRITE|/REPLACE] file restype resname [reslang]
358
359 Adds \cw{file} as a resource to the installer and uninstaller. \cw{restype} specifies the resource type and can be any string or # followed by a standard type or number. \cw{resname} must be # followed by a number. \cw{reslang} is optional and specifies the language id of the resource. Replacing standard NSIS resources is not supported, you should use \R{aicon}{Icon} and \R{achangeui}{ChangeUI} instead.
360
361 \c PEAddResource "myimage.bmp" "#2" "#1337"
362 \c PEAddResource "mybonus.ico" "#Icon" "#200"
363 \c PEAddResource "myimage.png" "PNG" "#1234"
364 \c PEAddResource "res://$%WINDIR%/Explorer.exe/#Icon/#101" "#Icon" "#1337"
365
366 \S2{aperemoveresource} PERemoveResource
367
368 \c [/NOERRORS] restype resname reslang|ALL
369
370 Removes a resource added with \cw{PEAddResource}.
371
372 \c PERemoveResource "#Icon" "#200" ALL
373
374 \S2{arequestexecutionlevel} RequestExecutionLevel
375
376 \c none|user|highest|\\<b\\>admin\\</b\\>
377
378 Specifies the requested execution level for Windows Vista and higher. The value is embedded in the installer and uninstaller's XML manifest and tells Windows which privilege level the installer requires. \e{user} requests the user's normal level with no administrative privileges. \e{highest} will request the highest execution level available for the current user and will cause Windows to prompt the user to verify privilege escalation if they are a member of the administrators group. The prompt might request for the user's password. \e{admin}, which is also the default, requests administrator level and will cause Windows to prompt the user as well. Specifying \e{none} will keep the manifest empty and let Windows decide which execution level is required. Windows automatically identifies NSIS installers and decides administrator privileges are required. Because of this, \e{none} and \e{admin} have virtually the same effect.
379
380 It's recommended that every application is marked with a required execution level. Unmarked installers are subject to compatibility mode. Workarounds of this mode include automatically moving any shortcuts created in the user's start menu to all users' start menu. Installers that don't install anything into system folders nor write to the local machine registry (HKLM) should specify \e{user} execution level.
381
382 More information about this topic can be found on \W{http://msdn.microsoft.com/en-us/library/bb756929}{MSDN}.
383
384 \S2{asetfont} SetFont
385
386 \c [/LANG=lang_id] font_face_name font_size
387
388 Sets the installer font. Please remember that the font you choose must be present on the user's machine as well. Don't use rare fonts that only you have.
389
390 Use the /LANG switch if you wish to set a different font for each language. For example:
391
392 \c SetFont /LANG=${LANG_ENGLISH} "English Font" 9
393 \c SetFont /LANG=${LANG_FRENCH} "French Font" 10
394
395 There are two \R{langstring}{LangString}s named ^Font and ^FontSize which contain the font and font size for every language.
396
397 \S2{ashowinstdetails} ShowInstDetails
398
399 \c \\<b\\>hide\\</b\\>|show|nevershow
400
401 Sets whether or not the details of the install are shown. Can be 'hide' to hide the details by default, allowing the user to view them, or 'show' to show them by default, or 'nevershow', to prevent the user from ever seeing them. Note that sections can override this using \R{setdetailsview}{SetDetailsView}.
402
403 \S2{ashowuninstdetails} ShowUninstDetails
404
405 \c \\<b\\>hide\\</b\\>|show|nevershow
406
407 Sets whether or not the details of the uninstall are shown. Can be 'hide' to hide the details by default, allowing the user to view them, or 'show' to show them by default, or 'nevershow', to prevent the user from ever seeing them. Note that sections can override this using \R{setdetailsview}{SetDetailsView}.
408
409 \S2{asilentinstall} SilentInstall
410
411 \c \\<b\\>normal\\</b\\>|silent|silentlog
412
413 Specifies whether or not the installer should be silent. If it is 'silent' or 'silentlog', all sections that have the SF_SELECTED flag are installed quietly (you can set this flag using \R{sectionsetflags}{SectionSetFlags}), with no screen output from the installer itself (the script can still display whatever it wants, use \R{messagebox}{MessageBox}'s /SD to specify a default for silent installers). Note that if this is set to 'normal' and the user runs the installer with /S (case sensitive) on the command line, it will behave as if \R{asilentinstall}{SilentInstall} 'silent' was used. Note: see also \R{logset}{LogSet}.
414
415 See \k{silent} for more information.
416
417 \S2{asilentuninstall} SilentUnInstall
418
419 \c \\<b\\>normal\\</b\\>|silent
420
421 Specifies whether or not the uninstaller should be silent. If it is 'silent' the uninstall sections will run quietly, with no screen output from the uninstaller itself (the script can still display whatever it wants, use \R{messagebox}{MessageBox}'s /SD to specify a default for silent uninstallers). Note that if this is set to 'normal' and the user runs the uninstaller with /S on the command line, it will behave as if \R{asilentuninstall}{SilentUnInstall} 'silent' was used.
422
423 See \k{silent} for more information.
424
425 \S2{aspacetexts} SpaceTexts
426
427 \c [req_text [avail_text]]
428
429 If parameters are specified, overrides the space required and space available text ("Space required: " and "Space available: " by default). If 'none' is specified as the required text no space texts will be shown.
430
431 Accepts variables. If variables are used, they must be initialized before the components page is created.
432
433 \S2{asubcaption} SubCaption
434
435 \c [page_number subcaption]
436
437 Overrides the subcaptions for each of the installer pages (0=": License Agreement",1=": Installation Options",2=": Installation Directory", 3=": Installing Files", 4=": Completed"). If you specify an empty string (""), the default will be used (you can however specify " " to achieve a blank string).
438
439 You can also set a subcaption (or override the default) using \R{acaption}{Caption} inside a \R{pageex}{PageEx} block.
440
441 Accepts variables. If variables are used, they must be initialized before the relevant page is created.
442
443 \S2{auninstallbuttontext} UninstallButtonText
444
445 \c text
446
447 Changes the text of the button that by default says "Uninstall" in the uninstaller. If no parameter is specified, the default text is used.
448
449 Accepts variables. If variables are used, they must be initialized before the uninstall button shows.
450
451 \S2{auninstallcaption} UninstallCaption
452
453 \c caption
454
455 Sets what the titlebars of the uninstaller will display. By default it is '$(^Name) Uninstall', where Name is specified with the Name command. You can, however, override it with 'MyApp uninstaller' or whatever. If you specify an empty string (""), the default will be used (you can specify " " to simulate a empty string).
456
457 Accepts variables. If variables are used, they must be initialized in \R{unonInit}{un.onInit}.
458
459 \S2{auninstallicon} UninstallIcon
460
461 \c [path\]icon.ico
462
463 Sets the icon of the uninstaller.
464
465 \S2{auninstallsubcaption} UninstallSubCaption
466
467 \c page_number subcaption
468
469 Sets the default subcaptions for the uninstaller pages (0=": Confirmation",1=": Uninstalling Files",2=": Completed"). If you specify an empty string (""), the default will be used (you can specify " " to simulate a empty string).
470
471 You can also set a subcaption (or override the default) using \R{acaption}{Caption} inside a \R{pageex}{PageEx} block.
472
473 Accepts variables. If variables are used, they must be initialized before the relevant page is created.
474
475 \S2{auninstalltext} UninstallText
476
477 \c text [subtext]
478
479 Specifies the texts on the uninstaller confirm page.
480
481 text: Text above the controls
482
483 subtext: Text next to the uninstall location
484
485 Accepts variables. If variables are used, they must be initialized before the uninstaller confirm page is created.
486
487 \S2{awindowicon} WindowIcon
488
489 \c \\<b\\>on\\</b\\>|off
490
491 Sets whether or not the installer's icon is displayed on certain pages.
492
493 \S2{axpstyle} XPStyle
494
495 \c on|\\<b\\>off\\</b\\>
496
497 Sets whether or not a XP visual style manifest will be added to the installer. This manifest makes the installers controls use the new visual styles when running on Windows XP and later. This affects the uninstaller too.