chocolatey / chocolatey-licensed-issues

Issues for Licensed Editions of Chocolatey
19 stars 13 forks source link

PowerShell - `Get-ChocolateyUnzip` fails to unzip when destination is root of a drive #284

Closed sync-by-unito[bot] closed 2 years ago

sync-by-unito[bot] commented 2 years ago

Description

When attempting to unzip a file to the root of a drive C:\, Get-ChocolateyUnzip fails with error: ERROR: The path is not of a legal form.

Steps To Reproduce

  1. Create a Chocolatey package with the following chocolateyInstall.ps1:
$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
Get-ChocolateyUnzip "$toolsDir\test.zip" "C:\"
  1. create a test.zip file with some contents
  2. choco pack the package
  3. choco install the package

Output Log

Full Log Output

```sh 2021-12-13 09:39:04,696 1264 [DEBUG] - XmlConfiguration is now operational 2021-12-13 09:39:04,712 1264 [DEBUG] - Evaluating license file found at 'C:\ProgramData\chocolatey\license\chocolatey.license.xml' 2021-12-13 09:39:05,743 1264 [DEBUG] - Loading Licensed Extensions and Commands 2021-12-13 09:39:05,806 1264 [INFO ] - ============================================================ 2021-12-13 09:39:05,915 1264 [INFO ] - Chocolatey v0.11.3 Business 2021-12-13 09:39:05,930 1264 [DEBUG] - Chocolatey is running on Windows v 10.0.19043.0 2021-12-13 09:39:05,930 1264 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old". 2021-12-13 09:39:05,930 1264 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old". 2021-12-13 09:39:05,930 1264 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install test -s . 2021-12-13 09:39:05,930 1264 [DEBUG] - Received arguments: install test -s . 2021-12-13 09:39:05,993 1264 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage. 2021-12-13 09:39:05,993 1264 [DEBUG] - CountdownTask is now ready and waiting for PostRunMessage. 2021-12-13 09:39:05,993 1264 [DEBUG] - Terminal services setup not necessary for this session. 2021-12-13 09:39:05,993 1264 [DEBUG] - SynchronizeTask is now ready and waiting for PreRunMessage. 2021-12-13 09:39:05,993 1264 [DEBUG] - PackagesInProgramsAndFeaturesTask is now ready and waiting for PostRunMessage. 2021-12-13 09:39:05,993 1264 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers... 2021-12-13 09:39:06,009 1264 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed... 2021-12-13 09:39:06,009 1264 [DEBUG] - [Synchronize] Updating packages with Programs and Features 2021-12-13 09:39:06,009 1264 [DEBUG] - [Synchronize] Currently only supports removals. Soon will handle updates. 2021-12-13 09:39:06,133 1264 [DEBUG] - chocolatey 0.11.3 2021-12-13 09:39:06,149 1264 [DEBUG] - chocolatey-core.extension 1.3.5.1 2021-12-13 09:39:06,164 1264 [DEBUG] - chocolatey-license-business 0.1.0 2021-12-13 09:39:06,164 1264 [DEBUG] - chocolatey.extension 3.0.0 2021-12-13 09:39:06,164 1264 [DEBUG] - notepadplusplus 8.1.9.3 2021-12-13 09:39:06,181 1264 [DEBUG] - notepadplusplus.install 8.1.9.3 2021-12-13 09:39:06,290 1264 [DEBUG] - Performing validation checks. 2021-12-13 09:39:06,290 1264 [DEBUG] - Global Configuration Validation Checks: 2021-12-13 09:39:06,290 1264 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked 2021-12-13 09:39:06,290 1264 [DEBUG] - System State Validation Checks: 2021-12-13 09:39:06,290 1264 [DEBUG] - Reboot Requirement Checks: 2021-12-13 09:39:06,290 1264 [DEBUG] - - Pending Computer Rename = Checked 2021-12-13 09:39:06,305 1264 [DEBUG] - - Pending Component Based Servicing = Checked 2021-12-13 09:39:06,305 1264 [DEBUG] - - Pending Windows Auto Update = Checked 2021-12-13 09:39:06,305 1264 [DEBUG] - - Pending File Rename Operations = Checked 2021-12-13 09:39:06,305 1264 [DEBUG] - - Pending Windows Package Installer = Checked 2021-12-13 09:39:06,305 1264 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked 2021-12-13 09:39:06,305 1264 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s). 2021-12-13 09:39:06,305 1264 [DEBUG] - The source '.' evaluated to a 'normal' source type 2021-12-13 09:39:06,321 1264 [DEBUG] - NOTE: Hiding sensitive configuration data! Please double and triple check to be sure no sensitive data is shown, especially if copying output to a gist for review. 2021-12-13 09:39:06,337 1264 [DEBUG] - Configuration: MaximumDownloadRateBitsPerSecond='0'| MaximumDownloadRateBitsPerSecondAutoSet='False'| LicensedInformation.LicenseType='Business'| LicensedInformation.LicenseIsValid='True'| LicensedInformation.LicenseIsTrial='False'| LicensedInformation.PauseInTrial='False'| LicensedInformation.LicenseUserName='Chocolatey Dev Team Business [50] (dev[at REDACTED])'| LicensedInformation.LicenseExpirationDate='4/3/9999 12:00:00 AM'| LicensedInformation.LicensedVersion='3.0.0.0'| ChocolateyVersion.Version='0.11.3.0'| ChocolateyVersion.PackageReleaseVersion='0'| LicensedFeatures.UseDownloadCache='True'| LicensedFeatures.AllowSynchronization='True'| LicensedFeatures.UseBackgroundService='False'| LicensedFeatures.UseBackgroundServiceWithSelfServiceSourcesOnly='True'| LicensedFeatures.UseBackgroundServiceWithNonAdministratorsOnly='False'| LicensedFeatures.UseBackgroundServiceInteractively='False'| LicensedFeatures.UseBackgroundServiceWithEmptySessions='True'| LicensedFeatures.AllowBackgroundServiceUninstallsFromUserInstallsOnly='False'| LicensedFeatures.AllowPreviewFeatures='False'| LicensedFeatures.ShowAllPackagesInProgramsAndFeatures='False'| LicensedFeatures.AdminOnlyExecutionForAllChocolateyCommands='False'| LicensedFeatures.AdminOnlyExecutionForNewCommand='False'| LicensedFeatures.AdminOnlyExecutionForDownloadCommand='False'| LicensedFeatures.ReduceInstalledPackageSize='True'| LicensedFeatures.ReduceOnlyNupkgSize='False'| LicensedFeatures.UseLocalSystemForServiceInstalls='True'| LicensedFeatures.WarnOnUpcomingLicenseExpiration='True'| LicensedFeatures.UseChocolateyCentralManagement='False'| LicensedFeatures.UseChocolateyCentralManagementDeployments='False'| LicensedNewCommand.UseOriginalFilesLocation='False'| LicensedNewCommand.PauseOnError='False'| LicensedNewCommand.BuildPackage='False'| LicensedNewCommand.GeneratePackagesFromSoftwareInstalls='False'| LicensedNewCommand.IncludeArchitectureInPackageId='False'| LicensedDownloadCommand.Internalize='False'| LicensedDownloadCommand.AppendUseOriginalLocation='True'| LicensedDownloadCommand.InternalizeAnyUrlFound='False'| LicensedDownloadCommand.DownloadInstalledPackages='False'| LicensedDownloadCommand.IgnoreUnfoundPackages='False'| LicensedConvertCommand.IncludeAll='False'| LicensedConvertCommand.IncludeDependencies='False'| LicensedPushCommand.IntuneAuthenticationUrl='https://login.microsoftonline.com'| LicensedPushCommand.IntuneApiUrl='https://graph.microsoft.com'| LicensedPushCommand.IntuneRetryIntervalInSeconds='5'| LicensedPushCommand.IntuneUploadTimeoutInSeconds='600'| LicensedPushCommand.IntuneUploadChunkSizeInMegabytes='10'| LicensedListCommand.ShowAuditInformation='False'| LicensedListCommand.ShowDisplayVersion='False'| LicensedUninstallCommand.FromProgramsAndFeatures='False'| VirusConfiguration.VirusCheckMinimumPositives='4'| VirusConfiguration.VirusScannerType='Generic'| VirusConfiguration.GenericVirusScannerArgs=''[[File]]''| VirusConfiguration.GenericVirusScannerValidExitCodes='0'| VirusConfiguration.GenericVirusScannerTimeoutInSeconds='120'| LicensedServiceInstaller.DefaultUserName='ChocolateyLocalAdmin'| CentralManagementConfiguration.ReportPackagesTimerIntervalInSeconds='1800'| CentralManagementConfiguration.ReceiveTimeoutInSeconds='30'| CentralManagementConfiguration.SendTimeoutInSeconds='30'| CentralManagementConfiguration.CertificateValidationMode='PeerOrChainTrust'| CentralManagementConfiguration.MaxReceiveMessageSizeInBytes='2147483647'| CentralManagementConfiguration.DeploymentCheckTimerIntervalInSeconds='180'| CommandName='install'|CacheLocation='C:\ProgramData\choco-cache'| ContainsLegacyPackageInstalls='True'| CommandExecutionTimeoutSeconds='14400'|WebRequestTimeoutSeconds='30'| Sources='.'|SourceType='normal'|Debug='False'|Verbose='False'| Trace='False'|Force='False'|Noop='False'|HelpRequested='False'| UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'| PromptForConfirmation='False'|AcceptLicense='False'| AllowUnofficialBuild='False'|Input='test'|AllVersions='False'| SkipPackageInstallProvider='False'|PackageNames='test'| Prerelease='False'|ForceX86='False'|OverrideArguments='False'| NotSilent='False'|ApplyPackageParametersToDependencies='False'| ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'| AllowMultipleVersions='False'|AllowDowngrade='False'| ForceDependencies='False'|Information.PlatformType='Windows'| Information.PlatformVersion='10.0.19043.0'| Information.PlatformName='Windows 10'| Information.ChocolateyVersion='0.11.3.0'| Information.ChocolateyProductVersion='0.11.3'| Information.FullName='choco, Version=0.11.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'| Information.Is64BitOperatingSystem='True'| Information.Is64BitProcess='True'|Information.IsInteractive='True'| Information.UserName='vagrant'|Information.UserDomainName='WINDOWS10'| Information.IsUserAdministrator='True'| Information.IsUserSystemAccount='False'| Information.IsUserRemoteDesktop='False'| Information.IsUserRemote='True'| Information.IsProcessElevated='True'| Information.IsLicensedVersion='True'| Information.LicenseType='Business'| Information.CurrentDirectory='C:\temp'|Features.AutoUninstaller='True'| Features.ChecksumFiles='True'|Features.AllowEmptyChecksums='False'| Features.AllowEmptyChecksumsSecure='True'| Features.FailOnAutoUninstaller='False'| Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'| Features.LogEnvironmentValues='True'|Features.LogWithoutColor='False'| Features.VirusCheck='False'| Features.FailOnInvalidOrMissingLicense='False'| Features.IgnoreInvalidOptionsSwitches='True'| Features.UsePackageExitCodes='True'| Features.UseEnhancedExitCodes='False'| Features.UseFipsCompliantChecksums='False'| Features.ShowNonElevatedWarnings='True'| Features.ShowDownloadProgress='False'| Features.StopOnFirstPackageFailure='False'| Features.UseRememberedArgumentsForUpgrades='False'| Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'| Features.SkipPackageUpgradesWhenNotInstalled='False'| Features.RemovePackageInformationOnUninstall='False'| Features.ExitOnRebootDetected='False'| Features.LogValidationResultsOnWarnings='False'| Features.UsePackageRepositoryOptimizations='True'| Features.ScriptsCheckLastExitCode='False'| ListCommand.LocalOnly='False'| ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'| ListCommand.PageSize='25'|ListCommand.Exact='False'| ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'| ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'| ListCommand.ApprovedOnly='False'| ListCommand.DownloadCacheAvailable='False'| ListCommand.NotBroken='False'| ListCommand.IncludeVersionOverrides='False'| UpgradeCommand.FailOnUnfound='False'| UpgradeCommand.FailOnNotInstalled='False'| UpgradeCommand.NotifyOnlyAvailableUpgrades='False'| UpgradeCommand.ExcludePrerelease='False'| NewCommand.AutomaticPackage='False'| NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'| SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'| SourceCommand.AllowSelfService='False'| SourceCommand.VisibleToAdminsOnly='False'| FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'| ApiKeyCommand.Remove='False'|PinCommand.Command='unknown'| OutdatedCommand.IgnorePinned='False'| ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'| 2021-12-13 09:39:06,337 1264 [DEBUG] - _ Chocolatey:ProChocolateyInstallCommand - Normal Run Mode _ 2021-12-13 09:39:06,337 1264 [INFO ] - Installing the following packages: 2021-12-13 09:39:06,352 1264 [INFO ] - test 2021-12-13 09:39:06,352 1264 [INFO ] - By installing, you accept licenses for the packages. 2021-12-13 09:39:06,352 1264 [DEBUG] - Current environment values (may contain sensitive data): 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'Path'='C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps;' ('User') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'TEMP'='C:\Users\vagrant\AppData\Local\Temp' ('User') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'TMP'='C:\Users\vagrant\AppData\Local\Temp' ('User') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'OneDrive'='C:\Users\vagrant\OneDrive' ('User') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'ChocolateyLastPathUpdate'='132838819900106009' ('User') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'trigger'='1' ('User') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'DriverData'='C:\Windows\System32\Drivers\DriverData' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'OS'='Windows_NT' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'Path'='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'PSModulePath'='C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'windir'='C:\Windows' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='4' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 158 Stepping 13, GenuineIntel' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'PROCESSOR_REVISION'='9e0d' ('Machine') 2021-12-13 09:39:06,352 1264 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine') 2021-12-13 09:39:06,385 1264 [DEBUG] - Resolving reference to chocolatey.licensed... 2021-12-13 09:39:06,400 1264 [DEBUG] - Using '.'. 2021-12-13 09:39:06,400 1264 [DEBUG] - - Supports prereleases? 'True'. 2021-12-13 09:39:06,400 1264 [DEBUG] - - Is ServiceBased? 'False'. 2021-12-13 09:39:06,400 1264 [DEBUG] - Package 'test' found on source '.' 2021-12-13 09:39:06,446 1264 [INFO ] - [NuGet] Installing 'test 1.0.0'. 2021-12-13 09:39:06,462 1264 [DEBUG] - [NuGet] Added file 'chocolateyinstall.ps1' to folder 'test\tools'. 2021-12-13 09:39:06,462 1264 [DEBUG] - [NuGet] Added file 'chocolateyinstall.ps1.bak' to folder 'test\tools'. 2021-12-13 09:39:06,462 1264 [DEBUG] - [NuGet] Added file 'mine.zip' to folder 'test\tools'. 2021-12-13 09:39:06,462 1264 [DEBUG] - [NuGet] Added file 'test.nupkg' to folder 'test'. 2021-12-13 09:39:06,713 1264 [DEBUG] - [NuGet] Added file 'test.nuspec' to folder 'test'. 2021-12-13 09:39:06,713 1264 [INFO ] - [NuGet] Successfully installed 'test 1.0.0'. 2021-12-13 09:39:06,713 1264 [INFO ] - test v1.0.0 2021-12-13 09:39:06,727 1264 [INFO ] - test package files install completed. Performing other installation steps. 2021-12-13 09:39:06,759 1264 [DEBUG] - Setting installer args for test 2021-12-13 09:39:06,759 1264 [DEBUG] - Setting package parameters for test 2021-12-13 09:39:06,759 1264 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\test\tools\chocolateyinstall.ps1': 2021-12-13 09:39:06,759 1264 [DEBUG] - $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" Get-ChocolateyUnzip "$toolsDir\mine.zip" "C:\" "" $env:ChocolateyPackageName 2021-12-13 09:39:06,775 1264 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\test\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] 2021-12-13 09:39:06,775 1264 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by '' 2021-12-13 09:39:06,961 1264 [DEBUG] - Host version is 5.1.19041.1, PowerShell Version is '5.1.19041.1151' and CLR Version is '4.0.30319.42000'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'. 2021-12-13 09:39:07,555 1264 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'. 2021-12-13 09:39:07,572 1264 [INFO ] - VERBOSE: Exporting alias 'refreshenv'. 2021-12-13 09:39:07,587 1264 [DEBUG] - Importing 'C:\ProgramData\chocolatey\helpers\..\extensions\chocolatey\chocolatey.licensed.dll' 2021-12-13 09:39:07,587 1264 [DEBUG] - Loading 'chocolatey.licensed' extension 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-AppSettingsJsonFileContentCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChecksumValidCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyUnzipCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyWebFileCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-VirusCheckValidCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileNameCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebHeadersCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-AppSettingsJsonFileCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyInstallPackageCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPackageCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyZipPackageCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ChocolateyProcessCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ValidateChocolateyLicenseCmdlet'. 2021-12-13 09:39:07,634 1264 [INFO ] - VERBOSE: Importing cmdlet 'Start-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,650 1264 [INFO ] - VERBOSE: Importing cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,650 1264 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,650 1264 [DEBUG] - Loading community extensions 2021-12-13 09:39:07,650 1264 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey\chocolatey.extensions.psm1' 2021-12-13 09:39:07,650 1264 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey\chocolatey.extensions.psm1'. 2021-12-13 09:39:07,666 1264 [DEBUG] - Loading 'chocolatey.licensed' extension. 2021-12-13 09:39:07,666 1264 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey\chocolatey.licensed.dll'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-AppSettingsJsonFileContentCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChecksumValidCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyUnzipCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyWebFileCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-VirusCheckValidCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileNameCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebHeadersCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-AppSettingsJsonFileCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyInstallPackageCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPackageCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyZipPackageCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ChocolateyProcessCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ValidateChocolateyLicenseCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Start-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,681 1264 [DEBUG] - License type set to Business 2021-12-13 09:39:07,681 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-AppSettingsJsonFileContentCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-ChecksumValidCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-ChocolateyUnzipCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-ChocolateyWebFileCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-VirusCheckValidCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebFileCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebFileNameCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebHeadersCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Install-AppSettingsJsonFileCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyInstallPackageCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPackageCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyZipPackageCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Invoke-ChocolateyProcessCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Invoke-ValidateChocolateyLicenseCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Start-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-AppSettingsJsonFileContentCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChecksumValidCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyUnzipCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyWebFileCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-VirusCheckValidCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileNameCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebHeadersCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-AppSettingsJsonFileCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyInstallPackageCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPackageCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyZipPackageCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ChocolateyProcessCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ValidateChocolateyLicenseCmdlet'. 2021-12-13 09:39:07,696 1264 [INFO ] - VERBOSE: Importing cmdlet 'Start-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,712 1264 [INFO ] - VERBOSE: Importing cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,712 1264 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,712 1264 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1' 2021-12-13 09:39:07,712 1264 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'. 2021-12-13 09:39:07,790 1264 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'. 2021-12-13 09:39:07,790 1264 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'. 2021-12-13 09:39:07,790 1264 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'. 2021-12-13 09:39:07,790 1264 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'. 2021-12-13 09:39:07,790 1264 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'. 2021-12-13 09:39:07,790 1264 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'. 2021-12-13 09:39:07,790 1264 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'. 2021-12-13 09:39:07,790 1264 [INFO ] - VERBOSE: Exporting function 'Register-Application'. 2021-12-13 09:39:07,790 1264 [INFO ] - VERBOSE: Exporting function 'Remove-Process'. 2021-12-13 09:39:07,790 1264 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Importing function 'Get-WebContent'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Importing function 'Register-Application'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Importing function 'Remove-Process'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'. 2021-12-13 09:39:07,806 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Register-Application'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting function 'Remove-Process'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-AppSettingsJsonFileContentCmdlet'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-ChecksumValidCmdlet'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-ChocolateyUnzipCmdlet'. 2021-12-13 09:39:07,821 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-ChocolateyWebFileCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-VirusCheckValidCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebFileCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebFileNameCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebHeadersCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Install-AppSettingsJsonFileCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyInstallPackageCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPackageCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyZipPackageCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Invoke-ChocolateyProcessCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Invoke-ValidateChocolateyLicenseCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Start-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Exporting alias 'refreshenv'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-AppSettingsJsonFileContentCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChecksumValidCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyUnzipCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyWebFileCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-VirusCheckValidCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileCmdlet'. 2021-12-13 09:39:07,838 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileNameCmdlet'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebHeadersCmdlet'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-AppSettingsJsonFileCmdlet'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyInstallPackageCmdlet'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPackageCmdlet'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyZipPackageCmdlet'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ChocolateyProcessCmdlet'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ValidateChocolateyLicenseCmdlet'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing cmdlet 'Start-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Format-FileSize'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-WebContent'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-WebFile'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Install-BinFile'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'. 2021-12-13 09:39:07,853 1264 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Install-Vsix'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Register-Application'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Remove-Process'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing alias 'refreshenv'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'. 2021-12-13 09:39:07,868 1264 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'. 2021-12-13 09:39:07,916 1264 [DEBUG] - ---------------------------Script Execution--------------------------- 2021-12-13 09:39:07,916 1264 [DEBUG] - Running 'ChocolateyScriptRunner' for test v1.0.0 with packageScript 'C:\ProgramData\chocolatey\lib\test\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\test', installArguments: '', packageParameters: '', 2021-12-13 09:39:07,932 1264 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\test\tools\chocolateyinstall.ps1' 2021-12-13 09:39:07,946 1264 [DEBUG] - Running licensed 'Get-ChocolateyUnzip' with FileFullPath:'C:\ProgramData\chocolatey\lib\test\tools\mine.zip', Destination:'C:\', SpecificFolder:'', PackageName:'test', FileFullPath64:''. 2021-12-13 09:39:07,961 1264 [DEBUG] - 7zip found at 'C:\ProgramData\chocolatey\tools\7z.exe' 2021-12-13 09:39:07,961 1264 [INFO ] - Extracting mine.zip to C:\... 2021-12-13 09:39:07,977 1264 [ERROR] - ERROR: The path is not of a legal form. 2021-12-13 09:39:07,977 1264 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\test\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'. 2021-12-13 09:39:07,977 1264 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a'] 2021-12-13 09:39:08,009 1264 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116' 2021-12-13 09:39:08,072 1264 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\test' 2021-12-13 09:39:08,072 1264 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\test\test.nupkg' with checksum '0E7063F279C6C0BE55344E6FB8DC700A' 2021-12-13 09:39:08,072 1264 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\test\test.nuspec' with checksum 'CA5AAB0258486BD81404169CB366FBE0' 2021-12-13 09:39:08,072 1264 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\test\tools\chocolateyinstall.ps1' with checksum '8119598A791F5BC1B92134F47B738034' 2021-12-13 09:39:08,072 1264 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\test\tools\chocolateyinstall.ps1.bak' with checksum 'E0592A245B3C3D7E72FBB0EBBC152526' 2021-12-13 09:39:08,072 1264 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\test\tools\mine.zip' with checksum 'C14C401DB464A705D7C724CD1C2CD7DC' 2021-12-13 09:39:08,087 1264 [INFO ] - Reducing package size for 'test'... 2021-12-13 09:39:08,087 1264 [DEBUG] - Attempting to create directory "C:\ProgramData\choco-cache\ChocolateyPackageCache\PackageCache_20211213_093908_0879". 2021-12-13 09:39:08,087 1264 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib\test\test.nuspec" to "C:\ProgramData\choco-cache\ChocolateyPackageCache\PackageCache_20211213_093908_0879\test.nuspec". 2021-12-13 09:39:08,227 1264 [INFO ] - Reducing nupkg file size ('test'). 2021-12-13 09:39:08,258 1264 [INFO ] - Reducing extracted archives and installers ('test'). 2021-12-13 09:39:08,258 1264 [INFO ] - Space reduced for 'test': 807 B. 2021-12-13 09:39:08,258 1264 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\test\test.nupkg.bkp". 2021-12-13 09:39:08,274 1264 [DEBUG] - Attempting to replace "C:\ProgramData\chocolatey\.chocolatey\test.1.0.0\.files" with "C:\ProgramData\chocolatey\.chocolatey\test.1.0.0\.files.1264.update". Backup placed at "C:\ProgramData\chocolatey\.chocolatey\test.1.0.0\.files.backup". 2021-12-13 09:39:08,274 1264 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\test.1.0.0\.files.backup". 2021-12-13 09:39:08,274 1264 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\.chocolatey\test.1.0.0\.files.1264.update" to "C:\ProgramData\chocolatey\.chocolatey\test.1.0.0\.files". 2021-12-13 09:39:08,289 1264 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\test.1.0.0\.files.1264.update". 2021-12-13 09:39:08,289 1264 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\test.1.0.0\.arguments". 2021-12-13 09:39:08,289 1264 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\test.1.0.0\.extra". 2021-12-13 09:39:08,289 1264 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\test.1.0.0\.version". 2021-12-13 09:39:08,289 1264 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\test.1.0.0\.sxs". 2021-12-13 09:39:08,289 1264 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\test.1.0.0\.pin". 2021-12-13 09:39:08,289 1264 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers... 2021-12-13 09:39:08,289 1264 [ERROR] - The install of test was NOT successful. 2021-12-13 09:39:08,289 1264 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\test\tools\chocolateyinstall.ps1'. See log for details. 2021-12-13 09:39:08,289 1264 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\test' to 'C:\ProgramData\chocolatey\lib-bad\test' 2021-12-13 09:39:10,321 1264 [WARN ] - Chocolatey installed 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). 2021-12-13 09:39:10,321 1264 [INFO ] - 2021-12-13 09:39:10,321 1264 [ERROR] - Failures 2021-12-13 09:39:10,336 1264 [ERROR] - - test (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\test\tools\chocolateyinstall.ps1'. See log for details. 2021-12-13 09:39:10,336 1264 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers... 2021-12-13 09:39:10,336 1264 [DEBUG] - [Countdown] Determining how long until license expires 2021-12-13 09:39:10,352 1264 [DEBUG] - chocolatey 0.11.3 2021-12-13 09:39:10,352 1264 [DEBUG] - chocolatey-core.extension 1.3.5.1 2021-12-13 09:39:10,352 1264 [DEBUG] - chocolatey-license-business 0.1.0 2021-12-13 09:39:10,352 1264 [DEBUG] - chocolatey.extension 3.0.0 2021-12-13 09:39:10,368 1264 [DEBUG] - notepadplusplus 8.1.9.3 2021-12-13 09:39:10,368 1264 [DEBUG] - notepadplusplus.install 8.1.9.3 2021-12-13 09:39:10,368 1264 [DEBUG] - [Programs & Features Package Sync] Ensuring all installed packages that don't have software natively installed are not listed in Programs and Features. 2021-12-13 09:39:10,383 1264 [DEBUG] - chocolatey 0.11.3 2021-12-13 09:39:10,383 1264 [DEBUG] - chocolatey-core.extension 1.3.5.1 2021-12-13 09:39:10,383 1264 [DEBUG] - chocolatey-license-business 0.1.0 2021-12-13 09:39:10,383 1264 [DEBUG] - chocolatey.extension 3.0.0 2021-12-13 09:39:10,383 1264 [DEBUG] - notepadplusplus 8.1.9.3 2021-12-13 09:39:10,399 1264 [DEBUG] - notepadplusplus.install 8.1.9.3 2021-12-13 09:39:10,415 1264 [DEBUG] - Exiting with -1 ```

Workarounds

Use the drive without the ending slash:

$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
Get-ChocolateyUnzip "$toolsDir\test.zip" "C:"

Proposed Solution

Verify if a directory already exists before trying to create the directory.

Related Issues and Tickets

┆Issue is synchronized with this Gitlab issue by Unito ┆Milestone: 3.1.0

ryanrichter94 commented 2 years ago

Bumping issue and added link to second ZenDesk ticket.