diff --git a/install.ps1 b/install.ps1 index 22a62669..b4a62da9 100644 --- a/install.ps1 +++ b/install.ps1 @@ -163,7 +163,7 @@ if ($InstallMethod -eq "standalone") { } # Install uninstall script -if (Test-Path "$ScriptDir\uninstall.ps1") { +if ($ScriptDir -and (Test-Path "$ScriptDir\uninstall.ps1")) { # Only copy if source and destination are different if ($ScriptDir -ne $CcsDir) { Copy-Item "$ScriptDir\uninstall.ps1" "$CcsDir\uninstall.ps1" -Force