diff --git a/src/chocolatey.resources/helpers/chocolateyInstaller.psm1 b/src/chocolatey.resources/helpers/chocolateyInstaller.psm1 index 71ce959713..aaf003a8aa 100644 --- a/src/chocolatey.resources/helpers/chocolateyInstaller.psm1 +++ b/src/chocolatey.resources/helpers/chocolateyInstaller.psm1 @@ -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 # @@ -73,7 +73,11 @@ if (Test-Path($extensionsPath)) { } } - if (!$loaded) { Import-Module $path; } + if (!$loaded) { + if ($fileNameWithoutExtension -ne "chocolateygui.licensed") { + Import-Module $path; + } + } } catch { if ($env:ChocolateyPowerShellHost -eq 'true') { Write-Warning "Import failed for '$path'. Error: '$_'"