fix skipIf

This commit is contained in:
2024-06-20 11:42:32 +02:00
parent 1dabd4845b
commit 3a5ef36a2a

View File

@@ -68,9 +68,9 @@ function InstallZip {
[string] $exe,
[string] $app,
[bool] $createSubfolder = $false
[string] $skipIf
[string] $skipIf = $false
)
if (-not (Test-Path -Path $skipIf -PathType Container)) {
if (-not (Test-Path -Path $skipIf -PathType Container) -and $skipIf -ne $false) {
$zipName = [System.IO.Path]::GetFileNameWithoutExtension($zip)
Write-Host "Installing $zipName..."
$targetPath = $env:ProgramFiles