diff --git a/Windows/Chocolatey/README.md b/Windows/Chocolatey/README.md index 758b892409c51156e8de6daaf030822ec8f6a3e3..c45a42c39d1e8350af82d99c4d0b03b64ab3323f 100644 --- a/Windows/Chocolatey/README.md +++ b/Windows/Chocolatey/README.md @@ -119,10 +119,10 @@ This one-liner download and install does the following: 3. To run the script, you need to temporarily change the PowerShell execution policy to allow script execution. You can do this by using the following one-liner code: ```powershell - Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force; $tempPath = [System.IO.Path]::Combine([System.Environment]::GetFolderPath('Desktop')); $script1 = "$tempPath\ChocolateyUpgrade.ps1"; $script2 = "$tempPath\Install-Configure-ScheduleChocolateyUpgrade.ps1"; $configFile = "$tempPath\config.json"; Invoke-WebRequest -Uri "https://gitlab.liu.se/andli86/snippets/-/raw/master/Windows/Chocolatey/ChocolateyUpgrade.ps1" -OutFile $script1; Invoke-WebRequest -Uri "https://gitlab.liu.se/andli86/snippets/-/raw/master/Windows/Chocolatey/Install-Configure-ScheduleChocolateyUpgrade.ps1" -OutFile $script2; & $script2; Remove-Item -Path $script1, $script2 -Force; Write-Output "Check the log file at C:\Install Logs\ChocolateyInstall.log" + Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force; $tempPath = [System.IO.Path]::Combine([System.Environment]::GetFolderPath('Desktop')); $script1 = "$tempPath\ChocolateyUpgrade.ps1"; $script2 = "$tempPath\InstallConfigureChocolatey.ps1"; $script3 = "$tempPath\ScheduleChocolateyUpgrade.ps1"; $configFile = "$tempPath\config.json"; Invoke-WebRequest -Uri "https://gitlab.liu.se/andli86/snippets/-/raw/master/Windows/Chocolatey/ChocolateyUpgrade.ps1" -OutFile $script1; Invoke-WebRequest -Uri "https://gitlab.liu.se/andli86/snippets/-/raw/master/Windows/Chocolatey/InstallConfigureChocolatey.ps1" -OutFile $script2; Invoke-WebRequest -Uri "https://gitlab.liu.se/andli86/snippets/-/raw/master/Windows/Chocolatey/ScheduleChocolateyUpgrade.ps1" -OutFile $script3; & $script2; $script3; Remove-Item -Path $script1, $script2 $script3 -Force; Write-Output "Check the log file at C:\Install Logs\*.log" ``` -4. The config.json file with all your own settings, is not removed so you can save and reuse it on other machines. +4. The config.json file with all your own settings, is not removed so you can save and reuse it on other Windows machines. ## Manual Installation 1. **Download the two script files to the computer**: