Skip to content
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

Using Install-ChocolateyPath -PathType Machine in a non-admin context spawns PowerShell endlessly and never completes #3424

Closed
6 tasks done
vexx32 opened this issue Apr 19, 2024 · 1 comment · Fixed by #3425
Assignees
Milestone

Comments

@vexx32
Copy link
Member

vexx32 commented Apr 19, 2024

Checklist

  • I confirm there are no unresolved issues reported on the Chocolatey Status page.
  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.
  • I confirm I am using official, and not unofficial, or modified, Chocolatey products.

What You Are Seeing?

If a Chocolatey package containing a call to Install-ChocolateyPath -PathType Machine is attempted to be installed in a non-admin context (with Chocolatey appropriately installed in a non-administrative-install location), the package install will never complete. Instead, an endless amount of PowerShell processes are spawned, in an attempt to elevate that never works due to #434.

What is Expected?

At most, a single attempt to elevate should be attempted, and there should be some kind of fallback mechanism to error out if the elevation does not produce an elevated process.

How Did You Get This To Happen?

  1. Create a simple Chocolatey package called add-path which has the following content in its chocolateyinstall.ps1
    Install-ChocolateyPath -PathToInstall "C:\tools" -PathType Machine
  2. Setup a non-administrative installation of Chocolatey. A quick and dirty way to do this is to duplicate a normal Chocolatey installation to another folder, then open a non-admin PowerShell session to that folder, and set $env:ChocolateyInstall = Get-Location before running the choco.exe from that folder directly for the following steps.
  3. Open Task Manager
  4. Run ./choco.exe install add-path -s path/to/folder/containing/package/from/step/1 -y
  5. Watch rather a lot of PowerShell processes be spawned, you may want to kill the process tree before it gets out of hand.

System Details

  • Operating System: Win10
  • Windows PowerShell version: 5.1
  • Chocolatey CLI Version: 2.2.2
  • Chocolatey Licensed Extension version: 6.1.0
  • Chocolatey License type: Business
  • Terminal/Emulator: PowerShell

Installed Packages

N/a, see _how did you get this to happen_ for a package setup that will trigger the issue.

Output Log

