Skip to content

Commit

Permalink
(chocolatey#2078) Skip importing Chocolatey GUI Extension
Browse files Browse the repository at this point in the history
The Chocolatey GUI Extension is a "special" extension in the sense that
it isn't intended to work with Chocolatey directly, but it is shipped as
a "normal" Chocolatey extension. We don't want to load the
chocolateygui.licensed.dll into the choco.exe process, but rather leave
it alone, and allow Chocolatey GUI to load it when required.

We are already skipping one existing folder when looking for extension
paths, so this has been extended to include the chocolateygui foler.
  • Loading branch information
gep13 committed Apr 14, 2021
1 parent 0747595 commit bb5ce9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chocolatey.resources/helpers/chocolateyInstaller.psm1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright © 2017 Chocolatey Software, Inc.
# Copyright © 2017 Chocolatey Software, Inc.
# Copyright © 2015 - 2017 RealDimensions Software, LLC
# Copyright © 2011 - 2015 RealDimensions Software, LLC & original authors/contributors from https://github.com/chocolatey/chocolatey
#
Expand Down Expand Up @@ -58,7 +58,7 @@ if (Test-Path($extensionsPath)) {
Write-Debug 'Loading community extensions'
Get-ChildItem $extensionsPath -recurse -filter "*.dll" | Select -ExpandProperty FullName | % {
$path = $_;
if ($path.Contains("extensions\chocolatey\lib-synced")) { continue }
if ($path.Contains("extensions\chocolateygui") -Or $path.Contains("extensions\chocolatey\lib-synced")) { continue }

try {
Write-Debug "Importing '$path'";
Expand Down

0 comments on commit bb5ce9c

Please sign in to comment.