diff --git a/src/playbook/Executables/AtlasDesktop/1. Software/Remove Edge.ps1 b/src/playbook/Executables/AtlasDesktop/1. Software/Remove Edge.ps1 index 86269dc5b5..9baf3c59af 100644 --- a/src/playbook/Executables/AtlasDesktop/1. Software/Remove Edge.ps1 +++ b/src/playbook/Executables/AtlasDesktop/1. Software/Remove Edge.ps1 @@ -113,7 +113,7 @@ function RemoveEdgeChromium { $uninstallKeyPath = Join-Path -Path $baseKey -ChildPath "Windows\CurrentVersion\Uninstall\Microsoft Edge" if (Test-Path $uninstallKeyPath) { $uninstallString = (Get-ItemProperty -Path $uninstallKeyPath).UninstallString + " --force-uninstall" - Start-Process cmd.exe "/c $uninstallString" -WindowStyle Hidden | Out-Null 2> $null + Start-Process cmd.exe "/c $uninstallString" -WindowStyle Hidden 2>&1 | Out-Null } # remove user data @@ -151,7 +151,7 @@ function RemoveWebView { if (Test-Path $webviewHKLM) {$webviewUninstallKey += $webviewHKLM} foreach ($key in $webviewUninstallKey) { $webviewUninstallString = (Get-ItemProperty -Path $key).UninstallString + " --force-uninstall" - Start-Process cmd.exe "/c $webviewUninstallString" -WindowStyle Hidden | Out-Null 2> $null + Start-Process cmd.exe "/c $webviewUninstallString" -WindowStyle Hidden 2>&1 | Out-Null } } @@ -235,4 +235,4 @@ while (!($continue)) { Clear-Host UninstallAll -Completed \ No newline at end of file +Completed diff --git a/src/playbook/Executables/AtlasModules/Scripts/Modules/Uninstall-MsiexecAppByName/Uninstall-MsiexecAppByName.psm1 b/src/playbook/Executables/AtlasModules/Scripts/Modules/Uninstall-MsiexecAppByName/Uninstall-MsiexecAppByName.psm1 index 0a8efb58b1..d0bb46591a 100644 --- a/src/playbook/Executables/AtlasModules/Scripts/Modules/Uninstall-MsiexecAppByName/Uninstall-MsiexecAppByName.psm1 +++ b/src/playbook/Executables/AtlasModules/Scripts/Modules/Uninstall-MsiexecAppByName/Uninstall-MsiexecAppByName.psm1 @@ -36,7 +36,7 @@ function Uninstall-MsiexecAppByName { if ($uninstallString -like "*MsiExec.exe*") { $foundKey = $key | Split-Path -Leaf Write-Warning "Uninstalling $displayName..." - Start-Process -FilePath "msiexec.exe" -ArgumentList "/qn /X$foundKey REBOOT=ReallySuppress /norestart" | Out-Null 2> $null + Start-Process -FilePath "msiexec.exe" -ArgumentList "/qn /X$foundKey REBOOT=ReallySuppress /norestart" 2>&1 | Out-Null } } } @@ -46,4 +46,4 @@ function Uninstall-MsiexecAppByName { } } -Export-ModuleMember -Function Uninstall-MsiexecAppByName \ No newline at end of file +Export-ModuleMember -Function Uninstall-MsiexecAppByName diff --git a/src/playbook/Executables/CLEANUP.ps1 b/src/playbook/Executables/CLEANUP.ps1 index 312c3627a6..c2937d0301 100644 --- a/src/playbook/Executables/CLEANUP.ps1 +++ b/src/playbook/Executables/CLEANUP.ps1 @@ -39,7 +39,7 @@ function Invoke-AtlasDiskCleanup { Set-ItemProperty -Path $path -Name 'StateFlags0064' -Value $value -Type DWORD } # Run preset 64 (0-65535) - Start-Process -FilePath "cleanmgr.exe" -ArgumentList "/sagerun:64" | Out-Null 2> $null + Start-Process -FilePath "cleanmgr.exe" -ArgumentList "/sagerun:64" 2>&1 | Out-Null } # Check for other installations of Windows diff --git a/src/playbook/Executables/LIBREWOLF.ps1 b/src/playbook/Executables/LIBREWOLF.ps1 index e5ab620eac..c5d3da3d0a 100644 --- a/src/playbook/Executables/LIBREWOLF.ps1 +++ b/src/playbook/Executables/LIBREWOLF.ps1 @@ -41,7 +41,7 @@ if ($NoUpdater) { } Write-Warning "Installing LibreWolf silently" -Start-Process -Wait -FilePath $outputLibrewolf -ArgumentList "/S" | Out-Null 2> $null +Start-Process -Wait -FilePath $outputLibrewolf -ArgumentList "/S" 2>&1 | Out-Null if (!(Test-Path $librewolfPath)) { Write-Host "Installing LibreWolf silently failed." exit 1 @@ -77,4 +77,4 @@ if ($NoUpdater) { Create-Shortcut -Source "$updaterPath\Librewolf-WinUpdater.exe Write-Warning "Removing temporary installer files" Remove-Item "$outputLibrewolf" -Force -if ($NoUpdater) { Remove-Item "$outputLibrewolfUpdater" -Force } \ No newline at end of file +if ($NoUpdater) { Remove-Item "$outputLibrewolfUpdater" -Force } diff --git a/src/playbook/Executables/SOFTWARE.ps1 b/src/playbook/Executables/SOFTWARE.ps1 index 05ff611a99..4773fef01f 100644 --- a/src/playbook/Executables/SOFTWARE.ps1 +++ b/src/playbook/Executables/SOFTWARE.ps1 @@ -16,7 +16,7 @@ Set-Location $tempDir if ($Chrome) { Write-Host "Installing Google Chrome..." & curl.exe -LSs "https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi" -o "$tempDir\chrome.msi" - Start-Process -FilePath "$tempDir\chrome.msi" -WindowStyle Hidden -ArgumentList '/qn' -Wait | Out-Null 2> $null + Start-Process -FilePath "$tempDir\chrome.msi" -WindowStyle Hidden -ArgumentList '/qn' -Wait 2>&1 | Out-Null exit } @@ -29,7 +29,7 @@ if ($Brave) { exit 1 } - & "$tempDir\BraveSetup.exe" /silent /install | Out-Null 2> $null + & "$tempDir\BraveSetup.exe" /silent /install 2>&1 | Out-Null do { $processesFound = Get-Process | Where-Object { "BraveSetup" -contains $_.Name } | Select-Object -ExpandProperty Name @@ -74,21 +74,21 @@ $num = 0; foreach ($a in $vcredists.GetEnumerator()) { # curl is faster than Invoke-WebRequest Write-Host "Installing Visual C++ Runtime $num..." & curl.exe -LSs "$($a.Name)" -o "$vcredist" - Start-Process -FilePath $vcredist -WindowStyle Hidden -ArgumentList $a.Value -Wait | Out-Null 2> $null + Start-Process -FilePath $vcredist -WindowStyle Hidden -ArgumentList $a.Value -Wait 2>&1 | Out-Null } # 7-Zip $website = 'https://7-zip.org/' $download = $website + ((Invoke-WebRequest $website -UseBasicParsing).Links.href | Where-Object { $_ -like "a/7z2301-x64.exe" }) & curl.exe -LSs $download -o "$tempDir\7zip.exe" -Start-Process -FilePath "$tempDir\7zip.exe" -WindowStyle Hidden -ArgumentList '/S' -Wait | Out-Null 2> $null +Start-Process -FilePath "$tempDir\7zip.exe" -WindowStyle Hidden -ArgumentList '/S' -Wait 2>&1 | Out-Null # Legacy DirectX runtimes & curl.exe -LSs "https://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe" -o "$tempDir\directx.exe" Write-Host "Extracting legacy DirectX runtimes..." -Start-Process -FilePath "$tempDir\directx.exe" -WindowStyle Hidden -ArgumentList "/q /c /t:`"$tempDir\directx`"" -Wait | Out-Null 2> $null +Start-Process -FilePath "$tempDir\directx.exe" -WindowStyle Hidden -ArgumentList "/q /c /t:`"$tempDir\directx`"" -Wait 2>&1 | Out-Null Write-Host "Installing legacy DirectX runtimes..." -Start-Process -FilePath "$tempDir\directx\dxsetup.exe" -WindowStyle Hidden -ArgumentList '/silent' -Wait | Out-Null 2> $null +Start-Process -FilePath "$tempDir\directx\dxsetup.exe" -WindowStyle Hidden -ArgumentList '/silent' -Wait 2>&1 | Out-Null # Remove temporary directory -Remove-Item -Path $tempDir -Force -Recurse *>$null \ No newline at end of file +Remove-Item -Path $tempDir -Force -Recurse *>$null