File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ foreach ($path in $paths) {
3030
3131# Execute the EXE-based installer
3232if (-not $installed ) {
33- Write-Host " Version $target not found. Attempting to install from $tempExe ..."
33+ Write-Output " Version $target not found. Attempting to install from $tempExe ..."
3434 try {
3535 # "remote" files may get marked as blocked. Bypass that nonsense
3636 Unblock-File - Path $tempExe - ErrorAction SilentlyContinue
@@ -49,7 +49,7 @@ if (-not $installed) {
4949 foreach ($path in $paths ) { if (Test-Path $path ) { $verified = $true } }
5050
5151 if ($verified ) {
52- Write-Host " Installation successful (Exit Code: $exitCode )."
52+ Write-Output " Installation successful (Exit Code: $exitCode )."
5353 exit 0
5454 } else {
5555 Write-Error " Installer finished (Exit Code: $exitCode ) but registry keys not found."
@@ -60,6 +60,6 @@ if (-not $installed) {
6060 exit 1
6161 }
6262} else {
63- Write-Host " Notepad++ $target already installed. Skipping."
63+ Write-Output " Notepad++ $target already installed. Skipping."
6464 exit 0
6565}
You can’t perform that action at this time.
0 commit comments