NSIS mode
xxxxxxxxxx1
; This is a comment2
!ifdef ERROR3
!error "Something went wrong"4
!endif5
6
OutFile "demo.exe"7
RequestExecutionLevel user8
SetDetailsPrint listonly9
10
!include "LogicLib.nsh"11
!include "WinVer.nsh"12
13
Section -mandatory14
15
Call logWinVer16
17
${If} 1 > 018
MessageBox MB_OK "Hello world"19
${EndIf}20
21
SectionEnd22
23
Function logWinVer24
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
FunctionEnd34
MIME types defined: text/x-nsis.
