-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(#2738) Move setup module to install .Net 4.8 #2933
Conversation
cc7dc8a
to
1c6f66b
Compare
One thing to be aware of before merging this PR: Currently our Test Kitchen environment has Windows Server 2016 and 2019 without .Net 4.8. Both of these Operating Systems require a restart when installing .Net 4.8. This means that the converge step will fail until our Test Kitchen environment is updated. |
1c6f66b
to
36c2389
Compare
36c2389
to
1312612
Compare
As I understand it, we need to get the AMI's used by Test Kitchen updated to have installed .NET 4.8. Let me pick this up and get it sorted. Moving this to draft in the meantime. |
1312612
to
39e9a0a
Compare
As we have found out, the images being used already have .NET 4.8 installed on them, so we should be in a position to continue with this PR. |
This moves the setup module used during install and upgrade to check for and install .Net 4.8 instead of .Net 4.0 The timing of the check/install is moved to before the Chocolatey installation directory is created. This allows for re-running the install.ps1 script if a reboot is required without needing a manual cleanup of the partial installation. This also adds a check for the other reboot required exit code of 1641, and throws the install/upgrade if the installer requires a reboot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description Of Changes
This moves the setup module used during install and upgrade to
check for and install .Net 4.8 instead of .Net 4.0
The timing of the check/install is moved to before the Chocolatey
installation directory is created. This allows for re-running the
install.ps1 script if a reboot is required without needing a manual
cleanup of the partial installation.
This also adds a check for the other reboot required exit code of
1641, and throws the install/upgrade if the installer requires
a reboot.
Motivation and Context
As Chocolatey CLI is being moved to .Net 4.8, it requires insuring that the required framework is installed.
Testing
Testing on Server 2012 R2:
Testing on clean Windows 7 SP1:
install.ps1
script. It installed .net 4.8, did not require a reboot, and installed without issues. Local path to the nupkg specified by setting$env:ChocolateyDownloadUrl
Operating Systems Testing
Change Types Made
Change Checklist
Related Issue
Part of #2738
https://app.clickup.com/t/20540031/PROJ-405