From aea3edfef78d4e4c8e295cb25017d28d18fdbe3d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 29 Jul 2023 11:47:32 +0200 Subject: [PATCH] Add scripts for installing and configuring MSEdgeRedirect --- scripts/Windows/Collections/Personal.ps1 | 2 +- scripts/Windows/Config/MSEdgeRedirect/Install.ps1 | 12 ++++++++++++ scripts/Windows/Software/MSEdgeRedirect/Install.ps1 | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 scripts/Windows/Config/MSEdgeRedirect/Install.ps1 create mode 100644 scripts/Windows/Software/MSEdgeRedirect/Install.ps1 diff --git a/scripts/Windows/Collections/Personal.ps1 b/scripts/Windows/Collections/Personal.ps1 index 70811e2a..76b9cc3b 100644 --- a/scripts/Windows/Collections/Personal.ps1 +++ b/scripts/Windows/Collections/Personal.ps1 @@ -68,7 +68,7 @@ function Restore-PersonalApps([Context] $context) { # Browsing Install-Firefox $context; - choco install -y MSEdgeRedirect; + . "$PSScriptRoot/../Software/MSEdgeRedirect/Install.ps1"; winget install --accept-source-agreements --accept-package-agreements -e --id Brave.Brave; winget install --accept-source-agreements --accept-package-agreements -e --id Brave.Brave.Beta; winget install --accept-source-agreements --accept-package-agreements -e --id Brave.Brave.Nightly; diff --git a/scripts/Windows/Config/MSEdgeRedirect/Install.ps1 b/scripts/Windows/Config/MSEdgeRedirect/Install.ps1 new file mode 100644 index 00000000..b6f6db34 --- /dev/null +++ b/scripts/Windows/Config/MSEdgeRedirect/Install.ps1 @@ -0,0 +1,12 @@ +#!/bin/pwsh +$configPath = "HKLM:\SOFTWARE\Robert Maehl Software\MSEdgeRedirect"; +Set-ItemProperty $configPath -Name "NoBing" -Value 1; +Set-ItemProperty $configPath -Name "NoImgs" -Value 1; +Set-ItemProperty $configPath -Name "NoNews" -Value 1; +Set-ItemProperty $configPath -Name "NoPDFs" -Value 1; + +Set-ItemProperty $configPath -Name "Search" -Value "StartPage"; +Set-ItemProperty $configPath -Name "Images" -Value "Custom"; +Set-ItemProperty $configPath -Name "ImagePath" "https://startpage.com/sp/search?cat=images&query="; +Set-ItemProperty $configPath -Name "News" -Value "Google"; +Set-ItemProperty $configPath -Name "PDFApp" -Value "C:\Program Files\Mozilla Firefox\firefox.exe"; diff --git a/scripts/Windows/Software/MSEdgeRedirect/Install.ps1 b/scripts/Windows/Software/MSEdgeRedirect/Install.ps1 new file mode 100644 index 00000000..96396317 --- /dev/null +++ b/scripts/Windows/Software/MSEdgeRedirect/Install.ps1 @@ -0,0 +1,3 @@ +#!/bin/pwsh +choco install -y MSEdgeRedirect; +. "$PSScriptRoot/../../Config/MSEdgeRedirect/Install.ps1";