typos (thanks Jamyn!)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4264 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
4d6282546d
commit
f8062527fa
30 changed files with 67 additions and 67 deletions
|
@ -16,7 +16,7 @@ Function .onInit
|
|||
advsplash::show 1000 600 400 -1 $PLUGINSDIR\splash
|
||||
|
||||
Pop $0 ; $0 has '1' if the user closed the splash screen early,
|
||||
; '0' if everything closed normal, and '-1' if some error occured.
|
||||
; '0' if everything closed normally, and '-1' if some error occurred.
|
||||
|
||||
MessageBox MB_OK "Transparency"
|
||||
File /oname=$PLUGINSDIR\splash.bmp "${NSISDIR}\Contrib\Graphics\Wizard\orange-uninstall.bmp"
|
||||
|
|
|
@ -19,7 +19,7 @@ Function .onInit
|
|||
advsplash::show 1000 600 400 -1 $TEMP\spltmp
|
||||
|
||||
Pop $0 ; $0 has '1' if the user closed the splash screen early,
|
||||
; '0' if everything closed normal, and '-1' if some error occured.
|
||||
; '0' if everything closed normally, and '-1' if some error occurred.
|
||||
|
||||
Delete $TEMP\spltmp.bmp
|
||||
; Delete $TEMP\spltmp.wav
|
||||
|
|
|
@ -109,7 +109,7 @@ version 1.2 (10/28/2001)
|
|||
* Still 44k
|
||||
* Added the "FileRequest" and "DirRequest" control types (thanks Schultz)
|
||||
* Added "MinLen", "MaxLen", and "ValidateText" properties to fields
|
||||
* Added "Flags" as a way to specifiy additional parameters for controls
|
||||
* Added "Flags" as a way to specify additional parameters for controls
|
||||
* Few more changes to the documentation
|
||||
* Cleaned the code in a few places...still trying to make it smaller
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
** so you can tell how much has been send/received. You want to do this a lot, while:
|
||||
** 4. check get_state() to check the state of the connection. The states are:
|
||||
** JNL_Connection::STATE_ERROR
|
||||
** - an error has occured on the connection. the connection has closed,
|
||||
** - an error has occurred on the connection. the connection has closed,
|
||||
** and you can no longer write to the socket (there still might be
|
||||
** data in the receive buffer - use recv_bytes_available()).
|
||||
** JNL_Connection::STATE_NOCONNECTION
|
||||
|
|
|
@ -83,8 +83,8 @@ give you the reference to argument which should be a variable (NSIS, user, array
|
|||
item, stack), and * will convert it back to original variable. For example
|
||||
(a=&b; *a=10) will set b to 10. Expression (*&a) is equal to simple (a).
|
||||
|
||||
Script is set of expressions (mathematical in general) delimeted with ';'.
|
||||
Processing is mathematicaly right (2+2*2 will give 6), operations are performed
|
||||
Script is set of expressions (mathematical in general) delimited with ';'.
|
||||
Processing is mathematically right (2+2*2 will give 6), operations are performed
|
||||
in a C like order (precedence).
|
||||
|
||||
Flow control:
|
||||
|
@ -188,7 +188,7 @@ a constant expression to it. It could be either array item (array[1]), NSIS
|
|||
register R0, any of the user variables (beside the variable with the same name:),
|
||||
but never the constant.
|
||||
|
||||
Another may-be-useful posibility is to redeclare the function (the usual
|
||||
Another may-be-useful possibility is to redeclare the function (the usual
|
||||
declaration at the time when function already defined will simply call that
|
||||
function). For such task you could use "#name", like "func()(1); #func()(2);".
|
||||
But beware, function declaration occurs at time of parsing, so it's not possible
|
||||
|
|
|
@ -11,7 +11,7 @@ NSIS Modern User Interface - VERSION HISTORY
|
|||
* Fixed state of Finish page Cancel button when both an installer and uninstaller page is included
|
||||
|
||||
1.71 - October 14, 2004
|
||||
* The selected language is only stored in the registry when installation was succesful
|
||||
* The selected language is only stored in the registry when installation was successful
|
||||
|
||||
1.70 - February 6, 2004
|
||||
* Improved documentation
|
||||
|
|
|
@ -745,7 +745,7 @@ installation has been completed (won't be displayed when using a
|
|||
Finish page without MUI_(UN)FINISHPAGE_NOAUTOCLOSE).</p>
|
||||
<p><strong>MUI_INSTFILESPAGE_FINISHHEADER_SUBTEXT</strong>
|
||||
<span class="parameter">text</span><br />
|
||||
Subext to display on the header of the installation page when the
|
||||
Subtext to display on the header of the installation page when the
|
||||
installation has been completed (won't be displayed when using a
|
||||
Finish page without MUI_(UN)FINISHPAGE_NOAUTOCLOSE).</p>
|
||||
<p><strong>MUI_INSTFILESPAGE_ABORTHEADER_TEXT</strong> <span class=
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
// Created: 04/01/98
|
||||
// RCS-ID: $Id: app.cpp,v 1.173.2.2 2002/11/03 21:11:11 VZ Exp $
|
||||
// RCS-ID: $Id: app.cpp,v 1.1 2003/05/26 17:53:58 joostverburg Exp $
|
||||
// Copyright: (c) Julian Smart and Markus Holzem
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -1001,7 +1001,7 @@ bool wxApp::ProcessMessage(WXMSG *wxmsg)
|
|||
HWND hwnd = msg->hwnd;
|
||||
wxWindow *wndThis = wxGetWindowFromHWND((WXHWND)hwnd);
|
||||
|
||||
// this may happen if the event occured in a standard modeless dialog (the
|
||||
// this may happen if the event occurred in a standard modeless dialog (the
|
||||
// only example of which I know of is the find/replace dialog) - then call
|
||||
// IsDialogMessage() to make TAB navigation in it work
|
||||
if ( !wndThis )
|
||||
|
|
|
@ -5,7 +5,7 @@ Copyright (C) 2001-2002 Yaroslav Faybishenko & Justin Frankel
|
|||
|
||||
This plugin can be used from NSIS to download files via http.
|
||||
|
||||
To connect to the internet, use the Dialer pluin.
|
||||
To connect to the internet, use the Dialer plugin.
|
||||
|
||||
USAGE
|
||||
-----
|
||||
|
@ -22,7 +22,7 @@ The return value is pushed to the stack:
|
|||
"success" if success
|
||||
otherwise, an error string describing the error
|
||||
|
||||
If you don't want the progess window to appear use NSISdl::download_quiet.
|
||||
If you don't want the progress window to appear, use NSISdl::download_quiet.
|
||||
|
||||
Example of usage:
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
** so you can tell how much has been send/received. You want to do this a lot, while:
|
||||
** 4. check get_state() to check the state of the connection. The states are:
|
||||
** JNL_Connection::STATE_ERROR
|
||||
** - an error has occured on the connection. the connection has closed,
|
||||
** - an error has occurred on the connection. the connection has closed,
|
||||
** and you can no longer write to the socket (there still might be
|
||||
** data in the receive buffer - use recv_bytes_available()).
|
||||
** JNL_Connection::STATE_NOCONNECTION
|
||||
|
|
|
@ -14,7 +14,7 @@ Function .onInit
|
|||
splash::show 1000 $PLUGINSDIR\splash
|
||||
|
||||
Pop $0 ; $0 has '1' if the user closed the splash screen early,
|
||||
; '0' if everything closed normal, and '-1' if some error occured.
|
||||
; '0' if everything closed normally, and '-1' if some error occurred.
|
||||
FunctionEnd
|
||||
|
||||
Section
|
||||
|
|
|
@ -20,7 +20,7 @@ Function .onInit
|
|||
splash::show 1000 $TEMP\spltmp
|
||||
|
||||
Pop $0 ; $0 has '1' if the user closed the splash screen early,
|
||||
; '0' if everything closed normal, and '-1' if some error occured.
|
||||
; '0' if everything closed normally, and '-1' if some error occurred.
|
||||
|
||||
Delete $TEMP\spltmp.bmp
|
||||
; Delete $TEMP\spltmp.wav
|
||||
|
|
|
@ -3,7 +3,7 @@ release 2.
|
|||
2. Int64 full support (conversion/operations/comparison)
|
||||
3. Structures support
|
||||
4. Callbacks support, including multilevel callbacks
|
||||
5. Some useful rountines (Alloc, Free, Copy)
|
||||
5. Some useful routines (Alloc, Free, Copy)
|
||||
6. CDecl and StdCall calling conventions
|
||||
|
||||
release 3, 22 march 2003.
|
||||
|
@ -30,12 +30,12 @@ release 4, 3 september 2003.
|
|||
5. Automatic A-letter at proc name discovery.
|
||||
6. COM optimized: new proc specification "x->y", where x is interface ptr, and
|
||||
y is vtable member index. For such procs Interface pointer passed as first arg
|
||||
automaticaly.
|
||||
automatically.
|
||||
|
||||
release 5, 11 september 2003.
|
||||
1. u flag - unload dll after procedure call.
|
||||
2. some changes to asm to turn on Whole Program Optimization.
|
||||
3. Dll shrinked for 1 kb.
|
||||
3. Dll shrunk by 1 kb.
|
||||
|
||||
bug-fix-release, 4.06.2004
|
||||
1. System::Copy /SIZE fixed (Kichik).
|
||||
|
|
|
@ -102,7 +102,7 @@ a:hover
|
|||
<h2>Introduction</h2>
|
||||
<div>
|
||||
<p>VPatch allows to create a patch file to update previous versions
|
||||
of your software. The GenPat utitily generates the patch file. The
|
||||
of your software. The GenPat utility generates the patch file. The
|
||||
plug-in can use the patch to update a file. Using a patch, you can
|
||||
reduce the download size of your updates, because only the differences
|
||||
between the files are included in the patch file.</p>
|
||||
|
@ -135,7 +135,7 @@ vpatch::vpatchfile "pathfile.pat" "source.file" "new.file"
|
|||
<ul>
|
||||
<li>OK</li>
|
||||
<li>OK, new version already installed</li>
|
||||
<li>An error occured while patching</li>
|
||||
<li>An error occurred while patching</li>
|
||||
<li>Patch data is invalid or corrupt</li>
|
||||
<li>No suitable patches were found</li>
|
||||
</ul>
|
||||
|
@ -144,7 +144,7 @@ vpatch::vpatchfile "pathfile.pat" "source.file" "new.file"
|
|||
<h3>Multiple patches in one file</h3>
|
||||
<div>
|
||||
<p>GenPat appends a patch to the file you specified. If there is already
|
||||
a patch for the same orginal file in the patch file, the patch will
|
||||
a patch for the same original file in the patch file, the patch will
|
||||
be replaced. For example, if you want to be able to upgrade version
|
||||
1 and 2 to version 3, you can put a 1 > 3 and 2 > 3 patch in
|
||||
one file.</p>
|
||||
|
@ -158,7 +158,7 @@ vpatch::vpatchfile "pathfile.pat" "source.file" "new.file"
|
|||
<div>
|
||||
<p>In version 2.1 support was added for exit codes (known as error levels
|
||||
in the DOS period) to GenPat. GenPat will return an exit code based
|
||||
on succes of the patch generation. Here is a list of the possible
|
||||
on success of the patch generation. Here is a list of the possible
|
||||
exit codes:</p>
|
||||
<table width="547" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
|
@ -222,8 +222,8 @@ vpatch::vpatchfile "pathfile.pat" "source.file" "new.file"
|
|||
<h3>Patch Generator (Delphi)</h3>
|
||||
<div>
|
||||
<p>The most interesting part of VPatch, the actual patch generation
|
||||
algoritm, can be found in Source\GenPat\PatchGenerator.pas. The header
|
||||
of that file contains a brief explanation of the algoritm as well.</p>
|
||||
algorithm, can be found in Source\GenPat\PatchGenerator.pas. The header
|
||||
of that file contains a brief explanation of the algorithm as well.</p>
|
||||
</div>
|
||||
<h3>User interface (Delphi)</h3>
|
||||
<div>
|
||||
|
|
|
@ -78,7 +78,7 @@ void __declspec(dllexport) vpatchfile(HWND hwndParent, int string_size,
|
|||
|
||||
if ((result != PATCH_SUCCESS)) {
|
||||
if (result == PATCH_ERROR)
|
||||
pushstring("An error occured while patching");
|
||||
pushstring("An error occurred while patching");
|
||||
else if (result == PATCH_CORRUPT)
|
||||
pushstring("Patch data is invalid or corrupt");
|
||||
else if (result == PATCH_NOMATCH)
|
||||
|
|
|
@ -32,7 +32,7 @@ Sets whether or not the install window automatically closes when completed. This
|
|||
|
||||
\S2{abgfont} BGFont
|
||||
|
||||
\c [font_face [height [wieght] [/ITALIC] [/UNDERLINE] [/STRIKE]]]
|
||||
\c [font_face [height [weight] [/ITALIC] [/UNDERLINE] [/STRIKE]]]
|
||||
|
||||
Specifies the font used to show the text on the background gradient. To set the color use \R{abggradient}{BGGradient}. If no parameters are specified, the default font will be used. The default font is bold and italic Times New Roman.
|
||||
|
||||
|
@ -64,7 +64,7 @@ Accepts variables. If variables are used, they must be initialized on \R{oninit}
|
|||
|
||||
\c dialog ui_file.exe
|
||||
|
||||
Replaces dialog (\e{IDD_LICENSE}, \e{IDD_DIR}, \e{IDD_SELCOM}, \e{IDD_INST}, \e{IDD_INSTFILES}, \e{IDD_UNINST} or \e{IDD_VERIFY}) by a dialog with the same resource ID in ui_file.exe. You can also specify 'all' as the dialog if you wish to load 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.
|
||||
Replaces dialog (\e{IDD_LICENSE}, \e{IDD_DIR}, \e{IDD_SELCOM}, \e{IDD_INST}, \e{IDD_INSTFILES}, \e{IDD_UNINST} or \e{IDD_VERIFY}) by a dialog with the same resource ID in ui_file.exe. 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.
|
||||
|
||||
\b \e{IDD_LICENSE} must contain \e{IDC_EDIT1} (RICHEDIT control).
|
||||
|
||||
|
|
|
@ -137,8 +137,8 @@ Time when the script started compiling according to the current locale.
|
|||
|
||||
Date & time of the last modification to the script file according to the current locale.
|
||||
|
||||
\S0{compenvvarread} Read enviroment variables
|
||||
\S0{compenvvarread} Read environment variables
|
||||
|
||||
\S1{compenvvar} $%envVarName%
|
||||
|
||||
$%envVarName% will be replaced on compile time by the enviroment variable envVarName.
|
||||
$%envVarName% will be replaced on compile time by the environment variable envVarName.
|
||||
|
|
|
@ -13,7 +13,7 @@ Cancels the install, stops execution of script, and displays user_message in the
|
|||
|
||||
\c function_name | :label_name | user_var(input)
|
||||
|
||||
Calls the function named \e{function_name}, the label named \e{label_name}, or a variable that specifies an address. An address is returned by \R{getcurrentaddress}{GetCurrentAddress}, \R{getfunctionaddress}{GetFunctionAddress} or \R{getlabeladdress}{GetLabelAddress}. A call returns when it encouters a \R{return}{Return} instruction. Sections and functions are automatically ended with a \R{return}{Return} instruction. Uninstall functions cannot be called from installer functions and sections, and vice-versa.
|
||||
Calls the function named \e{function_name}, the label named \e{label_name}, or a variable that specifies an address. An address is returned by \R{getcurrentaddress}{GetCurrentAddress}, \R{getfunctionaddress}{GetFunctionAddress} or \R{getlabeladdress}{GetLabelAddress}. A call returns when it encounters a \R{return}{Return} instruction. Sections and functions are automatically ended with a \R{return}{Return} instruction. Uninstall functions cannot be called from installer functions and sections, and vice-versa.
|
||||
|
||||
\c Function func
|
||||
\c Call :label
|
||||
|
|
|
@ -898,7 +898,7 @@ Call functions:
|
|||
|
||||
\S1{} RefreshShellIcons
|
||||
|
||||
\b After changing file associations, you can call this function to refresh the shell immediatly.
|
||||
\b After changing file associations, you can call this function to refresh the shell immediately.
|
||||
|
||||
\\<b\\>Syntax:\\</b\\>
|
||||
|
||||
|
@ -944,7 +944,7 @@ Call functions:
|
|||
|
||||
\S1{} LineFind
|
||||
|
||||
\b Find specified lines in text file and edit or view this lines in callback function.
|
||||
\b Find specified lines in text file, and edit or view these lines in callback function.
|
||||
|
||||
\\<b\\>Syntax:\\</b\\>
|
||||
|
||||
|
@ -1938,7 +1938,7 @@ Call functions:
|
|||
|
||||
\S1{} WordFind3X
|
||||
|
||||
\b Find word, that contain string, between two delimiters.
|
||||
\b Find a word that contains a string, between two delimiters.
|
||||
|
||||
\\<b\\>Syntax:\\</b\\>
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ After you have inserted the language file $\{LANG_langfile\} will be defined as
|
|||
|
||||
\c name language_id string
|
||||
|
||||
Defines a multilingual string. This means the its value will be different (or not, it's up to you) for every language. It allows you to easily make your installer multilingual without the need to add massive switches to the script.
|
||||
Defines a multilingual string. This means its value may be different (or not, it's up to you) for every language. It allows you to easily make your installer multilingual without the need to add massive switches to the script.
|
||||
|
||||
Each language string has a name that identifies it and a value for each language used by the installer. They can be used in any runtime string in the script. To use a language string all you need to add to the string is $(LangString_name_here) where you want the LangString to be inserted.
|
||||
|
||||
|
@ -20,9 +20,9 @@ Each language string has a name that identifies it and a value for each language
|
|||
|
||||
\b Unlike defines that use curly braces - \{\}, language strings use parenthesis - ().
|
||||
|
||||
\b If you change the langauge in the .onInit function, note that language strings in .onInit will still use the detected language based on the user's default Windows language, because the language is initialized after .onInit.
|
||||
\b If you change the language in the .onInit function, note that language strings in .onInit will still use the detected language based on the user's default Windows language, because the language is initialized after .onInit.
|
||||
|
||||
\b Always set langauge strings for every language in your script.
|
||||
\b Always set language strings for every language in your script.
|
||||
|
||||
\b If you set the language ID to 0 the last used language by LangString or \R{loadlanguagefile}{LoadLanguageFile} will be used.
|
||||
|
||||
|
@ -50,15 +50,15 @@ Does the same as \R{langstring}{LangString} only it loads the string from a text
|
|||
|
||||
As of version 2 NSIS fully supports multiple languages. The interface of one installer can support multiple languages.
|
||||
|
||||
Use \R{loadlanguagefile}{LoadLanguageFile} for every langauge to load the default interface texts and language properties.
|
||||
Use \R{loadlanguagefile}{LoadLanguageFile} for every language to load the default interface texts and language properties.
|
||||
|
||||
The default interface texts can easily be changed using instructions like \R{acomponenttext}{ComponentText} etc.
|
||||
|
||||
You can also use the contents of the standard language strings in your own strings (for example, $(^Name) contains the installer's name set using the \R{aname}{Name} instruction). The names of all standard langauges strings are listed as comments just above the strings in the language files. The language files are located in \L{../Contrib/Language files}{Contrib\\Language Files}.
|
||||
You can also use the contents of the standard language strings in your own strings (for example, $(^Name) contains the installer's name set using the \R{aname}{Name} instruction). The names of all standard language strings are listed as comments just above the strings in the language files. The language files are located in \L{../Contrib/Language files}{Contrib\\Language Files}.
|
||||
|
||||
To create your own langauge strings, use \R{langstring}{LangString}.
|
||||
To create your own language strings, use \R{langstring}{LangString}.
|
||||
|
||||
For an example of an installer with multiple langauges, see \L{../Examples/languages.nsi}{languages.nsi}.
|
||||
For an example of an installer with multiple languages, see \L{../Examples/languages.nsi}{languages.nsi}.
|
||||
|
||||
\S1{langselection} Language Selection
|
||||
|
||||
|
@ -66,13 +66,13 @@ When the installer starts up it goes through these steps to select the interface
|
|||
|
||||
\n Get user's default Windows language
|
||||
|
||||
\n Find a perfect match for the langauge
|
||||
\n Find a perfect match for the language
|
||||
|
||||
\n If there is no perfect match, find a primary language match
|
||||
|
||||
\n If there is no match, use the first language defined in the script (make sure your first language is a common one like English)
|
||||
|
||||
\n If the langauge variable \R{varconstant}{$LANGUAGE} has changed during .onInit, NSIS goes through steps 2 to 4 again.
|
||||
\n If the language variable \R{varconstant}{$LANGUAGE} has changed during .onInit, NSIS goes through steps 2 to 4 again.
|
||||
|
||||
\S1{langdll} LangDLL Plug-in
|
||||
|
||||
|
@ -82,4 +82,4 @@ For an example of usage see \L{../Examples/languages.nsi}{languages.nsi}.
|
|||
|
||||
\S1{rtl} RTL Languages
|
||||
|
||||
RTL languages are languages that are written from the right to the left (like Arabic and Hebrew). NSIS fully supports RTL languages. In the language file there is a place to specify if the language is RTL or not. To find out on runtime if the the current langauge is RTL or not check the value of the $(^RTL) language string. It will be 1 if the language is RTL and 0 otherwise. This can be useful when using plug-ins that create dialogs, they usually have RTL settings too.
|
||||
RTL languages are languages that are written from right to left (e.g. Arabic and Hebrew). NSIS fully supports RTL languages. In the language file there is a place to specify if the language is RTL or not. To find out at runtime if the current language is RTL or not, check the value of the $(^RTL) language string. It will be 1 if the language is RTL and 0 otherwise. This can be useful when using plug-ins that create dialogs, they usually have RTL settings too.
|
||||
|
|
|
@ -65,7 +65,7 @@ To set the page caption use \R{acaption}{Caption}.
|
|||
|
||||
\S{pagecallbacks_explain} Callbacks
|
||||
|
||||
Each built-in page has three callback functions. The pre-function, the show-creation function and the leave-function. The pre-function is called right before the page is created, the show-function is called right after it is created and before it is shown and the leave-function is called right after the user has pressed the next button and before the page is left.
|
||||
Each built-in page has three callback functions: the pre-function, the show-creation function and the leave-function. The pre-function is called right before the page is created, the show-function is called right after it is created and before it is shown and the leave-function is called right after the user has pressed the next button and before the page is left.
|
||||
|
||||
\b The pre-function allows you to skip the page using \R{abort}{Abort}.
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ Each NSIS installer contains one or more sections. Each of these sections are cr
|
|||
|
||||
\b Sections are executed in order by the resulting installer, and if ComponentText is set, the user will have the option of disabling/enabling each visible section.
|
||||
|
||||
\b If a section's name is 'Uninstall' or is prefixed with 'un.', then it is a an uninstaller section.
|
||||
\b If a section's name is 'Uninstall' or is prefixed with 'un.', it's an uninstaller section.
|
||||
|
||||
\S1{ssectioncommands} Section Commands
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
\S0{silent} Silent Installers/Uninstallers
|
||||
|
||||
Silent installers are installers which require no user intervention and have no user interface. The user doesn't see any dialog and isn't ask any questions. This is useful for network administrators who wish to install or uninstall something without user intervention so they can preform the operation quickly over multiple number of computers. It is also useful for other developers who wish to embed another installer in their own and collect all of the required information on their installer instead of showing two installers.
|
||||
Silent installers are installers which require no user intervention and have no user interface. The user doesn't see any dialog and isn't asked any questions. This is useful for network administrators who wish to install or uninstall something without user intervention so they can perform the operation quickly over any number of computers. It is also useful for other developers who wish to embed another installer in their own and collect all of the required information on their installer instead of showing two installers.
|
||||
|
||||
NSIS installers and uninstallers can be both silent and not silent. When an installer or an uninstaller is silent, not all callback functions are called. \R{onguiinit}{.onGUIInit}, \R{onguiend}{.onGUIEnd}, their uninstaller equivalents and any callback related to a specific page or page type will not be called.
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ Declaring and using a user variable:
|
|||
|
||||
In addition there is a Stack, which can also be used for temporary storage. To access the stack use the commands \R{Push}{Push} and \R{Pop}{Pop}. Push adds a value to the stack, Pop removes one and sets the variable.
|
||||
|
||||
For shared code, there are \R{varother}{20 registers avaibable} (like $0 and $R0). These static variables don't have to be declared and you won't get any name conflicts. If you want to use these variables in shared code, store the original values on the stack and restore the original values afterwards.
|
||||
For shared code, there are \R{varother}{20 registers available} (like $0 and $R0). These static variables don't have to be declared and you won't get any name conflicts. If you want to use these variables in shared code, store the original values on the stack and restore the original values afterwards.
|
||||
|
||||
After calling the function, the variables contain the same value as before. Note the order when using multiple variables (last-in first-out):
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
Makes the installer window visible and brings it to the top of the window list. If an application was executed that shows itself in front of the installer, a BringToFront would bring the installer back in focus.
|
||||
|
||||
Recent Windows versions restrict the setting of foreground windows. If the user is working with another application during installation, the user may be notifed using a different method.
|
||||
Recent Windows versions restrict the setting of foreground windows. If the user is working with another application during installation, the user may be notified using a different method.
|
||||
|
||||
\S2{createfont} CreateFont
|
||||
|
||||
|
@ -75,7 +75,7 @@ If HWND is a window, Gotos jump_if_window, otherwise, Gotos jump_if_not_window (
|
|||
|
||||
\c on|off
|
||||
|
||||
\e{LockWindow on} makes the main window not to redraw itself upon changes. When \e{LockWindow off} is used, all controls that weren't redrawn since \e{LockWindow on} will be redrawn. This makes the pages flickering look nicer because now it flickers a group of controls at the same time, instead of one control at a time. The individual control flickering is more noticiable on older computers.
|
||||
\e{LockWindow on} prevents the main window from redrawing itself upon changes. When \e{LockWindow off} is used, all controls that weren't redrawn since \e{LockWindow on} will be redrawn. This makes the pages flickering look nicer because now it flickers a group of controls at the same time, instead of one control at a time. The individual control flickering is more noticeable on old computers.
|
||||
|
||||
\S2{sendmessage} SendMessage
|
||||
|
||||
|
@ -147,7 +147,7 @@ Sets the installer to silent mode or normal mode. See \R{asilentinstall}{SilentI
|
|||
|
||||
\c hwnd show_state
|
||||
|
||||
Sets the visability of a window. Possible show_states are the same as \W{http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/showwindow.asp}{Windows ShowWindow} function. SW_* constants are defined in \L{../Include/WinMessages.nsh}{Include\\WinMessages.nsh}.
|
||||
Sets the visibility of a window. Possible show_states are the same as \W{http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/showwindow.asp}{Windows ShowWindow} function. SW_* constants are defined in \L{../Include/WinMessages.nsh}{Include\\WinMessages.nsh}.
|
||||
|
||||
\c !include WinMessages.nsh
|
||||
\c GetDlgItem $0 $HWNDPARENT 1
|
||||
|
|
|
@ -27,7 +27,7 @@ Declare a user variable. Allowed characters for variables names: [a-z][A-Z][0-9]
|
|||
|
||||
\e{$0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $R0, $R1, $R2, $R3, $R4, $R5, $R6, $R7, $R8, $R9}
|
||||
|
||||
Registers. These variables can be used just like user variables, but are usually used in shared functions or macro's. You don't have to declare these variables, so you won't get any name conflicts when using them in shared code. When using these variables in shared code, it's recommended that you use the stack to save and restore their original values. These variables can also be used for communication with plug-ins, because they can be read and written by the plug-in DLL's.
|
||||
Registers. These variables can be used just like user variables, but are usually used in shared functions or macros. You don't have to declare these variables, so you won't get any name conflicts when using them in shared code. When using these variables in shared code, it's recommended that you use the stack to save and restore their original values. These variables can also be used for communication with plug-ins, because they can be read and written by the plug-in DLLs.
|
||||
|
||||
\e{$INSTDIR}
|
||||
|
||||
|
|
|
@ -224,7 +224,7 @@ strreperror:
|
|||
StrCmp $0 "example" 0 strsorterror
|
||||
${StrSort} $0 "This is just an example" " " "le" " " "1" "0" "0"
|
||||
StrCmp $0 " examp" 0 strsorterror
|
||||
${StrSort} $0 "an error has occured" " " "e" " " "0" "1" "0"
|
||||
${StrSort} $0 "an error has occurred" " " "e" " " "0" "1" "0"
|
||||
StrCmp $0 "error" 0 strsorterror
|
||||
${StrSort} $0 "" " " "something" " " "0" "1" "0"
|
||||
StrCmp $0 "" 0 strsorterror
|
||||
|
@ -240,7 +240,7 @@ strreperror:
|
|||
StrCmp $0 "This is jst " 0 strsorterror
|
||||
${StrSort} $0 "This is just an example" " " "just" " " "1" "0" "1"
|
||||
StrCmp $0 " " 0 strsorterror
|
||||
${StrSort} $0 "an error has occured" " " "e" "h" "1" "0" "0"
|
||||
${StrSort} $0 "an error has occurred" " " "e" "h" "1" "0" "0"
|
||||
StrCmp $0 " rror " 0 strsorterror
|
||||
${StrSort} $0 "" " " "something" " " "1" "0" "1"
|
||||
StrCmp $0 "" 0 strsorterror
|
||||
|
@ -503,7 +503,7 @@ strreperror:
|
|||
StrCmp $0 "example" 0 strsorterror
|
||||
${UnStrSort} $0 "This is just an example" " " "le" " " "1" "0" "0"
|
||||
StrCmp $0 " examp" 0 strsorterror
|
||||
${UnStrSort} $0 "an error has occured" " " "e" " " "0" "1" "0"
|
||||
${UnStrSort} $0 "an error has occurred" " " "e" " " "0" "1" "0"
|
||||
StrCmp $0 "error" 0 strsorterror
|
||||
${UnStrSort} $0 "" " " "something" " " "0" "1" "0"
|
||||
StrCmp $0 "" 0 strsorterror
|
||||
|
@ -519,7 +519,7 @@ strreperror:
|
|||
StrCmp $0 "This is jst " 0 strsorterror
|
||||
${UnStrSort} $0 "This is just an example" " " "just" " " "1" "0" "1"
|
||||
StrCmp $0 " " 0 strsorterror
|
||||
${UnStrSort} $0 "an error has occured" " " "e" "h" "1" "0" "0"
|
||||
${UnStrSort} $0 "an error has occurred" " " "e" "h" "1" "0" "0"
|
||||
StrCmp $0 " rror " 0 strsorterror
|
||||
${UnStrSort} $0 "" " " "something" " " "1" "0" "1"
|
||||
StrCmp $0 "" 0 strsorterror
|
||||
|
|
|
@ -40,17 +40,17 @@ How to use
|
|||
2. Defines
|
||||
----------
|
||||
|
||||
This header file contains defines that automatizes the life of some who
|
||||
fear of a lot of changes sometimes imposed in this header file or who have
|
||||
This header file contains defines that automate the life of some who
|
||||
fear a lot of changes sometimes imposed in this header file, or who have
|
||||
applications that put it to work at maximum capacity. Before you try
|
||||
these, give a look on the information below:
|
||||
these, take a look at the information below:
|
||||
|
||||
- Every item on a define value is separated by a "|", and every subitem
|
||||
(items in an item) is separated by " ".
|
||||
|
||||
- Use ${StrTok} $var "${DefineName}" "|" "$counter" "0" to get every
|
||||
item inside the define. For subitems, use ${StrTok} $var2 "$var" " "
|
||||
"$counter2" "0" after getting the value for a desidered item.
|
||||
"$counter2" "0" after getting the value for a desired item.
|
||||
|
||||
- ${StrFunc_List} is automatically made by the header file. The rest
|
||||
is manually added to the header.
|
||||
|
@ -70,7 +70,7 @@ How to use
|
|||
|
||||
- Output - Needs a variable to output a function result.
|
||||
|
||||
- Text - Needs text or number to be inputed.
|
||||
- Text - Needs text or number to be input.
|
||||
|
||||
- Mixed - Needs text, number or option to be inputed.
|
||||
Each subitem following the "Mixed" word is an
|
||||
|
@ -315,7 +315,7 @@ How to use
|
|||
|
||||
Result Value -> ResultVar:
|
||||
|
||||
"String" with all occurences of "StringToReplace" replaced with
|
||||
"String" with all occurrences of "StringToReplace" replaced with
|
||||
"ReplacementString".
|
||||
|
||||
Example:
|
||||
|
@ -452,8 +452,8 @@ How to use
|
|||
including the original execution. Default is "0" (1 code execution).
|
||||
|
||||
CaseSensitive(0|1)
|
||||
If "1" the search will be case-sensitive (diferenciates between cases).
|
||||
If "0" it is case-insensitive (does not diferenciate between cases).
|
||||
If "1" the search will be case-sensitive (differentiates between cases).
|
||||
If "0" it is case-insensitive (does not differentiate between cases).
|
||||
Default is "0" (Case-Insensitive).
|
||||
|
||||
|
||||
|
@ -612,7 +612,7 @@ Version History
|
|||
functions commands like ${UnStrStr} to be supported by uninstall functions
|
||||
and sections.
|
||||
- Added case-sensitive comparation option for StrStrAdv.
|
||||
- StrCase now uses System.dll which makes case convertions effective with
|
||||
- StrCase now uses System.dll which makes case conversions effective with
|
||||
all latin letters (i.e. ê).
|
||||
- Added switch case and original case for StrCase.
|
||||
- StrClbSet and StrClbGet removed, added StrClb.
|
||||
|
|
|
@ -93,7 +93,7 @@ def log(msg, log_dir = '.'):
|
|||
open('release.log', 'a').write(msg + '\n')
|
||||
|
||||
def exit(log_dir = '.'):
|
||||
log('\nerror occured, exiting', log_dir)
|
||||
log('\nerror occurred, exiting', log_dir)
|
||||
|
||||
def run(command, log_name, err, wanted_ret = 0, log_dir = '.'):
|
||||
log('running %s' % command, log_dir)
|
||||
|
|
|
@ -189,7 +189,7 @@ void MMapFile::resize(int newsize)
|
|||
}
|
||||
}
|
||||
|
||||
m_hFileDesc = -1; // some error occured, bail
|
||||
m_hFileDesc = -1; // some error occurred, bail
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue