Spelling mistakes/typos
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1658 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
a51632f947
commit
7633bdd8be
16 changed files with 55 additions and 55 deletions
|
@ -10,7 +10,7 @@ The commands below all adjust attributes of the installer. These attributes cont
|
|||
|
||||
\c (left|top) (width|height)
|
||||
|
||||
Adds a branding image on the top of the installer or on the left. Its size will be set according to the width/height sepcified, the installer width/height and the installer font. Because this depends on the installer font, you should put SetFont before AddBrandingImage.
|
||||
Adds a branding image on the top of the installer or on the left. Its size will be set according to the width/height specified, the installer width/height and the installer font. Because this depends on the installer font, you should put SetFont before AddBrandingImage.
|
||||
|
||||
\S{aallowrootdirinstall} AllowRootDirInstall
|
||||
|
||||
|
@ -46,7 +46,7 @@ Sets what the titlebars of the installer will display. By default, it is 'Name S
|
|||
|
||||
\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 specifiy '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 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.
|
||||
|
||||
\b \e{IDD_LICENSE} must contain \e{IDC_EDIT1} (RICHEDIT control).
|
||||
|
||||
|
@ -152,7 +152,7 @@ Adds an install type to the install type list, or disables the custom install ty
|
|||
|
||||
\c color
|
||||
|
||||
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).
|
||||
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).
|
||||
|
||||
\S{alicensedata} LicenseData
|
||||
|
||||
|
|
|
@ -32,19 +32,19 @@ Adds file(s) to be extracted to the current output path ($OUTDIR).
|
|||
|
||||
\c command
|
||||
|
||||
Execute the specfied program and continue immediately. Note that the file specified must exist on the target system, not the compiling system. $OUTDIR is used for the working directory. The error flag is set if the process could not be launched. Note, if the command could have spaces, you may with to put it in quotes to delimit it from parameters. i.e.: Exec '"$INSTDIR\\command.exe" parameters'.
|
||||
Execute the specified program and continue immediately. Note that the file specified must exist on the target system, not the compiling system. $OUTDIR is used for the working directory. The error flag is set if the process could not be launched. Note, if the command could have spaces, you may with to put it in quotes to delimit it from parameters. i.e.: Exec '"$INSTDIR\\command.exe" parameters'.
|
||||
|
||||
\S{execshell} ExecShell
|
||||
|
||||
\c action command [parameters] [SW_SHOWNORMAL | SW_SHOWMAXIMIZED | SW_SHOWMINIMIZED]
|
||||
|
||||
Execute the specfied program using ShellExecute. Note that action is usually "open", "print", etc, but can be an empty string to use the default action. Parameters and the show type are optional. $OUTDIR is used for the working directory. The error flag is set if the process could not be launched.
|
||||
Execute the specified program using ShellExecute. Note that action is usually "open", "print", etc, but can be an empty string to use the default action. Parameters and the show type are optional. $OUTDIR is used for the working directory. The error flag is set if the process could not be launched.
|
||||
|
||||
\S{execwait} ExecWait
|
||||
|
||||
\c command [user_var(exit code)]
|
||||
|
||||
Execute the specfied program and wait for the executed process to quit. See Exec for more information. If no output variable is specified ExecWait sets the error flag if the program executed returns a nonzero error code, or if there is an error. If an output variable is specified, ExecWait sets the variable with the exit code (and only sets the error flag if an error occurs; if an error occurs the contents of the user variable are undefined). Note, if the command could have spaces, you may with to put it in quotes to delimit it from parameters. i.e.: ExecWait '"$INSTDIR\\command.exe" parameters'
|
||||
Execute the specified program and wait for the executed process to quit. See Exec for more information. If no output variable is specified ExecWait sets the error flag if the program executed returns a nonzero error code, or if there is an error. If an output variable is specified, ExecWait sets the variable with the exit code (and only sets the error flag if an error occurs; if an error occurs the contents of the user variable are undefined). Note, if the command could have spaces, you may with to put it in quotes to delimit it from parameters. i.e.: ExecWait '"$INSTDIR\\command.exe" parameters'
|
||||
|
||||
\S{rename} Rename
|
||||
|
||||
|
@ -56,7 +56,7 @@ Rename source_file to dest_file. Functions just like the Win32 API MoveFile, whi
|
|||
|
||||
\c [/r] directory
|
||||
|
||||
Remove the specified directory (which should be a full path). Without /r, the directory will only be removed if it is completely empty. If /r is specified, the dictory will be removed recursively, so all directories and files in the specified directory will be removed. The error flag is set if the directory cannot be removed.
|
||||
Remove the specified directory (which should be a full path). Without /r, the directory will only be removed if it is completely empty. If /r is specified, the directory will be removed recursively, so all directories and files in the specified directory will be removed. The error flag is set if the directory cannot be removed.
|
||||
|
||||
\S{reservefile} ReserveFile
|
||||
|
||||
|
|
|
@ -2,4 +2,4 @@ bin\halibut.exe config.but intro.but usage.but script.but attributes.but compile
|
|||
@copy Contents.html index.html
|
||||
@copy index.html IndexPage.html
|
||||
@copy *.html ..\\
|
||||
@del -f *.html
|
||||
@rem del -f *.html
|
||||
|
|
|
@ -6,7 +6,7 @@ You can create callback functions which have special names, that will be called
|
|||
|
||||
\S{onguiinit} .onGUIInit
|
||||
|
||||
This callback will be called just before the first page is loaded and the installer dialog is shown, allowing you to tweak the the user interface.
|
||||
This callback will be called just before the first page is loaded and the installer dialog is shown, allowing you to tweak the user interface.
|
||||
|
||||
Example:
|
||||
|
||||
|
@ -66,7 +66,7 @@ Example:
|
|||
|
||||
\S{onmouseoversection} .onMouseOverSection
|
||||
|
||||
This callback is called whenever the mouse position over the sections tree has changed. This allows you to set a description for each section for example. The section id on which the mouse is over currently is stored, temporarly, in $0.
|
||||
This callback is called whenever the mouse position over the sections tree has changed. This allows you to set a description for each section for example. The section id on which the mouse is over currently is stored, temporarily, in $0.
|
||||
|
||||
Example:
|
||||
|
||||
|
@ -113,7 +113,7 @@ Example:
|
|||
|
||||
\S{unonguiinit} un.onGUIInit
|
||||
|
||||
This callback will be called just before the first page is loaded and the installer dialog is shown, allowing you to tweak the the user interface.
|
||||
This callback will be called just before the first page is loaded and the installer dialog is shown, allowing you to tweak the user interface.
|
||||
|
||||
Have a look at .onGUIInit (\K{onguiinit}) for an example.
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ This command will echo a message to the user compiling the script.
|
|||
|
||||
\c [message]
|
||||
|
||||
This commnd will issue an error to the script compiler and will stop execution of the script. You can also add a message to this error.
|
||||
This command will issue an error to the script compiler and will stop execution of the script. You can also add a message to this error.
|
||||
|
||||
\H{packhdr} !packhdr
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
\H{flags} Compiler Flags
|
||||
|
||||
The following commands change how the compiler generates code and compresses data. These commands are valid anywhere in the script, and effect every line below where each one is placed (until overriden by another command).
|
||||
The following commands change how the compiler generates code and compresses data. These commands are valid anywhere in the script, and effect every line below where each one is placed (until overridden by another command).
|
||||
|
||||
\S{asetcompress} SetCompress
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
\A{credits} Credits
|
||||
|
||||
\H{programers} Programers
|
||||
\H{programmers} Programmers
|
||||
|
||||
\e{Justin Frankel aka 0xDEADBEEF}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
|||
|
||||
\e{Amir "make me stop" Szekely aka KiCHiK}
|
||||
|
||||
\b Making NSIS multiligual
|
||||
\b Making NSIS multilingual
|
||||
|
||||
\b RTF license text
|
||||
|
||||
|
@ -68,4 +68,4 @@
|
|||
|
||||
\e{Nikos Adamamas}
|
||||
|
||||
\b The new modern icons
|
||||
\b The new modern icons
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
|
||||
\b SectionSetFlags can now set bold too
|
||||
|
||||
\b SectionSetName for sub sections doesn't need - infront of the name
|
||||
\b SectionSetName for sub sections doesn't need - in front of the name
|
||||
|
||||
\b Added SetPluginUnload
|
||||
|
||||
|
@ -129,7 +129,7 @@
|
|||
|
||||
\b Added new full color icons by adni18
|
||||
|
||||
\b Added Dutch, Korean, Russian, Swedish and Tradional Chinese language files
|
||||
\b Added Dutch, Korean, Russian, Swedish and Traditional Chinese language files
|
||||
|
||||
\b Updated Spanish language file version (thanks to LsMoNKi)
|
||||
|
||||
|
@ -219,7 +219,7 @@
|
|||
|
||||
\b CheckBitmap now support bitmaps with any color table/depth
|
||||
|
||||
\b Unused resources are removed before wrinting out the installer
|
||||
\b Unused resources are removed before writing out the installer
|
||||
|
||||
\b Documented !error and !warning
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
\C{labels} Labels
|
||||
|
||||
Labels are the targets of Goto instructions, or of the various branching instructions (such as IfErrors, MessageBox, IfFileExists, and StrCmp). Labels must be within a Section or a Function. Labels are local in scope, meaning they are only accessable from within the Section or Function that they reside in.
|
||||
Labels are the targets of Goto instructions, or of the various branching instructions (such as IfErrors, MessageBox, IfFileExists, and StrCmp). Labels must be within a Section or a Function. Labels are local in scope, meaning they are only accessible from within the Section or Function that they reside in.
|
||||
To declare a label, simply do:
|
||||
|
||||
\e{MyLabel:}
|
||||
|
||||
Labels cannot begin with a -, +, !, $, or 0-9. When specifying labels for the various instructions that require them, remember that both an empty string ("") and 0 both represent the next instruction (meaning no Goto will occur). Labels beginning with a period (.) are global, meaning you can jump to them from any function or section (though you cannot jump to an uninstall global label from the installer, and vice versa).
|
||||
Labels cannot begin with a -, +, !, $, or 0-9. When specifying labels for the various instructions that require them, remember that both an empty string ("") and 0 both represent the next instruction (meaning no Goto will occur). Labels beginning with a period (.) are global, meaning you can jump to them from any function or section (though you cannot jump to an uninstall global label from the installer, and vice versa).
|
||||
|
|
|
@ -11,7 +11,7 @@ The page order is set simply by the order they are in the script. For example:
|
|||
\c Page directory
|
||||
\c Page instfiles
|
||||
|
||||
This code will show the license page, then the components selction page, then the directory selection page and then the install log, just like in old installers.
|
||||
This code will show the license page, then the components selection page, then the directory selection page and then the install log, just like in old installers.
|
||||
|
||||
You can specify the same page type more than once, just make sure you know what you are doing.
|
||||
|
||||
|
@ -25,7 +25,7 @@ Each built-in page has two callback functions. The pre-function and the post-cre
|
|||
|
||||
A custom page has only one callback function that creates it but unlike the built-in pages this function is mandatory.
|
||||
|
||||
Use Abort (see \K{abort}) from a built-in page pre-function to to skip the page.
|
||||
Use Abort (see \K{abort}) from a built-in page pre-function to skip the page.
|
||||
|
||||
Examples:
|
||||
|
||||
|
@ -38,7 +38,7 @@ Examples:
|
|||
\c Abort
|
||||
\c no:
|
||||
\c FunctionEnd
|
||||
\c
|
||||
\c
|
||||
\c Function customPage
|
||||
\c GetTempFileName $R0
|
||||
\c File /oname=$R0 customPage.ini
|
||||
|
@ -46,7 +46,7 @@ Examples:
|
|||
\c Pop $R1
|
||||
\c StrCmp $R1 "cancel" done
|
||||
\c StrCmp $R1 "back" done
|
||||
\c StrCmp $R1 "sucess" done
|
||||
\c StrCmp $R1 "success" done
|
||||
\c error: MessageBox MB_OK|MB_ICONSTOP "InstallOptions error:$\r$\n$R1"
|
||||
\c done:
|
||||
\c FunctionEnd
|
||||
|
@ -61,4 +61,4 @@ Adds an installer page. See the above sections for more information about built-
|
|||
|
||||
\c (custom function) | ((uninstConfirm|instfiles) [pre_function] [post_function])
|
||||
|
||||
Adds an uninstaller page. See the above sections for more information about built-in versus custom pages and about callback functions.
|
||||
Adds an uninstaller page. See the above sections for more information about built-in versus custom pages and about callback functions.
|
||||
|
|
|
@ -8,7 +8,7 @@ During execution of the created installer if a plugin command is executed NSIS w
|
|||
|
||||
\H{usingplug} Using Plugin Commands
|
||||
|
||||
The following two examples both invoke the same plugin command. The first example shows the (still okay) syntax that scripts written for versions of NSIS earlier than 2.0a4 had to use, and the second is how it can be scripted more succintly now. The newer syntax automatically handles packing & extraction of the DLL file, and stacks up arguments for you too.
|
||||
The following two examples both invoke the same plugin command. The first example shows the (still okay) syntax that scripts written for versions of NSIS earlier than 2.0a4 had to use, and the second is how it can be scripted more succinctly now. The newer syntax automatically handles packing & extraction of the DLL file, and stacks up arguments for you too.
|
||||
|
||||
\c ; Pre 2.0a4 syntax
|
||||
\c SetOutPath $TEMP
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
\S{Reboot} Reboot
|
||||
|
||||
Reboots the computer. Be careful with this one. If there is an error rebooting, this function sets the error flag and continues. If the reboot is sucessful, this instruction does not return.
|
||||
Reboots the computer. Be careful with this one. If there is an error rebooting, this function sets the error flag and continues. If the reboot is successful, this instruction does not return.
|
||||
|
||||
\S{SetRebootFlag} SetRebootFlag
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ Tells the installer that the current section needs an additional "size_kb" kilob
|
|||
|
||||
\c [/e] [section_name] [section index output]
|
||||
|
||||
Begins annd opens a new section. If section_name is empty, omitted, or begins with a -, then it is a required section and the user will not see it, nor have the option of disabling it. If the section name is 'Uninstall', then it is a special Uninstall Section. If section index output is specified, the parameter will be !defined with the section index (that can be used for SectionSetText etc. If the section name begins with a !, the section will be displayed as bold. If /e is present, the sub sections of the section will be expanded by default.
|
||||
Begins and opens a new section. If section_name is empty, omitted, or begins with a -, then it is a required section and the user will not see it, nor have the option of disabling it. If the section name is 'Uninstall', then it is a special Uninstall Section. If section index output is specified, the parameter will be !defined with the section index (that can be used for SectionSetText etc. If the section name begins with a !, the section will be displayed as bold. If /e is present, the sub sections of the section will be expanded by default.
|
||||
|
||||
\S{ssectionend} SectionEnd
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
\c [user_var] | stack_index
|
||||
|
||||
When no parmater is specified, exchanges the top two elements of the stack. When a parameter is specified and is a user variable, exchanges the top element of the stack with the parameter. When a parameter is specified and is a positive integer, the parameter specifies which item on the stack that the top of the stack is swapped with. If there are not enough items on the stack to accomplish the exchange, a fatal error will occur (to help you debug your code :).
|
||||
When no parameter is specified, exchanges the top two elements of the stack. When a parameter is specified and is a user variable, exchanges the top element of the stack with the parameter. When a parameter is specified and is a positive integer, the parameter specifies which item on the stack that the top of the stack is swapped with. If there are not enough items on the stack to accomplish the exchange, a fatal error will occur (to help you debug your code :).
|
||||
|
||||
\S{Pop} Pop
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ Adds the string "user_message" to the details view of the installer.
|
|||
|
||||
\c user_var(hwnd output) windowclass [windowtitle] [windowparent] [childafter]
|
||||
|
||||
Searches for a window. Behaves like the win32 FindWindowEx(). Seaches by windowclass (and/or windowtitle if specified). If windowparent or childafter are specified, the search will be restricted as such. If windowclass or windowtitle is specified as "", they will not be used for the search. If the window is not found, the user variable returned is 0. To accomplish old-style FindWindow behavior, use FindWindow with SendMessage.
|
||||
Searches for a window. Behaves like the win32 FindWindowEx(). Searches by windowclass (and/or windowtitle if specified). If windowparent or childafter are specified, the search will be restricted as such. If windowclass or windowtitle is specified as "", they will not be used for the search. If the window is not found, the user variable returned is 0. To accomplish old-style FindWindow behavior, use FindWindow with SendMessage.
|
||||
|
||||
\S{getdlgitem} GetDlgItem
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
\c ; Pop $R0
|
||||
\c ; ; at this point $R0 will equal "C:\Program Files\Directory"
|
||||
\c
|
||||
\c Function GetParent
|
||||
\c Function GetParent
|
||||
\c Exch $R0 ; old $R0 is on top of stack
|
||||
\c Push $R1
|
||||
\c Push $R2
|
||||
|
@ -49,7 +49,7 @@
|
|||
\c StrCmp $R2 "$\r" loop
|
||||
\c StrCmp $R2 "$\n" loop
|
||||
\c IntOp $R1 $R1 + 1
|
||||
\c
|
||||
\c
|
||||
\c StrCpy $R0 $R0 $R1
|
||||
\c Pop $R2
|
||||
\c Pop $R1
|
||||
|
@ -155,7 +155,7 @@
|
|||
\c StrCmp $R0 "" 0 lbl_winnt
|
||||
\c ; we are not NT.
|
||||
\c ReadRegStr $R0 HKLM SOFTWARE\Microsoft\Windows\CurrentVersion VersionNumber
|
||||
\c
|
||||
\c
|
||||
\c StrCpy $R1 $R0 1
|
||||
\c StrCmp $R1 '4' 0 lbl_error
|
||||
\c
|
||||
|
@ -176,15 +176,15 @@
|
|||
\c StrCpy $R0 'ME'
|
||||
\c Goto lbl_done
|
||||
\c
|
||||
\c lbl_winnt:
|
||||
\c lbl_winnt:
|
||||
\c
|
||||
\c StrCpy $R1 $R0 1
|
||||
\c
|
||||
\c
|
||||
\c StrCmp $R1 '3' lbl_winnt_x
|
||||
\c StrCmp $R1 '4' lbl_winnt_x
|
||||
\c
|
||||
\c
|
||||
\c StrCpy $R1 $R0 3
|
||||
\c
|
||||
\c
|
||||
\c StrCmp $R1 '5.0' lbl_winnt_2000 lbl_error
|
||||
\c StrCmp $R1 '5.1' lbl_winnt_XP lbl_error
|
||||
\c StrCmp $R1 '5.2' lbl_winnt_dotNET lbl_error
|
||||
|
@ -196,11 +196,11 @@
|
|||
\c lbl_winnt_2000:
|
||||
\c Strcpy $R0 '2000'
|
||||
\c Goto lbl_done
|
||||
\c
|
||||
\c
|
||||
\c lbl_winnt_XP:
|
||||
\c Strcpy $R0 'XP'
|
||||
\c Goto lbl_done
|
||||
\c
|
||||
\c
|
||||
\c lbl_winnt_dotNET:
|
||||
\c Strcpy $R0 '.NET Server'
|
||||
\c Goto lbl_done
|
||||
|
@ -219,7 +219,7 @@
|
|||
\c ; Based on Yazno's function, http://yazno.tripod.com/powerpimpit/
|
||||
\c ; Returns on top of stack
|
||||
\c ; 1-6 (Installed IE Version)
|
||||
\c ; or
|
||||
\c ; or
|
||||
\c ; '' (IE is not installed)
|
||||
\c ;
|
||||
\c ; Usage:
|
||||
|
@ -249,7 +249,7 @@
|
|||
\c
|
||||
\c StrCpy $R0 '3' ; default to ie3 if not 100, 101, or 102.
|
||||
\c Goto lbl_done
|
||||
\c lbl_ie1:
|
||||
\c lbl_ie1:
|
||||
\c StrCpy $R0 '1'
|
||||
\c Goto lbl_done
|
||||
\c lbl_ie2:
|
||||
|
@ -280,7 +280,7 @@
|
|||
\c Push $R0
|
||||
\c ClearErrors
|
||||
\c ReadRegStr $R0 HKCR "CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}" ""
|
||||
\c IfErrors lbl_na
|
||||
\c IfErrors lbl_na
|
||||
\c StrCpy $R0 1
|
||||
\c Goto lbl_end
|
||||
\c lbl_na:
|
||||
|
@ -296,7 +296,7 @@
|
|||
\c ; Increments a shared DLLs reference count.
|
||||
\c ; Use by passing one item on the stack (the full path of the DLL).
|
||||
\c ;
|
||||
\c ; Usage:
|
||||
\c ; Usage:
|
||||
\c ; Push $SYSDIR\myDll.dll
|
||||
\c ; Call AddSharedDLL
|
||||
\c ;
|
||||
|
@ -319,10 +319,10 @@
|
|||
\c ; Use by passing one item on the stack (the full path of the DLL).
|
||||
\c ; Note: for use in the main installer (not the uninstaller), rename the
|
||||
\c ; function to RemoveSharedDLL.
|
||||
\c ;
|
||||
\c ;
|
||||
\c ; Usage:
|
||||
\c ; Push $SYSDIR\myDll.dll
|
||||
\c ; Call un.RemovedShareDLL
|
||||
\c ; Call un.RemoveSharedDLL
|
||||
\c ;
|
||||
\c
|
||||
\c Function un.RemoveSharedDLL
|
||||
|
@ -360,7 +360,7 @@
|
|||
\c ; you insert the macro.
|
||||
\c
|
||||
\c !macro UpgradeDLL LOCALFILE DESTFILE
|
||||
\c
|
||||
\c
|
||||
\c Push $R0
|
||||
\c Push $R1
|
||||
\c Push $R2
|
||||
|
@ -381,7 +381,7 @@
|
|||
\c
|
||||
\c ;------------------------
|
||||
\c ;Let's upgrade the DLL!
|
||||
\c
|
||||
\c
|
||||
\c SetOverwrite try
|
||||
\c
|
||||
\c "upgrade_${LOCALFILE}:"
|
||||
|
@ -392,22 +392,22 @@
|
|||
\c
|
||||
\c ;------------------------
|
||||
\c ;Try to copy the DLL directly
|
||||
\c
|
||||
\c
|
||||
\c ClearErrors
|
||||
\c StrCpy $R0 "${DESTFILE}"
|
||||
\c Call ":file_${LOCALFILE}"
|
||||
\c IfErrors "" "noreboot_${LOCALFILE}"
|
||||
\c
|
||||
\c
|
||||
\c ;------------------------
|
||||
\c ;DLL is in use. Copy it to a temp file and Rename it on reboot.
|
||||
\c
|
||||
\c
|
||||
\c GetTempFileName $R0
|
||||
\c Call ":file_${LOCALFILE}"
|
||||
\c Rename /REBOOTOK $R0 "${DESTFILE}"
|
||||
\c
|
||||
\c ;------------------------
|
||||
\c ;Register the DLL on reboot
|
||||
\c
|
||||
\c
|
||||
\c !ifndef UPGRADEDLL_NOREGISTER
|
||||
\c WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\RunOnce" \
|
||||
\c "Register ${DESTFILE}" '"$SYSDIR\rundll32.exe" "${DESTFILE},DllRegisterServer"'
|
||||
|
@ -449,13 +449,13 @@
|
|||
\c ;Called to extract the DLL
|
||||
\c
|
||||
\c "file_${LOCALFILE}:"
|
||||
\c File /oname=$R0 "${LOCALFILE}"
|
||||
\c File /oname=$R0 "${LOCALFILE}"
|
||||
\c Return
|
||||
\c
|
||||
\c "end_${LOCALFILE}:"
|
||||
\c
|
||||
\c
|
||||
\c !macroend
|
||||
|
||||
\H{morefuncs} More
|
||||
|
||||
You can find more useful functions at \W{http://www.clantpa.co.uk/nsis/wiki/}{Sunjammer's NSIS Archive}, \W{http://forums.winamp.com/forumdisplay.php?s=&forumid=65}{the NSIS forum} and \W{http://nsis.sourceforge.net/}{NSIS development page}.
|
||||
You can find more useful functions at \W{http://www.clantpa.co.uk/nsis/wiki/}{Sunjammer's NSIS Archive}, \W{http://forums.winamp.com/forumdisplay.php?s=&forumid=65}{the NSIS forum} and \W{http://nsis.sourceforge.net/}{NSIS development page}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue