NSIS mode
x
1
; This is a comment
2
!ifdef ERROR
3
!error "Something went wrong"
4
!endif
5
6
OutFile "demo.exe"
7
RequestExecutionLevel user
8
SetDetailsPrint listonly
9
10
!include "LogicLib.nsh"
11
!include "WinVer.nsh"
12
13
Section -mandatory
14
15
Call logWinVer
16
17
${If} 1 > 0
18
MessageBox MB_OK "Hello world"
19
${EndIf}
20
21
SectionEnd
22
23
Function logWinVer
24
25
${If} ${IsWin10}
26
DetailPrint "Windows 10!"
27
${ElseIf} ${AtLeastWinVista}
28
DetailPrint "We're post-XP"
29
${Else}
30
DetailPrint "Legacy system"
31
${EndIf}
32
33
FunctionEnd
34
MIME types defined: text/x-nsis
.