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
If any directory gets Access Denied (due to antivirus), the current function will fail. Antivirus does not allow directory scan for its own directory under "C:\Program Files**" - "C:\Program Files\AntivirusSoftware". This makes all packages that try to install using using this extension also fail since the app can't complete its registration.
unfortunately, using -depth 2 on the ls alias is not possible.
That option was added in PowerShell v5, and we need to be PowerShell v2 compatible.
I am not sure how to resolve this at the top of my head, but I'll look into it when I have a chance.
I tried something like that on a few iterations. Wanting to avoid major change. I vaguely recall those would return partial or null listing.To be ps 2 compatible, you would need to have a top level followed by iterator one dir below ignoring the errors. Or maybe version detection before calls.
EDIT: Tidied up the text here.
AdmiringWorm
transferred this issue from chocolatey-community/chocolatey-packages
Apr 8, 2022
If any directory gets Access Denied (due to antivirus), the current function will fail. Antivirus does not allow directory scan for its own directory under "C:\Program Files**" - "C:\Program Files\AntivirusSoftware". This makes all packages that try to install using using this extension also fail since the app can't complete its registration.
Expected Behavior
Package/Application installs completes successfully.
Current Behavior
Package/Application installs fail when using this function.
Possible Solution
The fix below works but there may be a better method to scan dirs.
For Get-AppInstallLocation.ps1:
line 63 of Get-AppInstallLocation.ps1
Steps to Reproduce (for bugs)
Context
Unable to install any packages using this extension
The text was updated successfully, but these errors were encountered: