-
Notifications
You must be signed in to change notification settings - Fork 141
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
[Bug]: VCLibs Version Dependencies are too high in Winget #761
Comments
@unclesam87 , That is a neat piece of code. I'd love to hear what @KnifMelti and @Romanitho think about that modification.
As much as I like it, I do not trust MS.
in the meantime we could reuse the same body of web response from initial web request to get the list of dependencies.
output:
Functions should declare all parameters, that will make testing easier in the future (with Pester in mind). |
It looks really nice, but when it comes to coding I'm a novice and this repo was my first try when it comes to PS (coming from CMD, VB, etc...) as a dinosaur at the age of 61. 😁 "../the newst winget version is requiring an vclib of 14.0.33728.0/.." - doesn't really add up. |
hey - yeah i had this problem on freshly installed win 10 and win 11 machines i am using to test that winget installation crashed when it wasnt their - my own machine is also running an older version of vclibs so i am guessing that they just need it for installation?
what do u mean by declare all parameters? i am very intressted to get better in my coding and to publish it so it every hint to improve is more then welcome - that recommended try and catch is a nice idea - maybe i will try to involve that in my function - i am close to publish my whole code (installation script with many functions as installing winget, winget-autoupdate and installing apps, adding windows features and activating bitlocker, updating machines) - maybe it could be helpfull when i show u the whole code i using right now to get winget to install (as i learned from the many machines we installed in the last 1,5 years with versions of that script, isnt allways an easy way - at least when u trying it with powershell...) |
I can guesstimate, that VC redists in APPX container are nothing new and these are our good old vcredists 20xx in a different wrapper. Q2. what do u mean by declare all parameters? A2. by moving all parameters to definition of all functions F ex:
instead of
Both produce same output. f.ex.
Thanks to that granular control of all tests (not only static linting) we will be able to continue iterative and incremental development. |
it does without any problems - but my problem came up on installing it on an fresh machine as it was then crashing - but i will take this issue to the winget devs itself. to ur programming advise - im not quite sure if i get it right but in may exmaple u would move the variable $VCLLibsVersion outside of the function? |
Sure, BR |
I'm OK to everything that could improve features, code, ... :) |
The problem
I am usuing part of ur code to build my "own" winget installer, while doing i recongized that the newst winget version is requiring an vclib of 14.0.33728.0 as the one u can download on microsoft website is only an 14.0.33228.0 - so i did an short deep dive and found an quite different solution to solve the problem:
as u see i used two functions: one to pull from the newst winget release the dependecy json and then compare that to my installed version - when it isnt their or to old it will download out of the winget release the appx and install that - not quite sure if it is good code (as i am just returning to write my own stuff - so i am pretty open for ideas to improve;)) - but maybe this will help others too
ah and u need this function too to get the winget lastet version
What version of WAU has the issue?
2.0.0
What version of Windows are you using (ex. Windows 11 22H2)?
Windows 10 to Windows 11 24H2
What version of winget are you using?
v1.9.25180
Log information
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: