-
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
Helper for retrieving installed applications list #396
Comments
As I can't wait until every package maintainers will update their scripts (it will take a long time I guess) I've also patched chocolateyScriptRunner.ps1 to automatically fix scripts. I've added these lines:
before these:
|
I've been saying it is bad since before we turned on moderation. With moderation on we are able to inspect and suggest using registry searches instead. Thanks for the suggestion. |
jre8 flashplayeractivex & flashplayerplugin They still use Win32_Product class. And I'm still unable to install/update them without patching install scripts. Does moderation work? My current patch code (modified for install scripts which import something from another scripts):
|
Some of these items fall under trusted packages. We have not yet added this to the list of a requirement not to use. It's still considered a guideline and usually something we catch to ask folks not to use.
You know you could stop patching each package and instead build an extension that would fix those automatically in the interim. |
The code does it automatically (it's placed in chocolateyScriptRunner.ps1) |
Perfect. Do you want to follow up with a PR? |
About 60 packages use "Get-WmiObject -Class Win32_Product" to check if a package is already installed https://www.google.com/search?q=Win32_Product%20site%3Achocolatey.org
"Win32_Product" class has serious performance issues https://www.google.com/search?q=win32_product%20issues
It forces Windows Installer to reconfigure every application installed through MSI (see Windows event log).
Depending on installed applications it may take more than 30 minutes to execute a request.
It may be replaced by direct registry access and a required code is large enough to create a suitable helper.
Here is an example of such helper:
"Get-WmiObject -Class Win32_Product" or "gwmi win32_product" may be directly replaced with "Get-Installed" call.
Also this implementation can return applications installed through non-MSI installer systems ("Get-Installed ShowNonMSI").
The text was updated successfully, but these errors were encountered: