PortValhalla/winiso/winfs/Scripts/Startup.ps1

4 lines
216 B
PowerShell

$drives = & wmic volume get "DriveLetter,Label";
$env:INSTALLER_DRIVE = $($($drives | Select-String -Pattern "winiso-valhalla") -split "\s+")[0];
Set-Location (Join-Path $env:INSTALLER_DRIVE $env:LOCAL_PROJECT_PATH)