Add a script for installing windows

This commit is contained in:
Manuel Thalmann 2023-06-16 20:24:22 +02:00
parent 6138ad7ffa
commit ac288a913d
4 changed files with 35 additions and 1 deletions
scripts/Windows/Scripts

View file

@ -33,4 +33,16 @@ class Context {
-Wait `
-NoNewWindow;
}
[void] Restore([string]$archivePath, [string]$destinationPath) {
if (-not (Test-Path -PathType Container $destinationPath)) {
New-Item -ItemType Directory "$destinationPath";
}
Start-Process -WorkingDirectory "$destinationPath" `
-FilePath "7z"
-ArgumentList "x" `
-Wait `
-NoNewWindow;
}
}