From ee370ffd0a7f4f6c62f8150fef6a84150c7d7ee3 Mon Sep 17 00:00:00 2001 From: Paul Broadwith Date: Fri, 8 Nov 2024 07:46:04 +0000 Subject: [PATCH] (GH-2334) Stop relaunch as Admin --- .../notepadplusplus.commandline/tools/chocolateyInstall.ps1 | 3 +-- automatic/notepadplusplus.install/tools/chocolateyInstall.ps1 | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/automatic/notepadplusplus.commandline/tools/chocolateyInstall.ps1 b/automatic/notepadplusplus.commandline/tools/chocolateyInstall.ps1 index e6d2c14b419..7bbbac0c083 100644 --- a/automatic/notepadplusplus.commandline/tools/chocolateyInstall.ps1 +++ b/automatic/notepadplusplus.commandline/tools/chocolateyInstall.ps1 @@ -18,6 +18,5 @@ Get-ChocolateyUnzip @packageArgs Remove-Item $toolsPath\*.zip -ea 0 if ($programRunning -and (Test-Path $programRunning)) { - Write-Host "Running stopped program" - Start-Process $programRunning + Write-Host "Please reopen Notepad++ to continue using." } diff --git a/automatic/notepadplusplus.install/tools/chocolateyInstall.ps1 b/automatic/notepadplusplus.install/tools/chocolateyInstall.ps1 index 284eee9eae8..41e3761c735 100644 --- a/automatic/notepadplusplus.install/tools/chocolateyInstall.ps1 +++ b/automatic/notepadplusplus.install/tools/chocolateyInstall.ps1 @@ -39,6 +39,5 @@ Write-Host "$packageName installed to '$installLocation'" Install-BinFile -Path "$installLocation\notepad++.exe" -Name 'notepad++' if ($programRunning -and (Test-Path $programRunning)) { - Write-Host "Running stopped program" - Start-Process $programRunning + Write-Host "Please reopen Notepad++ to continue using." }