Page 1 of 1

Use of depreciated chocolatey shim in application manager

Posted: Fri Aug 25, 2023 3:14 pm
by sashdown
Hi there,

Is there a concern around the use of cinst as set as a variable on line 11 and line 347 which is depreciated as a shim in chocolatey 2.0.0 and higher ?

This is seemingly the cause of a few errors I am getting back when running update on the agents

Code: Select all

Scanning software installs with [ Google Chrome ]
Matching softwareID found [ 112933105 ] for [ googlechrome ]
Checking Repo cache for  [ googlechrome ]
Install of googlechrome returned -> ['C:\ProgramData\chocolatey\bin\cinst.exe' is not recognized as an internal or external command,
operable program or batch file.]
It appears this and be worked around with the use of chocolatey package choco-shim-redirects which recreates these as symlinks/aliases however i can see this causing slight issues regarding how other commands are parsed from script variables to chocolatey in other steps?

Re: Use of depreciated chocolatey shim in application manager

Posted: Fri Aug 25, 2023 3:40 pm
by Cubert
Oh, yes that's not to be there any more. I'll get that fixed ASAP. May explain a few other issues being reported..


Thanks.


I'll have a fix out later today.

Re: Use of depreciated chocolatey shim in application manager

Posted: Fri Aug 25, 2023 4:37 pm
by Cubert