You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: winget-install.ps1
+66-39Lines changed: 66 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
<#PSScriptInfo
2
2
3
-
.VERSION 5.1.0
3
+
.VERSION 5.2.0
4
4
5
5
.GUID 3b581edb-5d90-4fa1-ba15-4f2377275463
6
6
@@ -58,22 +58,23 @@
58
58
[Version 5.0.4] - Fixed bug with UpdateSelf function. Fixed bug when installing that may cause NuGet prompt to not be suppressed. Introduced Install-NuGetIfRequired function.
[Version 5.0.6] - Fixed installation issue on Server 2022 by changing installation method to same as Server 2019. Fixes #62.
61
-
[Version 5.0.7] - Added the literal %LOCALAPPDATA% path to the user environment PATH to prevent issues when usernames or user profile paths change, or when using non-Latin characters. Fixes #45. Added support to catch Get-CimInstance errors, lately occuring in Windows Sandbox. Removed Server 2022 changes introduced in version 5.0.6. Register winget command in all OS versions except Server 2019. Fixes #57.
61
+
[Version 5.0.7] - Added the literal %LOCALAPPDATA% path to the user environment PATH to prevent issues when usernames or user profile paths change, or when using non-Latin characters. Fixes #45. Added support to catch Get-CimInstance errors, lately occurring in Windows Sandbox. Removed Server 2022 changes introduced in version 5.0.6. Register winget command in all OS versions except Server 2019. Fixes #57.
62
62
[Version 5.0.8] - Fixed an issue on Server 2019 where the script failed if the dependency was already installed by adding library/dependency version check functionality. Fixes #61. Thank you to @MatthiasGuelck for the fix.
63
63
[Version 5.0.9] - Improved script output. Fixed error messages caused when checking for an existing library/dependency version with multiple installed variants by choosing highest version number of the installed dependency.
64
64
[Version 5.1.0] - Added support for installing and using winget under the SYSTEM context. Thanks to @GraphicHealer for the contribution.
65
+
[Version 5.2.0] - Added support for installing winget dependencies from winget-cli GitHub repository. Added fix for issue #66 and #65. Fixed version detection for winget dependencies. Thanks to @JonathanPitre for the contribution.
65
66
66
67
#>
67
68
68
69
<#
69
70
.SYNOPSIS
70
-
Downloads and installs the latest version of winget and its dependencies.
71
+
Downloads and installs the latest version of winget and its dependencies.
71
72
.DESCRIPTION
72
-
Downloads and installs the latest version of winget and its dependencies.
73
+
Downloads and installs the latest version of winget and its dependencies.
73
74
74
75
This script is designed to be straightforward and easy to use, removing the hassle of manually downloading, installing, and configuring winget. This function should be run with administrative privileges.
75
76
.EXAMPLE
76
-
winget-install
77
+
winget-install
77
78
.PARAMETERDebug
78
79
Enables debug mode, which shows additional information for debugging.
79
80
.PARAMETERForce
@@ -93,10 +94,10 @@ This script is designed to be straightforward and easy to use, removing the hass
93
94
.PARAMETERHelp
94
95
Displays the full help information for the script.
0 commit comments