-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
60 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,61 @@ | ||
[38;2;73;72;62m/*[0m | ||
[38;2;73;72;62m * Multi-line[0m | ||
[38;2;73;72;62m * Comment[0m | ||
[38;2;73;72;62m */[0m | ||
|
||
[38;2;73;72;62m# Single-line comment[0m | ||
[38;2;73;72;62m; Another-single line comment[0m | ||
|
||
[38;2;73;72;62m; Includes[0m | ||
[38;2;73;72;62m!include "LogicLib.nsh"[0m | ||
|
||
[38;2;73;72;62m; Defines[0m | ||
[38;2;73;72;62m!define ARCHITECTURE "x64"[0m | ||
|
||
[38;2;73;72;62m; Compile time command[0m | ||
[38;2;73;72;62m!echo "Building ${ARCHITECTURE} script"[0m | ||
|
||
[38;2;73;72;62m; Macro definition[0m | ||
[38;2;73;72;62m!macro SayHello name[0m | ||
[38;2;73;72;62m !ifdef name[0m | ||
[38;2;73;72;62m !echo "Hello, ${name}"[0m | ||
[38;2;73;72;62m !else[0m | ||
[38;2;73;72;62m !echo "Hello, world"[0m | ||
[38;2;73;72;62m !endif[0m | ||
[38;2;73;72;62m!macroend[0m | ||
|
||
[38;2;73;72;62m; Macro usage[0m | ||
[38;2;73;72;62m!insertmacro SayHello "John Doe"[0m | ||
|
||
[38;2;73;72;62m; Settings[0m | ||
[38;2;73;72;62mName "installer_name"[0m | ||
[38;2;73;72;62mOutFile "installer_name.exe"[0m | ||
[38;2;73;72;62mRequestExecutionLevel user[0m | ||
[38;2;73;72;62mCRCCheck on[0m | ||
[38;2;73;72;62mUnicode true[0m | ||
|
||
[38;2;73;72;62m!ifdef ${ARCHITECTURE}[0m | ||
[38;2;73;72;62m InstallDir "$PROGRAMFILES64\installer_name"[0m | ||
[38;2;73;72;62m!else[0m | ||
[38;2;73;72;62m InstallDir "$PROGRAMFILES\installer_name"[0m | ||
[38;2;73;72;62m!endif[0m | ||
|
||
[38;2;73;72;62m; Pages[0m | ||
[38;2;73;72;62mPage components[0m | ||
[38;2;73;72;62mPage instfiles[0m | ||
|
||
[38;2;73;72;62m; Functions[0m | ||
[38;2;73;72;62mFunction PrintTestStrings[0m | ||
[38;2;73;72;62m DetailPrint "The install button reads $(^InstallBtn)"[0m | ||
[38;2;73;72;62m DetailPrint 'Here comes a$\n$\rline-break!'[0m | ||
[38;2;73;72;62m DetailPrint `Escape the dollar-sign: $$`[0m | ||
[38;2;73;72;62mFunctionEnd[0m | ||
|
||
[38;2;73;72;62m; Sections[0m | ||
[38;2;73;72;62mSection "section_name" section_index[0m | ||
[38;2;73;72;62m Call PrintTestStrings [0m | ||
|
||
[38;2;73;72;62m ; NSIS plugin call[0m | ||
[38;2;73;72;62m nsExec::ExecToLog "calc.exe"[0m | ||
[38;2;73;72;62mSectionEnd[0m | ||
[38;2;117;113;94/*[0m | ||
[38;2;117;113;94 * Multi-line[0m | ||
[38;2;117;113;94 * Comment[0m | ||
[38;2;117;113;94 */[0m | ||
|
||
[38;2;117;113;94m#[0m[38;2;117;113;94m Single-line comment[0m | ||
[38;2;117;113;94m;[0m[38;2;117;113;94m Another-single line comment[0m | ||
|
||
[38;2;117;113;94m;[0m[38;2;117;113;94m Includes[0m | ||
[38;2;249;38;114m!include[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mLogicLib.nsh[0m[38;2;230;219;116m"[0m | ||
|
||
[38;2;117;113;94m;[0m[38;2;117;113;94m Defines[0m | ||
[38;2;249;38;114m!define[0m[38;2;248;248;242m ARCHITECTURE [0m[38;2;230;219;116m"[0m[38;2;230;219;116mx64[0m[38;2;230;219;116m"[0m | ||
|
||
[38;2;117;113;94m;[0m[38;2;117;113;94m Compile time command[0m | ||
[38;2;249;38;114m!echo[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mBuilding [0m[38;2;190;132;255m${ARCHITECTURE}[0m[38;2;230;219;116m script[0m[38;2;230;219;116m"[0m | ||
|
||
[38;2;117;113;94m;[0m[38;2;117;113;94m Macro definition[0m | ||
[38;2;249;38;114m!macro[0m[38;2;248;248;242m SayHello name[0m | ||
[38;2;249;38;114m !ifdef[0m[38;2;248;248;242m name[0m | ||
[38;2;249;38;114m !echo[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello, [0m[38;2;190;132;255m${name}[0m[38;2;230;219;116m"[0m | ||
[38;2;249;38;114m !else[0m | ||
[38;2;249;38;114m !echo[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mHello, world[0m[38;2;230;219;116m"[0m | ||
[38;2;249;38;114m !endif[0m | ||
[38;2;249;38;114m!macroend[0m | ||
|
||
[38;2;117;113;94m;[0m[38;2;117;113;94m Macro usage[0m | ||
[38;2;249;38;114m!insertmacro[0m[38;2;248;248;242m SayHello [0m[38;2;230;219;116m"[0m[38;2;230;219;116mJohn Doe[0m[38;2;230;219;116m"[0m | ||
|
||
[38;2;117;113;94m;[0m[38;2;117;113;94m Settings[0m | ||
[38;2;249;38;114mName[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116minstaller_name[0m[38;2;230;219;116m"[0m | ||
[38;2;249;38;114mOutFile[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116minstaller_name.exe[0m[38;2;230;219;116m"[0m | ||
[38;2;249;38;114mRequestExecutionLevel[0m[38;2;248;248;242m [0m[38;2;166;226;46muser[0m | ||
[38;2;249;38;114mCRCCheck[0m[38;2;248;248;242m [0m[38;2;190;132;255mon[0m | ||
[38;2;249;38;114mUnicode[0m[38;2;248;248;242m [0m[38;2;190;132;255mtrue[0m | ||
|
||
[38;2;249;38;114m!ifdef[0m[38;2;248;248;242m [0m[38;2;190;132;255m${ARCHITECTURE}[0m | ||
[38;2;249;38;114m InstallDir[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255m$PROGRAMFILES64[0m[38;2;230;219;116m\installer_name[0m[38;2;230;219;116m"[0m | ||
[38;2;249;38;114m!else[0m | ||
[38;2;249;38;114m InstallDir[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;255;255;255m$PROGRAMFILES[0m[38;2;230;219;116m\installer_name[0m[38;2;230;219;116m"[0m | ||
[38;2;249;38;114m!endif[0m | ||
|
||
[38;2;117;113;94m;[0m[38;2;117;113;94m Pages[0m | ||
[38;2;249;38;114mPage[0m[38;2;248;248;242m [0m[38;2;166;226;46mcomponents[0m | ||
[38;2;249;38;114mPage[0m[38;2;248;248;242m [0m[38;2;166;226;46minstfiles[0m | ||
|
||
[38;2;117;113;94m;[0m[38;2;117;113;94m Functions[0m | ||
[38;2;166;226;46mFunction[0m[38;2;248;248;242m PrintTestStrings[0m | ||
[38;2;249;38;114m DetailPrint[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mThe install button reads [0m[38;2;255;255;255m$(^InstallBtn)[0m[38;2;230;219;116m"[0m | ||
[38;2;249;38;114m DetailPrint[0m[38;2;248;248;242m [0m[38;2;230;219;116m'[0m[38;2;230;219;116mHere comes a[0m[38;2;190;132;255m$\n[0m[38;2;190;132;255m$\r[0m[38;2;230;219;116mline-break![0m[38;2;230;219;116m'[0m | ||
[38;2;249;38;114m DetailPrint[0m[38;2;248;248;242m [0m[38;2;230;219;116m`[0m[38;2;230;219;116mEscape the dollar-sign: [0m[38;2;190;132;255m$$[0m[38;2;230;219;116m`[0m | ||
[38;2;166;226;46mFunctionEnd[0m | ||
|
||
[38;2;117;113;94m;[0m[38;2;117;113;94m Sections[0m | ||
[38;2;166;226;46mSection[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116msection_name[0m[38;2;230;219;116m"[0m[38;2;248;248;242m section_index[0m | ||
[38;2;249;38;114m Call[0m[38;2;248;248;242m PrintTestStrings [0m | ||
|
||
[38;2;248;248;242m [0m[38;2;117;113;94m;[0m[38;2;117;113;94m NSIS plugin call[0m | ||
[3;38;2;166;226;46m nsExec::ExecToLog[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mcalc.exe[0m[38;2;230;219;116m"[0m | ||
[38;2;166;226;46mSectionEnd[0m | ||
|