From c7516acf947d7af1333c702660d0abc1aba9f7f7 Mon Sep 17 00:00:00 2001 From: anders_k Date: Mon, 13 Sep 2021 16:34:38 +0000 Subject: [PATCH] Support dark mode in simple docs git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7322 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/System/System.html | 26 ++++++---- Contrib/VPatch/Readme.html | 95 +++++++++++------------------------ Contrib/nsDialogs/Readme.html | 34 +++++++------ 3 files changed, 64 insertions(+), 91 deletions(-) diff --git a/Contrib/System/System.html b/Contrib/System/System.html index fec0624c..1ef8c1f3 100644 --- a/Contrib/System/System.html +++ b/Contrib/System/System.html @@ -1,11 +1,13 @@ - - + + -NSIS System Plug-in - - + + + +System Plug-in (NSIS) @@ -237,7 +243,7 @@ DetailPrint $4 IPTR->IDX -Member indexed IDX from
interface pointed by IPTR +Member indexed IDX from
interface pointed by IPTR see below @@ -306,11 +312,11 @@ DetailPrint $4 k callback + @ Direct register memory access (Buffer is limited to (NSIS_MAX_STRLEN - 24) * NSIS_CHAR_SIZE bytes) - &vN N bytes padding (structures only) @@ -360,7 +366,7 @@ DetailPrint $4 concrete hex, decimal or octal integer value. several integers can be or'ed using the pipe symbol (`|') -'string'
"string"
`string` +'string'
"string"
`string` concrete string value @@ -368,7 +374,7 @@ DetailPrint $4 $0 through $9 respectively -r10 through r19
R0 through R9 +r10 through r19
R0 through R9 $R0 through $R9 respectively diff --git a/Contrib/VPatch/Readme.html b/Contrib/VPatch/Readme.html index 62321f66..f6cb99be 100644 --- a/Contrib/VPatch/Readme.html +++ b/Contrib/VPatch/Readme.html @@ -1,12 +1,13 @@ - - + + + + + VPatch 3 - - - - - - -
- -

VPatch 3.1

+

VPatch 3.1

Introduction

@@ -126,9 +96,7 @@ a:hover file (version to update to). For example, DATA.DTA (currently on user system) and DATA_20.DTA (version 2.0 of this data file). Now call the command line tool GenPat.exe:

-
-GENPAT oldfile.txt newfile.txt patch.pat
-
+
GENPAT oldfile.txt newfile.txt patch.pat

Now, the patch will be generated, this will take some time.

Using the /B=(BlockSize) parameter of the GenPat utility (put it after the filenames), you can use a different block size. A smaller @@ -141,9 +109,7 @@ GENPAT oldfile.txt newfile.txt patch.pat

Update the file during installation

Use the VPatch plug-in to update a file using a patch file:

-
-vpatch::vpatchfile "patch.pat" "oldfile.txt" "temporary_newfile.txt"
-
+
vpatch::vpatchfile "patch.pat" "oldfile.txt" "temporary_newfile.txt"

The result of the patch operating will be added to the stack and can be one of the following texts:

    @@ -226,8 +192,7 @@ vpatch::vpatchfile "patch.pat" "oldfile.txt" "temporary_newfile.txt"

    A user interface is included as well, which you will have to build yourself because the GUI executable was too large to include. Besides Borland Delphi 6 or higher (you can use the freely available Personal - edition), you will also need to install the VirtualTreeView component by Mike Lischke.

    + edition), you will also need to install the VirtualTreeView component by Mike Lischke.

Version history

@@ -310,13 +275,12 @@ vpatch::vpatchfile "patch.pat" "oldfile.txt" "temporary_newfile.txt"

Credits

-

Written by Koen van de Sande
- C plug-in initially by Edgewize, updated by Koen van de Sande
- New documentation and example by Joost Verburg and Koen van de Sande

+

Written by Koen van de Sande.
+ C plug-in initially by Edgewize, updated by Koen van de Sande.
+ New documentation and example by Joost Verburg and Koen van de Sande.

License

-
-
+          
 Copyright (C) 2001-2005 Koen van de Sande / Van de Sande Productions
 
 This software is provided 'as-is', without any express or implied
@@ -334,11 +298,8 @@ it freely, subject to the following restrictions:
 2. Altered versions must be plainly marked as such,
    and must not be misrepresented as being the original software.
 3. This notice may not be removed or altered from any distribution.
-
-
-
-
+ + + diff --git a/Contrib/nsDialogs/Readme.html b/Contrib/nsDialogs/Readme.html index 8ab9594e..ca5f2817 100644 --- a/Contrib/nsDialogs/Readme.html +++ b/Contrib/nsDialogs/Readme.html @@ -1,19 +1,30 @@ - - + + -nsDialogs + +nsDialogs @@ -141,7 +152,7 @@ NSD_CB_Clear,

Introduction

-

nsDialogs allows creation of custom pages in the installer. On top of the built-in pages, nsDialogs can create pages with any type of controls in any order and arrangement. It can create everything from a simple page with one label to form which reacts to user's actions. Modern UI 2, for example, uses nsDialogs to create the welcome and finish pages.

+

nsDialogs allows creation of custom pages in the installer. On top of the built-in pages, nsDialogs can create pages with any type of controls in any order and arrangement. It can create everything from a simple page with one label to form which reacts to user's actions. Modern UI 2, for example, uses nsDialogs to create the welcome and finish pages.

nsDialogs is a NSIS plug-in, introduced in version 2.29 as a replacement for InstallOptions. nsDialogs doesn't use INI files, so it's way faster than InstallOptions. Integration with the script is tighter and more natural - creating controls is done using plug-in functions and notification is done by directly calling a function in the script. Unlike InstallOptions, there isn't a predefined set of available control type and by providing a lower level access to Windows API, every type of control can be created and pages can be more customizable.

@@ -472,7 +483,7 @@ SectionEnd

nsDialogs::SelectFileDialog mode initial_selection filter

Displays a file selection dialog to the user. If mode is set to save, displays a file save dialog. If mode is set to open, displays a file open dialog.

initial_selection can be used to provide the user with a default file to look for and/or a default folder to look in. If initial_selection is empty no default filename will be provided for the user and the dialog will start in the current working directory. If initial_selection specifies just a filename, for example "test.exe", the dialog will be set up to look for a file called test.exe in the current working directory. If initial_selection specifies just a directory, for example "C:\Program Files", the dialog starts in the provided directory with no file name provided. If initial_selection specifies a directory and a filename, for example "C:\Windows\System32\calc.exe", the dialog will be set up to look for a file called calc.exe in the directory C:\Windows\System32.

-filter is a list of available file filter pairs separated by pipes. A filter pair consists of a display string and a DOS-style wildcard pattern. If an empty string is passed, the default is used ("All Files|*.*").

+

filter is a list of available file filter pairs separated by pipes. A filter pair consists of a display string and a DOS-style wildcard pattern. If an empty string is passed, the default is used ("All Files|*.*").

Returns the selected file on the stack or an empty string if the user canceled the operation.

 nsDialogs::SelectFileDialog open "$DOCUMENTS\Config.ini" ".ini files|*.ini|All Files|*.*"
@@ -852,20 +863,15 @@ SectionEnd

FAQ

- -
- +
    -
  • Q: Can nsDialogs handle InstallOptions INI files?

    A: nsDialogs.nsh contains a function called CreateDialogFromINI that can create nsDialogs' dialog from an INI file. It can handle every type of control InstallOptions supports, but doesn't handle the flags or notifications. Examples\nsDialogs\InstallOptions.nsi shows a usage example of this function.

  • -
-