From a85bc47f1ce9c5e5b5b7906309ab94c3ea494d77 Mon Sep 17 00:00:00 2001 From: Rui Lopes Date: Sat, 27 Apr 2019 18:37:17 +0100 Subject: [PATCH] set the default browser --- provision/windows/use-chocolatey-repository.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/provision/windows/use-chocolatey-repository.ps1 b/provision/windows/use-chocolatey-repository.ps1 index 6975231..e312f2b 100644 --- a/provision/windows/use-chocolatey-repository.ps1 +++ b/provision/windows/use-chocolatey-repository.ps1 @@ -27,6 +27,10 @@ cp -Force GoogleChrome-external_extensions.json (Get-Item "$chromeLocation\*\def cp -Force GoogleChrome-master_preferences.json "$chromeLocation\master_preferences" cp -Force GoogleChrome-master_bookmarks.html "$chromeLocation\master_bookmarks.html" +# set the default browser. +choco install -y SetDefaultBrowser +SetDefaultBrowser HKLM "Google Chrome" + # see https://github.com/chocolatey/choco/wiki/CreatePackages # see https://docs.nuget.org/docs/reference/nuspec-reference Write-Host 'Creating the graceful-terminating-console-application-windows chocolatey package...'