forked from EasyHook/EasyHook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
15 lines (13 loc) · 735 Bytes
/
build.bat
File metadata and controls
15 lines (13 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@ECHO OFF
SET ThisScriptsDirectory=%~dp0
SET PowerShellScriptPath=%ThisScriptsDirectory%Build.ps1
SET vsVer = %1
SET ver = %2
IF "%vsVer%"=="" SET vsVer="vs2015"
IF "%ver%"=="" SET ver="2.8.0.0"
REM In current console window
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%PowerShellScriptPath%' '%vsVer%' '%ver%'";
REM In new Powershell window
REM PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""%PowerShellScriptPath%""'}";
REM As Admin:
REM PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""%PowerShellScriptPath%""' -Verb RunAs}";