File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,25 @@ process {
9696 choco source add - n ' ChocolateyCore' - s " $ ( (Get-NexusRepository - Name ' ChocolateyCore' ).url) /index.json" -- priority 0 -- admin- only
9797
9898 # Install a non-IE browser for browsing the Nexus web portal.
99- if (-not (Test-Path ' C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe' )) {
99+ if (Test-Path ' C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe' ){
100+ Write-Host " Syncing Microsoft Edge, to bring it under Chocolatey management"
101+ choco sync -- id= " Microsoft Edge" -- package- id= " microsoft-edge"
102+ if ($LASTEXITCODE -eq 0 ) {
103+ if (Test-Path ' HKLM:\SOFTWARE\Microsoft\Edge' ) {
104+ $RegArgs = @ {
105+ Path = ' HKLM:\SOFTWARE\Microsoft\Edge\'
106+ Name = ' HideFirstRunExperience'
107+ Type = ' Dword'
108+ Value = 1
109+ Force = $true
110+ }
111+ $null = Set-ItemProperty @RegArgs
112+ }
113+ }
114+ }
115+ else {
100116 Write-Host " Installing Microsoft Edge, to allow viewing the Nexus site"
101- choco install microsoft- edge - y -- source ChocolateyInternal
117+ choco install microsoft- edge - y -- source ChocolateyCore
102118 if ($LASTEXITCODE -eq 0 ) {
103119 if (Test-Path ' HKLM:\SOFTWARE\Microsoft\Edge' ) {
104120 $RegArgs = @ {
You can’t perform that action at this time.
0 commit comments