presentations/highlight-js/test/detect/nsis/default.txt

38 lines
638 B
Text
Raw Normal View History

2018-12-07 08:48:05 -06:00
/*
NSIS Scheme
for highlight.js
*/
; Includes
!include MUI2.nsh
; Defines
!define x64 "true"
; Settings
Name "installer_name"
OutFile "installer_name.exe"
RequestExecutionLevel user
CRCCheck on
!ifdef ${x64}
InstallDir "$PROGRAMFILES64\installer_name"
!else
InstallDir "$PROGRAMFILES\installer_name"
!endif
; Pages
!insertmacro MUI_PAGE_INSTFILES
; Sections
Section "section_name" section_index
nsExec::ExecToLog "calc.exe"
SectionEnd
; Functions
Function .onInit
DetailPrint "The install button reads $(^InstallBtn)"
DetailPrint 'Here comes a$\n$\rline-break!'
DetailPrint `Escape the dollar-sign: $$`
FunctionEnd