38 lines
638 B
Text
38 lines
638 B
Text
|
/*
|
||
|
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
|