update highlighted test file

This commit is contained in:
Jan T. Sott 2023-05-30 23:57:40 +02:00 committed by Martin Nordholts
parent f1d6cc7a64
commit 34440f1b0c
1 changed files with 48 additions and 48 deletions

View File

@ -1,61 +1,61 @@
/* [38;2;117;113;94/*
 * Multi-line [38;2;117;113;94 * Multi-line
 * Comment [38;2;117;113;94 * Comment
 */ [38;2;117;113;94 */
# Single-line comment # Single-line comment
; Another-single line comment ; Another-single line comment
; Includes ; Includes
!include "LogicLib.nsh" !include "LogicLib.nsh"
; Defines ; Defines
!define ARCHITECTURE "x64" !define ARCHITECTURE "x64"
; Compile time command ; Compile time command
!echo "Building ${ARCHITECTURE} script" !echo "Building ${ARCHITECTURE} script"
; Macro definition ; Macro definition
!macro SayHello name !macro SayHello name
 !ifdef name  !ifdef name
 !echo "Hello, ${name}"  !echo "Hello, ${name}"
 !else  !else
 !echo "Hello, world"  !echo "Hello, world"
 !endif  !endif
!macroend !macroend
; Macro usage ; Macro usage
!insertmacro SayHello "John Doe" !insertmacro SayHello "John Doe"
; Settings ; Settings
Name "installer_name" Name "installer_name"
OutFile "installer_name.exe" OutFile "installer_name.exe"
RequestExecutionLevel user RequestExecutionLevel user
CRCCheck on CRCCheck on
Unicode true Unicode true
!ifdef ${ARCHITECTURE} !ifdef ${ARCHITECTURE}
 InstallDir "$PROGRAMFILES64\installer_name"  InstallDir "$PROGRAMFILES64\installer_name"
!else !else
 InstallDir "$PROGRAMFILES\installer_name"  InstallDir "$PROGRAMFILES\installer_name"
!endif !endif
; Pages ; Pages
Page components Page components
Page instfiles Page instfiles
; Functions ; Functions
Function PrintTestStrings Function PrintTestStrings
 DetailPrint "The install button reads $(^InstallBtn)"  DetailPrint "The install button reads $(^InstallBtn)"
 DetailPrint 'Here comes a$\n$\rline-break!'  DetailPrint 'Here comes a$\n$\rline-break!'
 DetailPrint `Escape the dollar-sign: $$`  DetailPrint `Escape the dollar-sign: $$`
FunctionEnd FunctionEnd
; Sections ; Sections
Section "section_name" section_index Section "section_name" section_index
 Call PrintTestStrings   Call PrintTestStrings 
 ; NSIS plugin call  ; NSIS plugin call
 nsExec::ExecToLog "calc.exe"  nsExec::ExecToLog "calc.exe"
SectionEnd SectionEnd