-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathInstall.bat
More file actions
24 lines (21 loc) · 741 Bytes
/
Install.bat
File metadata and controls
24 lines (21 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
:: ============================================
:: OpenCut Installer - Double-click to install
:: ============================================
:: This launches the PowerShell installer with elevated privileges.
:: If prompted by UAC, click "Yes" to allow.
echo.
echo OpenCut Installer
echo =================
echo.
:: Check if we have admin rights
net session >nul 2>&1
if %errorLevel% == 0 (
echo Running as Administrator...
powershell -ExecutionPolicy Bypass -File "%~dp0Install.ps1"
) else (
echo Requesting Administrator privileges...
powershell -Command "Start-Process cmd -ArgumentList '/c cd /d \"%~dp0\" && powershell -ExecutionPolicy Bypass -File \"%~dp0Install.ps1\"' -Verb RunAs"
)
echo.
pause