File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 1+ !include LogicLib.nsh
12!include " MUI2.nsh"
23!include " NsisDotNetChecker\DotNetChecker.nsh"
34
5+ ; Request application privileges for Windows Vista+
6+ RequestExecutionLevel admin
7+
8+ Function .onInit
9+ UserInfo::GetAccountType
10+ pop $0
11+ ${If} $0 != " admin" ; Require admin rights on NT4+
12+ MessageBox mb_iconstop " Administrator rights required!"
13+ SetErrorLevel 740 ; ERROR_ELEVATION_REQUIRED
14+ Quit
15+ ${EndIf}
16+ FunctionEnd
17+
18+
419; The name of the installer
520Name " BizHawk Prerequisites"
621
722; The file to write
823OutFile " bizhawk_prereqs.exe"
924
10- ; The default installation directory
11- InstallDir $DESKTOP \Example1
12-
1325; Request application privileges for Windows Vista+
1426RequestExecutionLevel admin
1527
You can’t perform that action at this time.
0 commit comments