2024-04-18 08:00:01,180 5840 [INFO ] - Chocolatey v2.2.2 Business
2024-04-18 08:00:01,180 5840 [DEBUG] - Chocolatey is running on Windows v 10.0.14393.0
2024-04-18 08:00:01,180 5840 [DEBUG] - Attempting to delete file "C:/Users/vagrant/chocolatey/choco.exe.old".
2024-04-18 08:00:01,180 5840 [DEBUG] - Attempting to delete file "C:\Users\vagrant\chocolatey\choco.exe.old".
2024-04-18 08:00:01,200 5840 [DEBUG] - Command line: "C:\Users\vagrant\chocolatey\choco.exe" install add-path -s c:\packages --params "/Path=C:\tools /Scope=Machine" --force
2024-04-18 08:00:01,200 5840 [DEBUG] - Received arguments: install add-path -s c:\packages --params /Path=C:\tools /Scope=Machine --force
2024-04-18 08:00:01,240 5840 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2024-04-18 08:00:01,287 5840 [DEBUG] - CountdownTask is now ready and waiting for PostRunMessage.
2024-04-18 08:00:01,287 5840 [DEBUG] - Terminal services setup not necessary for this session.
2024-04-18 08:00:01,310 5840 [DEBUG] - SynchronizeTask is now ready and waiting for PreRunMessage.
2024-04-18 08:00:01,310 5840 [DEBUG] - PackagesInProgramsAndFeaturesTask is now ready and waiting for PostRunMessage.
2024-04-18 08:00:01,345 5840 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2024-04-18 08:00:01,360 5840 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2024-04-18 08:00:01,360 5840 [DEBUG] - [Synchronize] Updating packages with Programs and Features
2024-04-18 08:00:01,360 5840 [DEBUG] - [Synchronize] Currently only supports removals. Soon will handle updates.
2024-04-18 08:00:01,559 5840 [DEBUG] - Resolving resource PackageSearchResource for source C:\users\vagrant\chocolatey\lib
2024-04-18 08:00:01,758 5840 [DEBUG] - add-path 1.0.0
2024-04-18 08:00:01,788 5840 [DEBUG] - baretail 3.50.0.20120226
2024-04-18 08:00:01,788 5840 [DEBUG] - chocolatey 2.2.2
2024-04-18 08:00:01,788 5840 [DEBUG] - chocolatey.extension 6.1.0
2024-04-18 08:00:01,788 5840 [DEBUG] - chocolatey-agent 2.1.0
2024-04-18 08:00:01,788 5840 [DEBUG] - chocolatey-compatibility.extension 1.0.0
2024-04-18 08:00:01,788 5840 [DEBUG] - chocolatey-core.extension 1.4.0
2024-04-18 08:00:01,788 5840 [DEBUG] - dotnetversiondetector 17.1.2
2024-04-18 08:00:01,818 5840 [DEBUG] - MsSqlServer2014Express 12.2.5000.20190905
2024-04-18 08:00:01,818 5840 [DEBUG] - mvcmusicstore-db 1.0.0
2024-04-18 08:00:01,818 5840 [DEBUG] - notepadplusplus.install 8.5.8
2024-04-18 08:00:01,818 5840 [DEBUG] - roundhouse 0.8.6
2024-04-18 08:00:01,997 5840 [DEBUG] - Performing validation checks.
2024-04-18 08:00:01,997 5840 [DEBUG] - Global Configuration Validation Checks:
2024-04-18 08:00:01,997 5840 [DEBUG] -  - Package Exit Code / Exit On Reboot = Checked
2024-04-18 08:00:01,997 5840 [DEBUG] - System State Validation Checks:
2024-04-18 08:00:01,997 5840 [DEBUG] -  Reboot Requirement Checks:
2024-04-18 08:00:01,997 5840 [DEBUG] -  - Pending Computer Rename = Checked
2024-04-18 08:00:01,997 5840 [DEBUG] -  - Pending Component Based Servicing = Checked
2024-04-18 08:00:01,997 5840 [DEBUG] -  - Pending Windows Auto Update = Checked
2024-04-18 08:00:01,997 5840 [DEBUG] -  - Pending File Rename Operations = Checked
2024-04-18 08:00:01,997 5840 [DEBUG] -  - Pending Windows Package Installer = Checked
2024-04-18 08:00:01,997 5840 [DEBUG] -  - Pending Windows Package Installer SysWow64 = Checked
2024-04-18 08:00:02,027 5840 [DEBUG] - Cache Folder Lockdown Checks:
2024-04-18 08:00:02,027 5840 [DEBUG] -  - Elevated State = Failed
2024-04-18 08:00:02,027 5840 [INFO ] - 3 validations performed. 3 success(es), 0 warning(s), and 0 error(s).
2024-04-18 08:00:02,041 5840 [DEBUG] - The source 'c:\packages' evaluated to a 'normal' source type
2024-04-18 08:00:02,057 5840 [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.
2024-04-18 08:00:02,067 5840 [DEBUG] - Configuration: MaximumDownloadRateBitsPerSecond='0'|
MaximumDownloadRateBitsPerSecondAutoSet='False'|
LicensedInformation.LicenseType='Business'|
LicensedInformation.LicenseIsValid='True'|
LicensedInformation.LicenseIsTrial='False'|
LicensedInformation.PauseInTrial='False'|
LicensedInformation.LicenseUserName='Dev License - Rain [200] (rain[at REDACTED])'|

LicensedInformation.LicenseExpirationDate='8/3/2024 12:00:00 AM'|
LicensedInformation.LicenseNodeCount='200'|
LicensedInformation.LicensedVersion='6.1.0.0'|
ChocolateyVersion.Version='2.2.2.0'|
ChocolateyVersion.IsLegacyVersion='False'|
ChocolateyVersion.Revision='0'|ChocolateyVersion.IsSemVer2='False'|
ChocolateyVersion.OriginalVersion='2.2.2.0'|
ChocolateyVersion.Major='2'|
ChocolateyVersion.Minor='2'|ChocolateyVersion.Patch='2'|
ChocolateyVersion.IsPrerelease='False'|
ChocolateyVersion.HasMetadata='False'|
LicensedFeatures.UseDownloadCache='True'|
LicensedFeatures.AllowSynchronization='True'|
LicensedFeatures.AllowBackgroundServiceOverride='False'|
LicensedFeatures.UseBackgroundService='False'|
LicensedFeatures.UseBackgroundServiceWithSelfServiceSourcesOnly='True'|
LicensedFeatures.UseBackgroundServiceWithNonAdministratorsOnly='True'|
LicensedFeatures.UseBackgroundServiceInteractively='False'|
LicensedFeatures.UseBackgroundServiceWithEmptySessions='True'|
LicensedFeatures.AllowBackgroundServiceUninstallsFromUserInstallsOnly='False'|

LicensedFeatures.AllowPreviewFeatures='True'|
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='True'|
LicensedFeatures.UseChocolateyCentralManagementDeployments='True'|
LicensedFeatures.UseLogRetentionPolicy='True'|
LicensedFeatures.ExcludeChocolateyPackagesDuringUpgradeAll='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'|
LicensedPushCommand.SkipCleanup='False'|
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='60'|

CentralManagementConfiguration.ServiceUrl='https://ccmserver:24020/ChocolateyManagementService'|

CentralManagementConfiguration.ReceiveTimeoutInSeconds='60'|
CentralManagementConfiguration.SendTimeoutInSeconds='60'|
CentralManagementConfiguration.CertificateValidationMode='PeerOrChainTrust'|

CentralManagementConfiguration.MaxReceiveMessageSizeInBytes='2147483647'|

CentralManagementConfiguration.DeploymentCheckTimerIntervalInSeconds='30'|

LicensedBackgroundService.LogRetentionPolicyInDays='30'|
CommandName='install'|CacheLocation='C:\ProgramData\choco-cache'|
CommandExecutionTimeoutSeconds='14400'|WebRequestTimeoutSeconds='30'|
Sources='c:\packages'|SourceType='normal'|ShowOnlineHelp='False'|
Debug='False'|Verbose='False'|Trace='False'|Force='True'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|
DisableCompatibilityChecks='False'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='add-path'|AllVersions='False'|
SkipPackageInstallProvider='False'|SkipHookScripts='False'|
PackageNames='add-path'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
PackageParameters='/Path=C:\tools /Scope=Machine'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
CacheExpirationInMinutes='30'|AllowDowngrade='False'|
ForceDependencies='False'|PinPackage='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.14393.0'|
Information.PlatformName='Windows Server 2016'|
Information.ChocolateyVersion='2.2.2.0'|
Information.ChocolateyProductVersion='2.2.2'|
Information.FullName='choco, Version=2.2.2.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='vagrant'|Information.UserDomainName='CLIENTDB'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='False'|Information.IsProcessElevated='False'|
Information.IsLicensedVersion='True'|
Information.IsLicensedAssemblyLoaded='True'|
Information.LicenseType='Business'|
Information.CurrentDirectory='C:\Users\vagrant\chocolatey'|
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='False'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
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'|
ListCommand.ExplicitPageSize='False'|
ListCommand.ExplicitSource='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.Command='Unknown'|PinCommand.Command='Unknown'|
OutdatedCommand.IgnorePinned='False'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|CacheCommand.Command='Unknown'|
CacheCommand.RemoveExpiredItemsOnly='False'|
2024-04-18 08:00:02,067 5840 [DEBUG] - _ Chocolatey:ProChocolateyInstallCommand - Normal Run Mode _
2024-04-18 08:00:02,067 5840 [INFO ] - Installing the following packages:
2024-04-18 08:00:02,087 5840 [INFO ] - add-path
2024-04-18 08:00:02,087 5840 [INFO ] - By installing, you accept licenses for the packages.
2024-04-18 08:00:02,087 5840 [DEBUG] - Current environment values (may contain sensitive data):
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'Path'='C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps;' ('User')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'TEMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'TMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'ChocolateyLastPathUpdate'='133579200618586566' ('User')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'trigger'='1' ('User')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'OS'='Windows_NT' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'Path'='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'PSModulePath'='C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules\' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'TEMP'='C:\Windows\TEMP' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'TMP'='C:\Windows\TEMP' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'USERNAME'='SYSTEM' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'windir'='C:\Windows' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'NUMBER_OF_PROCESSORS'='1' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'PROCESSOR_LEVEL'='6' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 158 Stepping 13, GenuineIntel' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'PROCESSOR_REVISION'='9e0d' ('Machine')
2024-04-18 08:00:02,087 5840 [DEBUG] -   * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2024-04-18 08:00:02,127 5840 [DEBUG] - Source 'c:\packages' is configured to bypass proxies.
2024-04-18 08:00:02,127 5840 [DEBUG] - Returning loaded assembly type for 'chocolatey.licensed'
2024-04-18 08:00:02,127 5840 [DEBUG] - Returning loaded assembly type for 'chocolatey.licensed'
2024-04-18 08:00:02,195 5840 [DEBUG] - Running list with the following filter = ''
2024-04-18 08:00:02,195 5840 [DEBUG] - --- Start of List ---
2024-04-18 08:00:02,195 5840 [DEBUG] - add-path 1.0.0
2024-04-18 08:00:02,195 5840 [DEBUG] - baretail 3.50.0.20120226
2024-04-18 08:00:02,195 5840 [DEBUG] - chocolatey 2.2.2
2024-04-18 08:00:02,195 5840 [DEBUG] - chocolatey.extension 6.1.0
2024-04-18 08:00:02,195 5840 [DEBUG] - chocolatey-agent 2.1.0
2024-04-18 08:00:02,195 5840 [DEBUG] - chocolatey-compatibility.extension 1.0.0
2024-04-18 08:00:02,195 5840 [DEBUG] - chocolatey-core.extension 1.4.0
2024-04-18 08:00:02,195 5840 [DEBUG] - dotnetversiondetector 17.1.2
2024-04-18 08:00:02,195 5840 [DEBUG] - MsSqlServer2014Express 12.2.5000.20190905
2024-04-18 08:00:02,195 5840 [DEBUG] - mvcmusicstore-db 1.0.0
2024-04-18 08:00:02,195 5840 [DEBUG] - notepadplusplus.install 8.5.8
2024-04-18 08:00:02,195 5840 [DEBUG] - roundhouse 0.8.6
2024-04-18 08:00:02,195 5840 [DEBUG] - --- End of List ---
2024-04-18 08:00:02,245 5840 [WARN ] - add-path v1.0.0 already installed. Forcing reinstall of version '1.0.0'.
 Please use upgrade if you meant to upgrade to a new version.
2024-04-18 08:00:02,245 5840 [DEBUG] - Resolving resource PackageMetadataResource for source c:\packages
2024-04-18 08:00:02,550 5840 [DEBUG] - Resolving resource DependencyInfoResource for source c:\packages
2024-04-18 08:00:02,847 5840 [INFO ] - [NuGet] Resolving dependency information took 0 ms
2024-04-18 08:00:02,847 5840 [DEBUG] - Running beforeModify step for 'add-path'
2024-04-18 08:00:02,864 5840 [DEBUG] - Backing up package files for 'add-path'
2024-04-18 08:00:02,898 5840 [DEBUG] - Attempting to delete directory "C:\users\vagrant\chocolatey\lib-bkp\add-path".
2024-04-18 08:00:02,954 5840 [DEBUG] - Attempting to create directory "C:\users\vagrant\chocolatey\lib-bkp\add-path".
2024-04-18 08:00:02,954 5840 [DEBUG] - Moving C:\users\vagrant\chocolatey\lib\add-path to C:\users\vagrant\chocolatey\lib-bkp\add-path\1.0.0
2024-04-18 08:00:02,954 5840 [DEBUG] - Moving 'C:\users\vagrant\chocolatey\lib\add-path'
 to 'C:\users\vagrant\chocolatey\lib-bkp\add-path\1.0.0'
2024-04-18 08:00:04,978 5840 [DEBUG] - Attempting to create directory "C:\users\vagrant\chocolatey\lib\add-path".
2024-04-18 08:00:04,978 5840 [DEBUG] - Attempting to copy "C:\users\vagrant\chocolatey\lib-bkp\add-path\1.0.0\.chocolateyPending"
 to "C:\users\vagrant\chocolatey\lib\add-path\.chocolateyPending".
2024-04-18 08:00:04,978 5840 [DEBUG] - Attempting to copy "C:\users\vagrant\chocolatey\lib-bkp\add-path\1.0.0\add-path.nupkg"
 to "C:\users\vagrant\chocolatey\lib\add-path\add-path.nupkg".
2024-04-18 08:00:04,978 5840 [DEBUG] - Attempting to copy "C:\users\vagrant\chocolatey\lib-bkp\add-path\1.0.0\add-path.nuspec"
 to "C:\users\vagrant\chocolatey\lib\add-path\add-path.nuspec".
2024-04-18 08:00:04,978 5840 [DEBUG] - Attempting to create directory "C:\users\vagrant\chocolatey\lib\add-path\tools".
2024-04-18 08:00:04,978 5840 [DEBUG] - Attempting to copy "C:\users\vagrant\chocolatey\lib-bkp\add-path\1.0.0\tools\chocolateyinstall.ps1"
 to "C:\users\vagrant\chocolatey\lib\add-path\tools\chocolateyinstall.ps1".
2024-04-18 08:00:04,978 5840 [DEBUG] - Attempting to copy "C:\users\vagrant\chocolatey\lib-bkp\add-path\1.0.0\tools\chocolateyuninstall.ps1"
 to "C:\users\vagrant\chocolatey\lib\add-path\tools\chocolateyuninstall.ps1".
2024-04-18 08:00:06,556 5840 [DEBUG] - [NuGet] Removed folder 'C:\users\vagrant\chocolatey\lib\add-path\tools'.
2024-04-18 08:00:06,556 5840 [DEBUG] - [NuGet] Removed file 'add-path.nupkg' from folder 'C:\users\vagrant\chocolatey\lib\add-path'.
2024-04-18 08:00:06,556 5840 [DEBUG] - Ensuring removal of package cache files.
2024-04-18 08:00:06,556 5840 [DEBUG] - Resolving resource DownloadResource for source c:\packages
2024-04-18 08:00:06,576 5840 [DEBUG] - Attempting to delete file "".
2024-04-18 08:00:06,596 5840 [INFO ] - [NuGet] Adding package 'add-path.1.0.0' to folder 'C:\users\vagrant\chocolatey\lib'
2024-04-18 08:00:06,666 5840 [INFO ] - [NuGet] Added package 'add-path.1.0.0' to folder 'C:\users\vagrant\chocolatey\lib'
2024-04-18 08:00:06,666 5840 [DEBUG] - [NuGet] Added package 'add-path.1.0.0' to folder 'C:\users\vagrant\chocolatey\lib' from source 'c:\packages'
2024-04-18 08:00:06,666 5840 [INFO ] - 
add-path v1.0.0 (forced)
2024-04-18 08:00:06,686 5840 [INFO ] - add-path package files install completed. Performing other installation steps.
2024-04-18 08:00:06,716 5840 [DEBUG] - Setting installer args for add-path
2024-04-18 08:00:06,716 5840 [DEBUG] - Setting package parameters for add-path
2024-04-18 08:00:06,716 5840 [DEBUG] - Contents of 'C:\users\vagrant\chocolatey\lib\add-path\tools\chocolateyinstall.ps1':
2024-04-18 08:00:06,716 5840 [DEBUG] - $params = Get-PackageParameters
$path = $params["Path"]
$scope = $params["Scope"]

if (-not $path) {
	throw "You must specify the package parameter /Path"
}

if (-not $scope) {
	$scope = "User"
}

Write-Host "Adding '$path' to PATH at scope $scope"

Install-ChocolateyPath -PathToInstall $path -PathType $scope

Write-Host "$scope PATH after install: $env:PATH"
2024-04-18 08:00:06,772 5840 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\users\vagrant\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\users\vagrant\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\users\vagrant\chocolatey\lib\add-path\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '/Path=C:\tools /Scope=Machine' -preRunHookScripts $null -postRunHookScripts $null']
2024-04-18 08:00:06,785 5840 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2024-04-18 08:00:07,149 5840 [DEBUG] - Host version is 5.1.14393.0, PowerShell Version is '5.1.14393.2791' and CLR Version is '4.0.30319.42000'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2024-04-18 08:00:07,324 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2024-04-18 08:00:07,353 5840 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2024-04-18 08:00:07,353 5840 [DEBUG] - Importing 'C:\users\vagrant\chocolatey\helpers\..\extensions\chocolatey\chocolatey.licensed.dll'
2024-04-18 08:00:07,353 5840 [DEBUG] - Loading 'chocolatey.licensed' extension
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-AppSettingsJsonFileContentCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChecksumValidCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyUnzipCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyWebFileCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-VirusCheckValidCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileNameCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebHeadersCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-AppSettingsJsonFileCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyInstallPackageCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPackageCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyZipPackageCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ChocolateyProcessCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ValidateChocolateyLicenseCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Start-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,393 5840 [DEBUG] - Loading community extensions
2024-04-18 08:00:07,393 5840 [DEBUG] - Importing 'C:\users\vagrant\chocolatey\extensions\chocolatey\chocolatey.extensions.psm1'
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Loading module from path 'C:\users\vagrant\chocolatey\extensions\chocolatey\chocolatey.extensions.psm1'.
2024-04-18 08:00:07,393 5840 [DEBUG] - Loading 'chocolatey.licensed' extension.
2024-04-18 08:00:07,393 5840 [INFO ] - VERBOSE: Loading module from path 'C:\users\vagrant\chocolatey\extensions\chocolatey\chocolatey.licensed.dll'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-AppSettingsJsonFileContentCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChecksumValidCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyUnzipCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyWebFileCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-VirusCheckValidCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileNameCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebHeadersCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-AppSettingsJsonFileCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyInstallPackageCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPackageCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyZipPackageCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ChocolateyProcessCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ValidateChocolateyLicenseCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Start-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,423 5840 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,434 5840 [DEBUG] - License type set to Business
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-AppSettingsJsonFileContentCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-ChecksumValidCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-ChocolateyUnzipCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-ChocolateyWebFileCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-VirusCheckValidCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebFileCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebFileNameCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebHeadersCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Install-AppSettingsJsonFileCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyInstallPackageCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPackageCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyZipPackageCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Invoke-ChocolateyProcessCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Invoke-ValidateChocolateyLicenseCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Start-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Exporting alias 'Uninstall-ChocolateyPackageCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-AppSettingsJsonFileContentCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChecksumValidCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyUnzipCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyWebFileCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-VirusCheckValidCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileNameCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebHeadersCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-AppSettingsJsonFileCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyInstallPackageCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPackageCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyZipPackageCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ChocolateyProcessCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ValidateChocolateyLicenseCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Start-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Importing alias 'Uninstall-ChocolateyPackageCmdlet'.
2024-04-18 08:00:07,434 5840 [DEBUG] - Importing 'C:\users\vagrant\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'
2024-04-18 08:00:07,434 5840 [INFO ] - VERBOSE: Loading module from path 'C:\users\vagrant\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'.
2024-04-18 08:00:07,463 5840 [DEBUG] - Function 'Get-PackageParameters' exists, ignoring export.
2024-04-18 08:00:07,463 5840 [DEBUG] - Function 'Get-UninstallRegistryKey' exists, ignoring export.
2024-04-18 08:00:07,463 5840 [DEBUG] - Exporting function 'Install-ChocolateyDesktopLink' for backwards compatibility
2024-04-18 08:00:07,463 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2024-04-18 08:00:07,463 5840 [DEBUG] - Exporting function 'Write-ChocolateyFailure' for backwards compatibility
2024-04-18 08:00:07,483 5840 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2024-04-18 08:00:07,483 5840 [DEBUG] - Exporting function 'Write-ChocolateySuccess' for backwards compatibility
2024-04-18 08:00:07,483 5840 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2024-04-18 08:00:07,483 5840 [DEBUG] - Exporting function 'Write-FileUpdateLog' for backwards compatibility
2024-04-18 08:00:07,483 5840 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2024-04-18 08:00:07,483 5840 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2024-04-18 08:00:07,483 5840 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2024-04-18 08:00:07,483 5840 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2024-04-18 08:00:07,483 5840 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2024-04-18 08:00:07,483 5840 [DEBUG] - Importing 'C:\users\vagrant\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
2024-04-18 08:00:07,483 5840 [INFO ] - VERBOSE: Loading module from path 'C:\users\vagrant\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Exporting function 'Remove-Process'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Importing function 'Remove-Process'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2024-04-18 08:00:07,513 5840 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting function 'Remove-Process'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-AppSettingsJsonFileContentCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-ChecksumValidCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-ChocolateyUnzipCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-ChocolateyWebFileCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-VirusCheckValidCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebFileCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebFileNameCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Get-WebHeadersCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Install-AppSettingsJsonFileCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyInstallPackageCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPackageCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyZipPackageCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Invoke-ChocolateyProcessCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Invoke-ValidateChocolateyLicenseCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Start-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,543 5840 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Exporting alias 'Uninstall-ChocolateyPackageCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-AppSettingsJsonFileContentCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChecksumValidCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyUnzipCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-ChocolateyWebFileCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-VirusCheckValidCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebFileNameCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Get-WebHeadersCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-AppSettingsJsonFileCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyInstallPackageCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPackageCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyZipPackageCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ChocolateyProcessCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Invoke-ValidateChocolateyLicenseCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Start-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Stop-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyWindowsServiceCmdlet'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyConfigValue'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyPath'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2024-04-18 08:00:07,562 5840 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Remove-Process'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2024-04-18 08:00:07,582 5840 [INFO ] - VERBOSE: Importing alias 'Uninstall-ChocolateyPackageCmdlet'.
2024-04-18 08:00:07,602 5840 [DEBUG] - ---------------------------Script Execution---------------------------
2024-04-18 08:00:07,602 5840 [DEBUG] - Running 'ChocolateyScriptRunner' for add-path v1.0.0 with packageScript 'C:\users\vagrant\chocolatey\lib\add-path\tools\chocolateyinstall.ps1', packageFolder:'C:\users\vagrant\chocolatey\lib\add-path', installArguments: '', packageParameters: '/Path=C:\tools /Scope=Machine', preRunHookScripts: '', postRunHookScripts: '',
2024-04-18 08:00:07,622 5840 [DEBUG] - Running package script 'C:\users\vagrant\chocolatey\lib\add-path\tools\chocolateyinstall.ps1'
2024-04-18 08:00:07,642 5840 [DEBUG] - Running Get-PackageParameters 
2024-04-18 08:00:07,642 5840 [DEBUG] - Parsing $env:ChocolateyPackageParameters and $env:ChocolateyPackageParametersSensitive for parameters
2024-04-18 08:00:07,662 5840 [DEBUG] - Adding package param 'Path'='C:\tools'
2024-04-18 08:00:07,662 5840 [DEBUG] - Adding package param 'Scope'='Machine'
2024-04-18 08:00:07,693 5840 [INFO ] - Adding 'C:\tools' to PATH at scope Machine
2024-04-18 08:00:07,702 5840 [DEBUG] - Running Install-ChocolateyPath -pathToInstall 'C:\tools' -pathType 'Machine' 
2024-04-18 08:00:07,702 5840 [DEBUG] - Running Update-SessionEnvironment 
2024-04-18 08:00:07,702 5840 [INFO ] - VERBOSE: Refreshing environment variables from the registry.
2024-04-18 08:00:07,841 5840 [INFO ] - PATH environment variable does not have C:\tools in it. Adding...
2024-04-18 08:00:07,841 5840 [INFO ] - VERBOSE: Choosing not to expand environment names
2024-04-18 08:00:07,861 5840 [DEBUG] - Test-ProcessAdminRights: returning False
2024-04-18 08:00:07,881 5840 [DEBUG] - Running licensed 'Start-ChocolateyProcessAsAdmin' with ExeToRun:'powershell', Statements:'Install-ChocolateyPath -pathToInstall 'C:\tools' -pathType 'Machine'', Elevated:'True', Minimized:'False', NoSleep:'False', ValidExitCodes: '0', WorkingDirectory:'C:\Users\vagrant\chocolatey', AnswerFile:'' Has SensitiveStatements:'False'
2024-04-18 08:00:07,901 5840 [DEBUG] - Elevating permissions and running ['C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat Text -OutputFormat Text -EncodedCommand DQAKACQAZwBsAG8AYgBhAGwAOgBEAGUAYgB1AGcAUAByAGUAZgBlAHIAZQBuAGMAZQAgACAAIAAgACAAIAAgACAAIAA9ACAAJwBTAGkAbABlAG4AdABsAHkAQwBvAG4AdABpAG4AdQBlACcADQAKACQAZwBsAG8AYgBhAGwAOgBWAGUAcgBiAG8AcwBlAFAAcgBlAGYAZQByAGUAbgBjAGUAIAAgACAAIAAgACAAIAA9ACAAJwBTAGkAbABlAG4AdABsAHkAQwBvAG4AdABpAG4AdQBlACcADQAKACQAZwBsAG8AYgBhAGwAOgBQAHIAbwBnAHIAZQBzAHMAUAByAGUAZgBlAHIAZQBuAGMAZQAgACAAIAAgACAAIAA9ACAAJwBTAGkAbABlAG4AdABsAHkAQwBvAG4AdABpAG4AdQBlACcADQAKACQAbgBvAFMAbABlAGUAcAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAA9ACAAJABGAGEAbABzAGUADQAKACMAIABTAGUAdAAgAHQAaABlACAAYwB1AGwAdAB1AHIAZQAgAHQAbwAgAGkAbgB2AGEAcgBpAGEAbgB0AA0ACgAkAGMAdQBsAHQAdQByAGUAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAPQAgAFsAUwB5AHMAdABlAG0ALgBHAGwAbwBiAGEAbABpAHoAYQB0AGkAbwBuAC4AQwB1AGwAdAB1AHIAZQBJAG4AZgBvAF0AOgA6AEkAbgB2AGEAcgBpAGEAbgB0AEMAdQBsAHQAdQByAGUADQAKACQAYwB1AHIAcgBlAG4AdABUAGgAcgBlAGEAZAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAA9ACAAWwBTAHkAcwB0AGUAbQAuAFQAaAByAGUAYQBkAGkAbgBnAC4AVABoAHIAZQBhAGQAXQA6ADoAQwB1AHIAcgBlAG4AdABUAGgAcgBlAGEAZAANAAoAJABjAHUAcgByAGUAbgB0AFQAaAByAGUAYQBkAC4AQwB1AHIAcgBlAG4AdABDAHUAbAB0AHUAcgBlACAAIAAgAD0AIAAkAGMAdQBsAHQAdQByAGUADQAKACQAYwB1AHIAcgBlAG4AdABUAGgAcgBlAGEAZAAuAEMAdQByAHIAZQBuAHQAVQBJAEMAdQBsAHQAdQByAGUAIAA9ACAAJABjAHUAbAB0AHUAcgBlAA0ACgAmACAASQBtAHAAbwByAHQALQBNAG8AZAB1AGwAZQAgAC0ATgBhAG0AZQAgACcAQwA6AFwAdQBzAGUAcgBzAFwAdgBhAGcAcgBhAG4AdABcAGMAaABvAGMAbwBsAGEAdABlAHkAXABoAGUAbABwAGUAcgBzAFwAYwBoAG8AYwBvAGwAYQB0AGUAeQBJAG4AcwB0AGEAbABsAGUAcgAuAHAAcwBtADEAJwAgAC0AVgBlAHIAYgBvAHMAZQA6ACQARgBhAGwAcwBlACAAfAAgAE8AdQB0AC0ATgB1AGwAbAANAAoAdAByAHkAewANAAoAIAAgAEkAbgBzAHQAYQBsAGwALQBDAGgAbwBjAG8AbABhAHQAZQB5AFAAYQB0AGgAIAAtAHAAYQB0AGgAVABvAEkAbgBzAHQAYQBsAGwAIAAnAEMAOgBcAHQAbwBvAGwAcwAnACAALQBwAGEAdABoAFQAeQBwAGUAIAAnAE0AYQBjAGgAaQBuAGUAJwANAAoAIAAgAGkAZgAgACgAIQAkAG4AbwBTAGwAZQBlAHAAKQAgAHsAIABTAHQAYQByAHQALQBTAGwAZQBlAHAAIAA2ACAAfQANAAoAfQANAAoAYwBhAHQAYwBoAHsADQAKACAAaQBmACAAKAAhACQAbgBvAFMAbABlAGUAcAApACAAewAgAFMAdABhAHIAdAAtAFMAbABlAGUAcAAgADgAIAB9AA0ACgAgAHQAaAByAG8AdwANAAoAfQANAAoA].
Command Block (non-encoded):

$global:DebugPreference         = 'SilentlyContinue'
$global:VerbosePreference       = 'SilentlyContinue'
$global:ProgressPreference      = 'SilentlyContinue'
$noSleep                        = $False
# Set the culture to invariant
$culture                        = [System.Globalization.CultureInfo]::InvariantCulture
$currentThread                  = [System.Threading.Thread]::CurrentThread
$currentThread.CurrentCulture   = $culture
$currentThread.CurrentUICulture = $culture
& Import-Module -Name 'C:\users\vagrant\chocolatey\helpers\chocolateyInstaller.psm1' -Verbose:$False | Out-Null
try{
  Install-ChocolateyPath -pathToInstall 'C:\tools' -pathType 'Machine'
  if (!$noSleep) { Start-Sleep 6 }
}
catch{
 if (!$noSleep) { Start-Sleep 8 }
 throw
}

This may take a while, depending on the statements.
2024-04-18 08:00:07,901 5840 [DEBUG] - Setting RunAs for elevation
2024-04-18 08:00:08,868 5840 [ERROR] - #< CLIXML
2024-04-18 08:00:09,246 5840 [DEBUG] - PATH environment variable does not have C:\tools in it. Adding...

Additional Context

No response

@vexx32 vexx32 added the Bug label Apr 19, 2024
@vexx32 vexx32 self-assigned this Apr 19, 2024
vexx32 added a commit to vexx32/choco that referenced this issue Apr 19, 2024
Add a guard into Start-ChocolateyProcessAsAdmin to ensure we don't
accidentally recurse in the case of calling back into helper commands
that themselves call Start-ChocolateyProcessAsAdmin.
@gep13 gep13 added this to the 2.3.0 milestone Apr 22, 2024
gep13 pushed a commit to vexx32/choco that referenced this issue Apr 24, 2024
Add a guard into Start-ChocolateyProcessAsAdmin to ensure we don't
accidentally recurse in the case of calling back into helper commands
that themselves call Start-ChocolateyProcessAsAdmin.
gep13 added a commit that referenced this issue Apr 24, 2024
(#3424) Fix potential recursive elevation attempts
@gep13 gep13 added 4 - Done and removed 3 - Review labels Apr 24, 2024
@choco-bot
Copy link

🎉 This issue has been resolved in version 2.3.0 🎉

The release is available on:

Your GitReleaseManager bot 📦 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants