5 lines
374 B
Batchfile
5 lines
374 B
Batchfile
@echo off
|
|
setlocal DisableDelayedExpansion
|
|
set "LIGHTWEIGHT_PANEL_SOURCE=%~dp0"
|
|
powershell.exe -NoLogo -NoProfile -STA -Command "try { $ErrorActionPreference='Stop'; $root=$env:LIGHTWEIGHT_PANEL_SOURCE; $text=[IO.File]::ReadAllText((Join-Path $root 'Install.ps1')); & ([scriptblock]::Create($text)) -SourceDir $root } catch { Write-Error $_; exit 1 }"
|
|
if errorlevel 1 pause
|