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

(totalcommander) Install fails, adds trailing blank to path #2630

Open
2 tasks done
kintrupf opened this issue Feb 25, 2025 · 2 comments
Open
2 tasks done

(totalcommander) Install fails, adds trailing blank to path #2630

kintrupf opened this issue Feb 25, 2025 · 2 comments

Comments

@kintrupf
Copy link

Checklist

  • I have verified that this is the correct repository, and the package is maintained by the chocolatey-community user.
  • I have verified that this is happening in the latest available version of the package.

Chocolatey Version

2.4.2

Chocolatey License

None

Package Version

11.51.0

Current Behaviour

Installation fails because the package does not recognize the correct install path.
The COMMANDER_PATH variable is set to the value "C:\Program Files\Total Commander" before the upgrade.
The installation scripts prints the following message:

   TotalCommander installed to 'C:\Program Files\Total Commander '
   Setting system environment COMMANDER_PATH
   ERROR: Path doesn't exist: C:\Program Files\Total Commander \totalcmd.exe

Please not the trailing blank at the end of the path "C:\Program Files\Total Commander " which should not be there!

Even if I add the parameter --params '/InstallPath="%ProgramFiles%\Total Commander"' (no trailing blank) to the installation it fails with exactly the same message as above. Unsetting the COMMANDER_PATH variable before the installation had the same result. The windows registry does not contain any paths with the trialing blank, so the install script itself seems to be buggy.

Expected Behaviour

It should either use the correct path from the COMMANDER_PATH variable when it exists (without adding a trailing blank) or it should use the /InstallPath parameter correctly.

Steps To Reproduce

choco upgrade totalcommander

Environment

- Operating System: 10.0.19045.0
- PowerShell Version: 7.5.0
- Shell: PowerShell 7.5.0

Chocolatey Log

2025-02-25 08:57:01,811 33768 [INFO ] - ============================================================
2025-02-25 08:57:02,114 33768 [INFO ] - Chocolatey v2.4.2
2025-02-25 08:57:02,118 33768 [DEBUG] - Chocolatey is running on Windows v 10.0.19045.0
2025-02-25 08:57:02,121 33768 [DEBUG] - Attempting to delete file "C:/Program Files/chocolatey/choco.exe.old".
2025-02-25 08:57:02,121 33768 [DEBUG] - Attempting to delete file "C:\Program Files\chocolatey\choco.exe.old".
2025-02-25 08:57:02,126 33768 [DEBUG] - Command line: "C:\Program Files\chocolatey\choco.exe" upgrade totalcommander
2025-02-25 08:57:02,126 33768 [DEBUG] - Received arguments: upgrade totalcommander
2025-02-25 08:57:02,151 33768 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2025-02-25 08:57:02,168 33768 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2025-02-25 08:57:02,171 33768 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2025-02-25 08:57:02,195 33768 [DEBUG] - Performing validation checks.
2025-02-25 08:57:02,197 33768 [DEBUG] - Global Configuration Validation Checks:
2025-02-25 08:57:02,198 33768 [DEBUG] -  - Package Exit Code / Exit On Reboot = Checked
2025-02-25 08:57:02,199 33768 [DEBUG] - System State Validation Checks:
2025-02-25 08:57:02,200 33768 [DEBUG] -  Reboot Requirement Checks:
2025-02-25 08:57:02,201 33768 [DEBUG] -  - Pending Computer Rename = Checked
2025-02-25 08:57:02,202 33768 [DEBUG] -  - Pending Component Based Servicing = Checked
2025-02-25 08:57:02,203 33768 [DEBUG] -  - Pending Windows Auto Update = Checked
2025-02-25 08:57:02,204 33768 [DEBUG] -  - Pending File Rename Operations = Ignored
2025-02-25 08:57:02,204 33768 [DEBUG] -  - Pending Windows Package Installer = Checked
2025-02-25 08:57:02,205 33768 [DEBUG] -  - Pending Windows Package Installer SysWow64 = Checked
2025-02-25 08:57:02,207 33768 [DEBUG] - Cache Folder Lockdown Checks:
2025-02-25 08:57:02,207 33768 [DEBUG] -  - Elevated State = Checked
2025-02-25 08:57:02,208 33768 [DEBUG] -  - Folder Exists = Checked
2025-02-25 08:57:02,210 33768 [DEBUG] -  - Folder lockdown = Checked
2025-02-25 08:57:02,212 33768 [INFO ] - 3 validations performed. 3 success(es), 0 warning(s), and 0 error(s).
2025-02-25 08:57:02,218 33768 [DEBUG] - The source 'https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
2025-02-25 08:57:02,219 33768 [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.
2025-02-25 08:57:02,223 33768 [DEBUG] - Configuration: CommandName='upgrade'|
CacheLocation='C:\Users\ladm_dei45029.EU\AppData\Local\Temp\chocolatey'|

CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://community.chocolatey.org/api/v2/'|SourceType='normal'|
IncludeConfiguredSources='False'|ShowOnlineHelp='False'|Debug='False'|
Verbose='False'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|
DisableCompatibilityChecks='False'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='totalcommander'|
AllVersions='False'|
SkipPackageInstallProvider='False'|SkipHookScripts='False'|
PackageNames='totalcommander'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
CacheExpirationInMinutes='30'|AllowDowngrade='False'|
ForceDependencies='False'|PinPackage='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.19045.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='2.4.2.0'|
Information.ChocolateyProductVersion='2.4.2'|
Information.FullName='choco, Version=2.4.2.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='LADM_DEI45029'|Information.UserDomainName='EU'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|
Information.IsLicensedAssemblyLoaded='False'|
Information.LicenseType='Foss'|Information.CurrentDirectory='C:\'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='False'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='True'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='True'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
Features.UsePackageHashValidation='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'|
ListCommand.ExplicitPageSize='False'|
ListCommand.ExplicitSource='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
UpgradeCommand.IgnorePinned='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'|
2025-02-25 08:57:02,224 33768 [DEBUG] - _ Chocolatey:ChocolateyUpgradeCommand - Normal Run Mode _
2025-02-25 08:57:02,226 33768 [INFO ] - Upgrading the following packages:
2025-02-25 08:57:02,227 33768 [INFO ] - totalcommander
2025-02-25 08:57:02,228 33768 [INFO ] - By upgrading, you accept licenses for the packages.
2025-02-25 08:57:02,322 33768 [DEBUG] - Process Tree: Chocolatey CLI => Chocolatey CLI => pwsh => WindowsTerminal
2025-02-25 08:57:02,327 33768 [DEBUG] - Updating User Agent to 'Chocolatey Command Line/2.4.2 (Chocolatey CLI) via NuGet Client/6.4.1 (Microsoft Windows NT 10.0.19045.0)'.
2025-02-25 08:57:02,389 33768 [DEBUG] - Running list with the following filter = ''
2025-02-25 08:57:02,390 33768 [DEBUG] - --- Start of List ---
2025-02-25 08:57:02,398 33768 [DEBUG] - Process Tree: Chocolatey CLI => Chocolatey CLI => pwsh => WindowsTerminal
2025-02-25 08:57:02,398 33768 [DEBUG] - Updating User Agent to 'Chocolatey Command Line/2.4.2 (Chocolatey CLI) via NuGet Client/6.4.1 (Microsoft Windows NT 10.0.19045.0)'.
2025-02-25 08:57:02,400 33768 [DEBUG] - Resolving resource PackageSearchResource for source C:\ProgramData\chocolatey\lib
                                       <removed list of packages>
2025-02-25 08:57:02,925 33768 [DEBUG] - --- End of List ---
2025-02-25 08:57:02,932 33768 [DEBUG] - Resolving resource ListResource for source https://community.chocolatey.org/api/v2/
2025-02-25 08:57:03,370 33768 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/$metadata
2025-02-25 08:57:03,382 33768 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages()?$filter=(tolower(Id)%20eq%20'totalcommander')%20and%20IsLatestVersion&semVerLevel=2.0.0
2025-02-25 08:57:03,395 33768 [WARN ] - 
You have totalcommander v11.50.0 installed. Version 11.51.0 is available based on your source(s).
2025-02-25 08:57:03,398 33768 [DEBUG] - Resolving resource DependencyInfoResource for source https://community.chocolatey.org/api/v2/
2025-02-25 08:57:03,404 33768 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/Packages(Id='TotalCommander',Version='11.51.0')
2025-02-25 08:57:03,416 33768 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey-core.extension'&semVerLevel=2.0.0
2025-02-25 08:57:03,418 33768 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey-core.extension'&$skiptoken='1712192601110','1.0.1','chocolatey-core.extension'
2025-02-25 08:57:03,424 33768 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='chocolatey-compatibility.extension'&semVerLevel=2.0.0
2025-02-25 08:57:03,425 33768 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='chocolatey-compatibility.extension'&$skiptoken='1738880350903','1.0.0','chocolatey-compatibility.extension'
2025-02-25 08:57:03,426 33768 [INFO ] - [NuGet]   CACHE https://community.chocolatey.org/api/v2/FindPackagesById()?id='autohotkey.portable'&semVerLevel=2.0.0
2025-02-25 08:57:03,429 33768 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='autohotkey.portable'&$skiptoken='1712320403510','2.0.0-a103','autohotkey.portable'
2025-02-25 08:57:03,434 33768 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='autohotkey.portable'&$skiptoken='1712317710923','1.1.33.11','autohotkey.portable'
2025-02-25 08:57:03,436 33768 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='autohotkey.portable'&$skiptoken='1712315902663','2.0.0-a119','autohotkey.portable'
2025-02-25 08:57:03,439 33768 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='autohotkey.portable'&$skiptoken='1712314106430','1.1.21.3','autohotkey.portable'
2025-02-25 08:57:03,441 33768 [INFO ] - [NuGet]   CACHE http://community.chocolatey.org/api/v2/FindPackagesById?id='autohotkey.portable'&$skiptoken='1712313202383','1.1.30.1','autohotkey.portable'
2025-02-25 08:57:03,567 33768 [INFO ] - [NuGet] Resolving dependency information took 0 ms
2025-02-25 08:57:04,247 33768 [DEBUG] - Running beforeModify step for 'totalcommander'
2025-02-25 08:57:04,252 33768 [DEBUG] - Backing up package files for 'totalcommander'
2025-02-25 08:57:04,292 33768 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bkp\totalcommander".
2025-02-25 08:57:04,293 33768 [DEBUG] - Moving C:\ProgramData\chocolatey\lib\totalcommander to C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0
2025-02-25 08:57:04,295 33768 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\totalcommander'
 to 'C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0'
2025-02-25 08:57:06,303 33768 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\totalcommander".
2025-02-25 08:57:06,308 33768 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0\totalcommander.nupkg"
 to "C:\ProgramData\chocolatey\lib\totalcommander\totalcommander.nupkg".
2025-02-25 08:57:06,316 33768 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0\totalcommander.nuspec"
 to "C:\ProgramData\chocolatey\lib\totalcommander\totalcommander.nuspec".
2025-02-25 08:57:06,319 33768 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\totalcommander\legal".
2025-02-25 08:57:06,321 33768 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0\legal\LICENSE.txt"
 to "C:\ProgramData\chocolatey\lib\totalcommander\legal\LICENSE.txt".
2025-02-25 08:57:06,324 33768 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0\legal\VERIFICATION.txt"
 to "C:\ProgramData\chocolatey\lib\totalcommander\legal\VERIFICATION.txt".
2025-02-25 08:57:06,327 33768 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib\totalcommander\tools".
2025-02-25 08:57:06,328 33768 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0\tools\.skipAutoUninstall"
 to "C:\ProgramData\chocolatey\lib\totalcommander\tools\.skipAutoUninstall".
2025-02-25 08:57:06,330 33768 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0\tools\chocolateyInstall.ps1"
 to "C:\ProgramData\chocolatey\lib\totalcommander\tools\chocolateyInstall.ps1".
2025-02-25 08:57:06,333 33768 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0\tools\chocolateyUninstall.ahk"
 to "C:\ProgramData\chocolatey\lib\totalcommander\tools\chocolateyUninstall.ahk".
2025-02-25 08:57:06,335 33768 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0\tools\chocolateyUninstall.ps1"
 to "C:\ProgramData\chocolatey\lib\totalcommander\tools\chocolateyUninstall.ps1".
2025-02-25 08:57:06,338 33768 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0\tools\helpers.ps1"
 to "C:\ProgramData\chocolatey\lib\totalcommander\tools\helpers.ps1".
2025-02-25 08:57:06,339 33768 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0\tools\tcmd1151x32_64.exe.ignore"
 to "C:\ProgramData\chocolatey\lib\totalcommander\tools\tcmd1151x32_64.exe.ignore".
2025-02-25 08:57:07,848 33768 [DEBUG] - Deleting file C:\ProgramData\chocolatey\lib\totalcommander\tools\chocolateyInstall.ps1
2025-02-25 08:57:07,849 33768 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\totalcommander\tools\chocolateyInstall.ps1".
2025-02-25 08:57:07,850 33768 [DEBUG] - Deleting file C:\ProgramData\chocolatey\lib\totalcommander\tools\chocolateyUninstall.ps1
2025-02-25 08:57:07,850 33768 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\totalcommander\tools\chocolateyUninstall.ps1".
2025-02-25 08:57:07,853 33768 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\totalcommander\tools\tcmd1151x32_64.exe.ignore".
2025-02-25 08:57:07,855 33768 [DEBUG] - Ensuring removal of installation files.
2025-02-25 08:57:07,855 33768 [DEBUG] - Removing nupkg if it still exists.
2025-02-25 08:57:07,856 33768 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\totalcommander\totalcommander.nupkg".
2025-02-25 08:57:07,857 33768 [DEBUG] - Resolving resource DownloadResource for source https://community.chocolatey.org/api/v2/
2025-02-25 08:57:07,886 33768 [DEBUG] - Attempting to delete file "".
2025-02-25 08:57:07,887 33768 [INFO ] - Downloading package from source 'https://community.chocolatey.org/api/v2/'
2025-02-25 08:57:07,888 33768 [DEBUG] - Package download location 'https://community.chocolatey.org/api/v2/package/TotalCommander/11.51.0'
2025-02-25 08:57:07,895 33768 [INFO ] - [NuGet]   GET https://community.chocolatey.org/api/v2/package/TotalCommander/11.51.0
2025-02-25 08:57:08,232 33768 [INFO ] - [NuGet]   OK https://community.chocolatey.org/api/v2/package/TotalCommander/11.51.0 335ms
2025-02-25 08:57:08,240 33768 [INFO ] - [NuGet] Acquiring lock for the installation of TotalCommander 11.51.0
2025-02-25 08:57:08,251 33768 [INFO ] - [NuGet] Acquired lock for the installation of TotalCommander 11.51.0
2025-02-25 08:57:08,860 33768 [INFO ] - [NuGet] Installed TotalCommander 11.51.0 from https://community.chocolatey.org/api/v2/ with content hash cGBCntf9mDIYYXjT7Ohx1riEzjqioUfqiVbenlO/bMfffYfi2thmDURE75zEi7uO0AYt09ycSQRMS+rixmd1JQ==.
2025-02-25 08:57:08,870 33768 [DEBUG] - Skipping package hash validation as feature 'usePackageHashValidation' is not enabled.
2025-02-25 08:57:08,924 33768 [INFO ] - [NuGet] Adding package 'TotalCommander.11.51.0 : autohotkey.portable [2.0.0, ), chocolatey-core.extension [1.3.3, )' to folder 'C:\ProgramData\chocolatey\lib'
2025-02-25 08:57:08,950 33768 [INFO ] - [NuGet] Added package 'TotalCommander.11.51.0 : autohotkey.portable [2.0.0, ), chocolatey-core.extension [1.3.3, )' to folder 'C:\ProgramData\chocolatey\lib'
2025-02-25 08:57:08,952 33768 [DEBUG] - Attempting to delete file "C:\Users\ladm_dei45029.EU\AppData\Local\Temp\chocolatey\ChocolateyScratch\TotalCommander/11.51.0\TotalCommander.11.51.0.nupkg".
2025-02-25 08:57:08,954 33768 [DEBUG] - Attempting to delete file "C:\Users\ladm_dei45029.EU\AppData\Local\Temp\chocolatey\ChocolateyScratch\TotalCommander/11.51.0\.nupkg.metadata".
2025-02-25 08:57:08,954 33768 [DEBUG] - Attempting to delete file "C:\Users\ladm_dei45029.EU\AppData\Local\Temp\chocolatey\ChocolateyScratch\TotalCommander/11.51.0\TotalCommander.11.51.0.nupkg.sha512".
2025-02-25 08:57:08,955 33768 [INFO ] - 
totalcommander v11.51.0 [Approved]
2025-02-25 08:57:08,968 33768 [INFO ] - totalcommander package files upgrade completed. Performing other installation steps.
2025-02-25 08:57:09,116 33768 [DEBUG] - Setting installer args for TotalCommander
2025-02-25 08:57:09,116 33768 [DEBUG] - Setting package parameters for TotalCommander
2025-02-25 08:57:09,117 33768 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\chocolateyInstall.ps1':
2025-02-25 08:57:09,121 33768 [DEBUG] - $ErrorActionPreference = 'Stop'

$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
$tcExeName = 'totalcmd.exe'
. $toolsPath\helpers.ps1

# Total Commander install switches
# https://www.ghisler.ch/wiki/index.php?title=Installer#Description_of_switches_and_parameters
$pp = Get-PackageParameters

# Add a desktop icon
$installArgs = '/A1H1U1G1'
if ($pp['NoDesktopIcon']) {
  $installArgs += 'D0'
}
else {
  $installArgs += 'D1'
}

# Installation path - this must be last
if ($pp.InstallPath) {
  $installArgs += " $($pp.InstallPath)"
}

$packageArgs = @{
    packageName    = $env:ChocolateyPackageName
    fileType       = 'exe'
    file           = "$toolsPath\tcmd1151x32_64.exe"
    silentArgs     = $installArgs
    validExitCodes = @(0)
    softwareName   = 'Total Commander*'
}

Install-ChocolateyInstallPackage @packageArgs
Remove-Item -Path "$toolsPath\*.exe" -ErrorAction SilentlyContinue

$packageName = $env:ChocolateyPackageName
$installLocation = Get-TCInstallLocation
if (-not $installLocation)  {
  Write-Warning "Can't find $packageName install location"
  return
}
else {
  Write-Host "$packageName installed to '$installLocation'"
}

Write-Host 'Setting system environment COMMANDER_PATH'
Set-EnvironmentVariable -Name 'COMMANDER_PATH' -Value $installLocation -Scope Machine

if ($pp.ShellExtension) {
  Set-TCShellExtension
}

if ($pp['DefaultFM'] -and $pp['ResetDefaultFM']) {
  Write-Warning 'You have provided both the /DefaultFM and /ResetDefaultFM switches which are contradictory. Will not use either.'
}
else {
  if ($pp['ResetDefaultFM'] -eq $true) {
    Set-ExplorerAsDefaultFM
  }
  elseif ($pp['DefaultFM'] -eq $true) {
    Set-TCAsDefaultFM
  }
}

Register-Application -ExePath "$installLocation\$tcExeName" -Name 'tc'
Write-Host "$packageName registered as tc"

2025-02-25 08:57:09,132 33768 [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:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null']
2025-02-25 08:57:09,137 33768 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=de-DE, PublicKeyToken=31bf3856ad364e35, requested by ''
2025-02-25 08:57:10,051 33768 [DEBUG] - Host version is 5.1.19041.1, PowerShell Version is '5.1.19041.5369' and CLR Version is '4.0.30319.42000'.
2025-02-25 08:57:12,698 33768 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\helpers\Chocolatey.PowerShell.dll'.
2025-02-25 08:57:12,712 33768 [DEBUG] - Returning loaded assembly type for 'Chocolatey.PowerShell'
2025-02-25 08:57:12,715 33768 [INFO ] - VERBOSE: Importing cmdlet 'Get-EnvironmentVariable'.
2025-02-25 08:57:12,715 33768 [INFO ] - VERBOSE: Importing cmdlet 'Get-EnvironmentVariableNames'.
2025-02-25 08:57:12,716 33768 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPath'.
2025-02-25 08:57:12,716 33768 [INFO ] - VERBOSE: Importing cmdlet 'Set-EnvironmentVariable'.
2025-02-25 08:57:12,716 33768 [INFO ] - VERBOSE: Importing cmdlet 'Test-ProcessAdminRights'.
2025-02-25 08:57:12,717 33768 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyPath'.
2025-02-25 08:57:12,717 33768 [INFO ] - VERBOSE: Importing cmdlet 'Update-SessionEnvironment'.
2025-02-25 08:57:12,730 33768 [DEBUG] - Cmdlets exported from Chocolatey.PowerShell.dll
2025-02-25 08:57:12,732 33768 [DEBUG] - Get-EnvironmentVariable
2025-02-25 08:57:12,733 33768 [DEBUG] - Get-EnvironmentVariableNames
2025-02-25 08:57:12,733 33768 [DEBUG] - Install-ChocolateyPath
2025-02-25 08:57:12,733 33768 [DEBUG] - Set-EnvironmentVariable
2025-02-25 08:57:12,734 33768 [DEBUG] - Test-ProcessAdminRights
2025-02-25 08:57:12,734 33768 [DEBUG] - Uninstall-ChocolateyPath
2025-02-25 08:57:12,734 33768 [DEBUG] - Update-SessionEnvironment
2025-02-25 08:57:12,740 33768 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2025-02-25 08:57:12,740 33768 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2025-02-25 08:57:12,741 33768 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2025-02-25 08:57:12,741 33768 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2025-02-25 08:57:12,741 33768 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2025-02-25 08:57:12,742 33768 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2025-02-25 08:57:12,742 33768 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2025-02-25 08:57:12,743 33768 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2025-02-25 08:57:12,743 33768 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2025-02-25 08:57:12,743 33768 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2025-02-25 08:57:12,744 33768 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2025-02-25 08:57:12,744 33768 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2025-02-25 08:57:12,744 33768 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2025-02-25 08:57:12,745 33768 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2025-02-25 08:57:12,745 33768 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2025-02-25 08:57:12,746 33768 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2025-02-25 08:57:12,746 33768 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2025-02-25 08:57:12,746 33768 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2025-02-25 08:57:12,747 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2025-02-25 08:57:12,747 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2025-02-25 08:57:12,747 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2025-02-25 08:57:12,748 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2025-02-25 08:57:12,748 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2025-02-25 08:57:12,749 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2025-02-25 08:57:12,749 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2025-02-25 08:57:12,749 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2025-02-25 08:57:12,750 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2025-02-25 08:57:12,750 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2025-02-25 08:57:12,751 33768 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2025-02-25 08:57:12,751 33768 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2025-02-25 08:57:12,751 33768 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2025-02-25 08:57:12,752 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2025-02-25 08:57:12,752 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2025-02-25 08:57:12,752 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2025-02-25 08:57:12,753 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2025-02-25 08:57:12,753 33768 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2025-02-25 08:57:12,755 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariable'.
2025-02-25 08:57:12,755 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariableNames'.
2025-02-25 08:57:12,755 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPath'.
2025-02-25 08:57:12,756 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Set-EnvironmentVariable'.
2025-02-25 08:57:12,756 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Test-ProcessAdminRights'.
2025-02-25 08:57:12,757 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyPath'.
2025-02-25 08:57:12,757 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Update-SessionEnvironment'.
2025-02-25 08:57:12,758 33768 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2025-02-25 08:57:12,759 33768 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2025-02-25 08:57:12,759 33768 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2025-02-25 08:57:12,760 33768 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2025-02-25 08:57:12,760 33768 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2025-02-25 08:57:12,761 33768 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2025-02-25 08:57:12,761 33768 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2025-02-25 08:57:12,762 33768 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2025-02-25 08:57:12,762 33768 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2025-02-25 08:57:12,765 33768 [DEBUG] - Loading community extensions
2025-02-25 08:57:12,783 33768 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'
2025-02-25 08:57:12,784 33768 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'.
2025-02-25 08:57:12,834 33768 [DEBUG] - Function 'Get-PackageParameters' exists, ignoring export.
2025-02-25 08:57:12,835 33768 [DEBUG] - Function 'Get-UninstallRegistryKey' exists, ignoring export.
2025-02-25 08:57:12,836 33768 [DEBUG] - Exporting function 'Install-ChocolateyDesktopLink' for backwards compatibility
2025-02-25 08:57:12,855 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2025-02-25 08:57:12,856 33768 [DEBUG] - Exporting function 'Write-ChocolateyFailure' for backwards compatibility
2025-02-25 08:57:12,875 33768 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2025-02-25 08:57:12,876 33768 [DEBUG] - Exporting function 'Write-ChocolateySuccess' for backwards compatibility
2025-02-25 08:57:12,896 33768 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2025-02-25 08:57:12,897 33768 [DEBUG] - Exporting function 'Write-FileUpdateLog' for backwards compatibility
2025-02-25 08:57:12,916 33768 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2025-02-25 08:57:12,922 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2025-02-25 08:57:12,923 33768 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2025-02-25 08:57:12,923 33768 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2025-02-25 08:57:12,923 33768 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2025-02-25 08:57:12,927 33768 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'
2025-02-25 08:57:12,927 33768 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.
2025-02-25 08:57:13,085 33768 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2025-02-25 08:57:13,085 33768 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2025-02-25 08:57:13,086 33768 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2025-02-25 08:57:13,086 33768 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2025-02-25 08:57:13,087 33768 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2025-02-25 08:57:13,087 33768 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2025-02-25 08:57:13,088 33768 [INFO ] - VERBOSE: Exporting function 'Remove-Process'.
2025-02-25 08:57:13,088 33768 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2025-02-25 08:57:13,089 33768 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2025-02-25 08:57:13,089 33768 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2025-02-25 08:57:13,090 33768 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2025-02-25 08:57:13,090 33768 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2025-02-25 08:57:13,091 33768 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2025-02-25 08:57:13,092 33768 [INFO ] - VERBOSE: Importing function 'Remove-Process'.
2025-02-25 08:57:13,092 33768 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'
2025-02-25 08:57:13,093 33768 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-dotnetfx\chocolatey-dotnetfx.psm1'.
2025-02-25 08:57:13,330 33768 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'.
2025-02-25 08:57:13,331 33768 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'.
2025-02-25 08:57:13,331 33768 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'.
2025-02-25 08:57:13,331 33768 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'.
2025-02-25 08:57:13,332 33768 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-font-helpers\FontHelp.psm1'
2025-02-25 08:57:13,333 33768 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-font-helpers\FontHelp.psm1'.
2025-02-25 08:57:13,410 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFont'.
2025-02-25 08:57:13,411 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyFont'.
2025-02-25 08:57:13,411 33768 [INFO ] - VERBOSE: Exporting alias 'Add-Font'.
2025-02-25 08:57:13,412 33768 [INFO ] - VERBOSE: Exporting alias 'Remove-Font'.
2025-02-25 08:57:13,412 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFont'.
2025-02-25 08:57:13,412 33768 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyFont'.
2025-02-25 08:57:13,413 33768 [INFO ] - VERBOSE: Importing alias 'Add-Font'.
2025-02-25 08:57:13,414 33768 [INFO ] - VERBOSE: Importing alias 'Remove-Font'.
2025-02-25 08:57:13,414 33768 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-visualstudio\chocolatey-visualstudio.extension.psm1'
2025-02-25 08:57:13,415 33768 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-visualstudio\chocolatey-visualstudio.extension.psm1'.
2025-02-25 08:57:14,669 33768 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioComponent'.
2025-02-25 08:57:14,670 33768 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioWorkload'.
2025-02-25 08:57:14,670 33768 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstaller'.
2025-02-25 08:57:14,670 33768 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstallerHealth'.
2025-02-25 08:57:14,671 33768 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstance'.
2025-02-25 08:57:14,671 33768 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioVsixInstaller'.
2025-02-25 08:57:14,672 33768 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudio'.
2025-02-25 08:57:14,672 33768 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioInstaller'.
2025-02-25 08:57:14,672 33768 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioVsixExtension'.
2025-02-25 08:57:14,673 33768 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioComponent'.
2025-02-25 08:57:14,673 33768 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioProduct'.
2025-02-25 08:57:14,674 33768 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioWorkload'.
2025-02-25 08:57:14,674 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudio'.
2025-02-25 08:57:14,674 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudioVsixExtension'.
2025-02-25 08:57:14,675 33768 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioComponent'.
2025-02-25 08:57:14,675 33768 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioWorkload'.
2025-02-25 08:57:14,676 33768 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstaller'.
2025-02-25 08:57:14,676 33768 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstallerHealth'.
2025-02-25 08:57:14,677 33768 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstance'.
2025-02-25 08:57:14,677 33768 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioVsixInstaller'.
2025-02-25 08:57:14,677 33768 [INFO ] - VERBOSE: Importing function 'Install-VisualStudio'.
2025-02-25 08:57:14,678 33768 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioInstaller'.
2025-02-25 08:57:14,678 33768 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioVsixExtension'.
2025-02-25 08:57:14,678 33768 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioComponent'.
2025-02-25 08:57:14,679 33768 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioProduct'.
2025-02-25 08:57:14,679 33768 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioWorkload'.
2025-02-25 08:57:14,680 33768 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudio'.
2025-02-25 08:57:14,680 33768 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudioVsixExtension'.
2025-02-25 08:57:14,681 33768 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2025-02-25 08:57:14,682 33768 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2025-02-25 08:57:14,959 33768 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2025-02-25 08:57:14,960 33768 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2025-02-25 08:57:14,960 33768 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2025-02-25 08:57:14,961 33768 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2025-02-25 08:57:14,963 33768 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2025-02-25 08:57:14,964 33768 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2025-02-25 08:57:14,964 33768 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2025-02-25 08:57:14,965 33768 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2025-02-25 08:57:14,965 33768 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2025-02-25 08:57:14,965 33768 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2025-02-25 08:57:14,966 33768 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2025-02-25 08:57:14,966 33768 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2025-02-25 08:57:14,966 33768 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2025-02-25 08:57:14,967 33768 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2025-02-25 08:57:14,967 33768 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2025-02-25 08:57:14,968 33768 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2025-02-25 08:57:14,968 33768 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2025-02-25 08:57:14,968 33768 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2025-02-25 08:57:14,969 33768 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2025-02-25 08:57:14,969 33768 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2025-02-25 08:57:14,970 33768 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2025-02-25 08:57:14,970 33768 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2025-02-25 08:57:14,970 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2025-02-25 08:57:14,971 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2025-02-25 08:57:14,971 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2025-02-25 08:57:14,971 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2025-02-25 08:57:14,972 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2025-02-25 08:57:14,972 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2025-02-25 08:57:14,973 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2025-02-25 08:57:14,973 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2025-02-25 08:57:14,973 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2025-02-25 08:57:14,974 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2025-02-25 08:57:14,974 33768 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2025-02-25 08:57:14,974 33768 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2025-02-25 08:57:14,975 33768 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2025-02-25 08:57:14,975 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2025-02-25 08:57:14,976 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2025-02-25 08:57:14,976 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2025-02-25 08:57:14,976 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2025-02-25 08:57:14,977 33768 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2025-02-25 08:57:14,977 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'.
2025-02-25 08:57:14,978 33768 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'.
2025-02-25 08:57:14,978 33768 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'.
2025-02-25 08:57:14,978 33768 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'.
2025-02-25 08:57:14,979 33768 [INFO ] - VERBOSE: Exporting function 'Get-AppInstallLocation'.
2025-02-25 08:57:14,979 33768 [INFO ] - VERBOSE: Exporting function 'Get-AvailableDriveLetter'.
2025-02-25 08:57:14,979 33768 [INFO ] - VERBOSE: Exporting function 'Get-EffectiveProxy'.
2025-02-25 08:57:14,980 33768 [INFO ] - VERBOSE: Exporting function 'Get-PackageCacheLocation'.
2025-02-25 08:57:14,984 33768 [INFO ] - VERBOSE: Exporting function 'Get-WebContent'.
2025-02-25 08:57:14,985 33768 [INFO ] - VERBOSE: Exporting function 'Register-Application'.
2025-02-25 08:57:14,985 33768 [INFO ] - VERBOSE: Exporting function 'Remove-Process'.
2025-02-25 08:57:14,986 33768 [INFO ] - VERBOSE: Exporting function 'Install-DotNetDevPack'.
2025-02-25 08:57:14,986 33768 [INFO ] - VERBOSE: Exporting function 'Install-DotNetFramework'.
2025-02-25 08:57:14,986 33768 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFont'.
2025-02-25 08:57:14,987 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyFont'.
2025-02-25 08:57:14,987 33768 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioComponent'.
2025-02-25 08:57:14,987 33768 [INFO ] - VERBOSE: Exporting function 'Add-VisualStudioWorkload'.
2025-02-25 08:57:14,988 33768 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstaller'.
2025-02-25 08:57:14,988 33768 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstallerHealth'.
2025-02-25 08:57:14,989 33768 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioInstance'.
2025-02-25 08:57:14,989 33768 [INFO ] - VERBOSE: Exporting function 'Get-VisualStudioVsixInstaller'.
2025-02-25 08:57:14,989 33768 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudio'.
2025-02-25 08:57:14,990 33768 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioInstaller'.
2025-02-25 08:57:14,990 33768 [INFO ] - VERBOSE: Exporting function 'Install-VisualStudioVsixExtension'.
2025-02-25 08:57:14,991 33768 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioComponent'.
2025-02-25 08:57:14,991 33768 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioProduct'.
2025-02-25 08:57:14,991 33768 [INFO ] - VERBOSE: Exporting function 'Remove-VisualStudioWorkload'.
2025-02-25 08:57:14,992 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudio'.
2025-02-25 08:57:14,992 33768 [INFO ] - VERBOSE: Exporting function 'Uninstall-VisualStudioVsixExtension'.
2025-02-25 08:57:14,992 33768 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2025-02-25 08:57:14,993 33768 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2025-02-25 08:57:14,993 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariable'.
2025-02-25 08:57:14,994 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariableNames'.
2025-02-25 08:57:14,994 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPath'.
2025-02-25 08:57:14,994 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Set-EnvironmentVariable'.
2025-02-25 08:57:14,995 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Test-ProcessAdminRights'.
2025-02-25 08:57:14,995 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyPath'.
2025-02-25 08:57:14,995 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Update-SessionEnvironment'.
2025-02-25 08:57:14,996 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariable'.
2025-02-25 08:57:14,996 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Get-EnvironmentVariableNames'.
2025-02-25 08:57:14,997 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Install-ChocolateyPath'.
2025-02-25 08:57:14,997 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Set-EnvironmentVariable'.
2025-02-25 08:57:14,997 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Test-ProcessAdminRights'.
2025-02-25 08:57:14,998 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Uninstall-ChocolateyPath'.
2025-02-25 08:57:14,998 33768 [INFO ] - VERBOSE: Exporting cmdlet 'Update-SessionEnvironment'.
2025-02-25 08:57:14,998 33768 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2025-02-25 08:57:14,999 33768 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2025-02-25 08:57:14,999 33768 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2025-02-25 08:57:15,000 33768 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2025-02-25 08:57:15,000 33768 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2025-02-25 08:57:15,000 33768 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2025-02-25 08:57:15,001 33768 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2025-02-25 08:57:15,001 33768 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2025-02-25 08:57:15,001 33768 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2025-02-25 08:57:15,002 33768 [INFO ] - VERBOSE: Exporting alias 'Add-Font'.
2025-02-25 08:57:15,002 33768 [INFO ] - VERBOSE: Exporting alias 'Remove-Font'.
2025-02-25 08:57:15,003 33768 [INFO ] - VERBOSE: Importing cmdlet 'Get-EnvironmentVariable'.
2025-02-25 08:57:15,003 33768 [INFO ] - VERBOSE: Importing cmdlet 'Get-EnvironmentVariableNames'.
2025-02-25 08:57:15,003 33768 [INFO ] - VERBOSE: Importing cmdlet 'Install-ChocolateyPath'.
2025-02-25 08:57:15,004 33768 [INFO ] - VERBOSE: Importing cmdlet 'Set-EnvironmentVariable'.
2025-02-25 08:57:15,005 33768 [INFO ] - VERBOSE: Importing cmdlet 'Test-ProcessAdminRights'.
2025-02-25 08:57:15,005 33768 [INFO ] - VERBOSE: Importing cmdlet 'Uninstall-ChocolateyPath'.
2025-02-25 08:57:15,006 33768 [INFO ] - VERBOSE: Importing cmdlet 'Update-SessionEnvironment'.
2025-02-25 08:57:15,006 33768 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioComponent'.
2025-02-25 08:57:15,007 33768 [INFO ] - VERBOSE: Importing function 'Add-VisualStudioWorkload'.
2025-02-25 08:57:15,007 33768 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2025-02-25 08:57:15,008 33768 [INFO ] - VERBOSE: Importing function 'Get-AppInstallLocation'.
2025-02-25 08:57:15,008 33768 [INFO ] - VERBOSE: Importing function 'Get-AvailableDriveLetter'.
2025-02-25 08:57:15,009 33768 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2025-02-25 08:57:15,009 33768 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyConfigValue'.
2025-02-25 08:57:15,009 33768 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyPath'.
2025-02-25 08:57:15,010 33768 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2025-02-25 08:57:15,010 33768 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2025-02-25 08:57:15,011 33768 [INFO ] - VERBOSE: Importing function 'Get-EffectiveProxy'.
2025-02-25 08:57:15,011 33768 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2025-02-25 08:57:15,012 33768 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2025-02-25 08:57:15,012 33768 [INFO ] - VERBOSE: Importing function 'Get-PackageCacheLocation'.
2025-02-25 08:57:15,013 33768 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2025-02-25 08:57:15,013 33768 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2025-02-25 08:57:15,013 33768 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2025-02-25 08:57:15,014 33768 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2025-02-25 08:57:15,014 33768 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2025-02-25 08:57:15,015 33768 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2025-02-25 08:57:15,015 33768 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstaller'.
2025-02-25 08:57:15,016 33768 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstallerHealth'.
2025-02-25 08:57:15,016 33768 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioInstance'.
2025-02-25 08:57:15,016 33768 [INFO ] - VERBOSE: Importing function 'Get-VisualStudioVsixInstaller'.
2025-02-25 08:57:15,017 33768 [INFO ] - VERBOSE: Importing function 'Get-WebContent'.
2025-02-25 08:57:15,017 33768 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2025-02-25 08:57:15,018 33768 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2025-02-25 08:57:15,018 33768 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2025-02-25 08:57:15,019 33768 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2025-02-25 08:57:15,019 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyDesktopLink'.
2025-02-25 08:57:15,020 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2025-02-25 08:57:15,020 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2025-02-25 08:57:15,021 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2025-02-25 08:57:15,021 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFont'.
2025-02-25 08:57:15,021 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2025-02-25 08:57:15,022 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2025-02-25 08:57:15,022 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2025-02-25 08:57:15,023 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2025-02-25 08:57:15,023 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2025-02-25 08:57:15,024 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2025-02-25 08:57:15,024 33768 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2025-02-25 08:57:15,025 33768 [INFO ] - VERBOSE: Importing function 'Install-DotNetDevPack'.
2025-02-25 08:57:15,025 33768 [INFO ] - VERBOSE: Importing function 'Install-DotNetFramework'.
2025-02-25 08:57:15,025 33768 [INFO ] - VERBOSE: Importing function 'Install-VisualStudio'.
2025-02-25 08:57:15,026 33768 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioInstaller'.
2025-02-25 08:57:15,026 33768 [INFO ] - VERBOSE: Importing function 'Install-VisualStudioVsixExtension'.
2025-02-25 08:57:15,027 33768 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2025-02-25 08:57:15,027 33768 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2025-02-25 08:57:15,028 33768 [INFO ] - VERBOSE: Importing function 'Register-Application'.
2025-02-25 08:57:15,028 33768 [INFO ] - VERBOSE: Importing function 'Remove-Process'.
2025-02-25 08:57:15,029 33768 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioComponent'.
2025-02-25 08:57:15,029 33768 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioProduct'.
2025-02-25 08:57:15,030 33768 [INFO ] - VERBOSE: Importing function 'Remove-VisualStudioWorkload'.
2025-02-25 08:57:15,030 33768 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2025-02-25 08:57:15,030 33768 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2025-02-25 08:57:15,031 33768 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2025-02-25 08:57:15,031 33768 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2025-02-25 08:57:15,032 33768 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2025-02-25 08:57:15,032 33768 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyFont'.
2025-02-25 08:57:15,033 33768 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2025-02-25 08:57:15,033 33768 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2025-02-25 08:57:15,034 33768 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudio'.
2025-02-25 08:57:15,034 33768 [INFO ] - VERBOSE: Importing function 'Uninstall-VisualStudioVsixExtension'.
2025-02-25 08:57:15,035 33768 [INFO ] - VERBOSE: Importing function 'Write-ChocolateyFailure'.
2025-02-25 08:57:15,035 33768 [INFO ] - VERBOSE: Importing function 'Write-ChocolateySuccess'.
2025-02-25 08:57:15,035 33768 [INFO ] - VERBOSE: Importing function 'Write-FileUpdateLog'.
2025-02-25 08:57:15,036 33768 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2025-02-25 08:57:15,036 33768 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2025-02-25 08:57:15,037 33768 [INFO ] - VERBOSE: Importing alias 'Add-Font'.
2025-02-25 08:57:15,037 33768 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2025-02-25 08:57:15,038 33768 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2025-02-25 08:57:15,038 33768 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2025-02-25 08:57:15,038 33768 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2025-02-25 08:57:15,039 33768 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2025-02-25 08:57:15,039 33768 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2025-02-25 08:57:15,040 33768 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2025-02-25 08:57:15,040 33768 [INFO ] - VERBOSE: Importing alias 'Remove-Font'.
2025-02-25 08:57:15,041 33768 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2025-02-25 08:57:15,139 33768 [DEBUG] - ---------------------------Script Execution---------------------------
2025-02-25 08:57:15,140 33768 [DEBUG] - Running 'ChocolateyScriptRunner' for TotalCommander v11.51.0 with packageScript 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\TotalCommander', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '',
2025-02-25 08:57:15,145 33768 [DEBUG] - Running package script 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\chocolateyInstall.ps1'
2025-02-25 08:57:15,197 33768 [DEBUG] - Running Get-PackageParameters 
2025-02-25 08:57:15,198 33768 [DEBUG] - Parsing $env:ChocolateyPackageParameters and $env:ChocolateyPackageParametersSensitive for parameters
2025-02-25 08:57:15,222 33768 [DEBUG] - Running Install-ChocolateyInstallPackage -silentArgs '/A1H1U1G1D1' -file 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\tcmd1151x32_64.exe' -fileType 'exe' -validExitCodes '0' -packageName 'TotalCommander' 
2025-02-25 08:57:15,224 33768 [DEBUG] - Running Get-OSArchitectureWidth -compare '32' 
2025-02-25 08:57:15,234 33768 [INFO ] - Installing TotalCommander...
2025-02-25 08:57:15,291 33768 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0' -workingDirectory 'C:\ProgramData\chocolatey\lib\TotalCommander\tools' -statements '/A1H1U1G1D1' -exeToRun 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\tcmd1151x32_64.exe' 
2025-02-25 08:57:15,293 33768 [DEBUG] - Running Test-ProcessAdminRights
2025-02-25 08:57:15,294 33768 [DEBUG] - Test-ProcessAdminRights: returning True
2025-02-25 08:57:15,294 33768 [DEBUG] - Finishing 'Test-ProcessAdminRights'
2025-02-25 08:57:15,300 33768 [DEBUG] - Elevating permissions and running ["C:\ProgramData\chocolatey\lib\TotalCommander\tools\tcmd1151x32_64.exe" /A1H1U1G1D1]. This may take a while, depending on the statements.
2025-02-25 08:57:21,907 33768 [DEBUG] - Command ["C:\ProgramData\chocolatey\lib\TotalCommander\tools\tcmd1151x32_64.exe" /A1H1U1G1D1] exited with '0'.
2025-02-25 08:57:21,911 33768 [DEBUG] - Finishing 'Start-ChocolateyProcessAsAdmin'
2025-02-25 08:57:21,913 33768 [INFO ] - TotalCommander has been installed.
2025-02-25 08:57:21,924 33768 [INFO ] - TotalCommander installed to 'C:\Program Files\Total Commander '
2025-02-25 08:57:21,925 33768 [INFO ] - Setting system environment COMMANDER_PATH
2025-02-25 08:57:21,927 33768 [DEBUG] - Running Set-EnvironmentVariable -Name 'COMMANDER_PATH' -Value 'C:\Program Files\Total Commander ' -Scope 'Machine'
2025-02-25 08:57:21,929 33768 [DEBUG] - Registry type for COMMANDER_PATH is/will be String
2025-02-25 08:57:22,636 33768 [DEBUG] - Finishing 'Set-EnvironmentVariable'
2025-02-25 08:57:22,648 33768 [ERROR] - ERROR: Path doesn't exist: C:\Program Files\Total Commander \totalcmd.exe
2025-02-25 08:57:22,662 33768 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '-1'.
2025-02-25 08:57:22,664 33768 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a']
2025-02-25 08:57:22,690 33768 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116'
2025-02-25 08:57:22,816 33768 [WARN ] - Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
2025-02-25 08:57:22,816 33768 [DEBUG] - Logging of values is not turned on by default because it
 could potentially expose sensitive data. If you understand the risk,
 please see `choco feature -h` for information to turn it on.
2025-02-25 08:57:22,816 33768 [DEBUG] - The following values have been added/changed (may contain sensitive data):
2025-02-25 08:57:22,816 33768 [DEBUG] -   * ChocolateyLastPathUpdate='[REDACTED]' (User)
2025-02-25 08:57:22,821 33768 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\TotalCommander'
2025-02-25 08:57:22,841 33768 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\TotalCommander\totalcommander.nupkg'
  with checksum '13C1B133592FA9E90359CF5D54704815'
2025-02-25 08:57:22,841 33768 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\TotalCommander\totalcommander.nuspec'
  with checksum '09525206A32A43CF952AB4C7606C5AEE'
2025-02-25 08:57:22,842 33768 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\TotalCommander\legal\LICENSE.txt'
  with checksum '520E259A7CEF92DEFE804C5A98B865FF'
2025-02-25 08:57:22,843 33768 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\TotalCommander\legal\VERIFICATION.txt'
  with checksum '096C51E8C0DC9519710E3603E3E60BF9'
2025-02-25 08:57:22,843 33768 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\.skipAutoUninstall'
  with checksum 'D41D8CD98F00B204E9800998ECF8427E'
2025-02-25 08:57:22,844 33768 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\chocolateyInstall.ps1'
  with checksum '7832979A3B475C75608C7BBBF25CD62D'
2025-02-25 08:57:22,845 33768 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\chocolateyUninstall.ahk'
  with checksum '88E369BF00AB88D46D922F6105FABF3E'
2025-02-25 08:57:22,845 33768 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\chocolateyUninstall.ps1'
  with checksum '496BA154108100F161D7F180EAE564DB'
2025-02-25 08:57:22,846 33768 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\helpers.ps1'
  with checksum '4B77B078CCC62FB2B1EA64C7719707AB'
2025-02-25 08:57:22,846 33768 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\tcmd1151x32_64.exe.ignore'
  with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956'
2025-02-25 08:57:22,854 33768 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\totalcommander.11.51.0\.arguments".
2025-02-25 08:57:22,854 33768 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\totalcommander.11.51.0\.extra".
2025-02-25 08:57:22,854 33768 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\totalcommander.11.51.0\.version".
2025-02-25 08:57:22,855 33768 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\totalcommander.11.51.0\.sxs".
2025-02-25 08:57:22,855 33768 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\totalcommander.11.51.0\.pin".
2025-02-25 08:57:22,856 33768 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\totalcommander.11.51.0\.deploymentLocation".
2025-02-25 08:57:22,859 33768 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\TotalCommander".
2025-02-25 08:57:22,862 33768 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2025-02-25 08:57:22,863 33768 [ERROR] - The upgrade of totalcommander was NOT successful.
2025-02-25 08:57:22,864 33768 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\chocolateyInstall.ps1'.
 See log for details.
2025-02-25 08:57:22,865 33768 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bad\totalcommander".
2025-02-25 08:57:22,866 33768 [DEBUG] - Moving C:\ProgramData\chocolatey\lib\TotalCommander to C:\ProgramData\chocolatey\lib-bad\totalcommander\11.51.0
2025-02-25 08:57:22,866 33768 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\TotalCommander'
 to 'C:\ProgramData\chocolatey\lib-bad\totalcommander\11.51.0'
2025-02-25 08:57:24,877 33768 [DEBUG] - Attempting rollback
2025-02-25 08:57:24,878 33768 [DEBUG] - Moving C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0 to C:\ProgramData\chocolatey\lib\totalcommander
2025-02-25 08:57:24,879 33768 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib-bkp\totalcommander\11.50.0'
 to 'C:\ProgramData\chocolatey\lib\totalcommander'
2025-02-25 08:57:26,893 33768 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bkp\totalcommander".
2025-02-25 08:57:26,915 33768 [WARN ] - 
Chocolatey upgraded 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2025-02-25 08:57:26,917 33768 [INFO ] - 
2025-02-25 08:57:26,918 33768 [ERROR] - Failures
2025-02-25 08:57:26,920 33768 [ERROR] -  - totalcommander (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\TotalCommander\tools\chocolateyInstall.ps1'.
 See log for details.
2025-02-25 08:57:26,921 33768 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2025-02-25 08:57:26,922 33768 [DEBUG] - Exiting with -1

Anything else?

No response

@kintrupf kintrupf added the Bug label Feb 25, 2025
Copy link

Thanks for raising this issue!

The packages within this repository are maintained by a small team of volunteer Community Maintainers, in their own time. Their time, like yours is important. Please help them by not wasting it.

This is a community repository where the expectation is that everybody will get involved by raising pull requests to fix problems they find. This will also allow that problem to be fixed more quickly as you don't have to wait for a member of the Community Maintainer Team to pick it up.

If you are unable to fix the issue yourself, the Community Maintainers Team will look at it when time allows. There are no service level agreements, nor should there be any expectation on when people can resolve issues in their own time.

A few dos and don'ts:

  • Do provide as much information as you can in any issue that you raise.
  • Don't complain that an issue has not yet been picked up or resolved. You are expected to help out in this community maintained repository. If you are unable to do so, don't complain when others don't adhere to your timelines. There is no SLA nor should you have any expectation of one.
  • Do read the CONTRIBUTING and COMMITTERS documentation before raising a pull request as it contains valuable information on what automation is used in this repository.
  • Do read the Code of Conduct.
  • Don't post your frustration in comments. The Community Maintainers Team are not a punching bag for your frustration. You will only end up banned from the repository.

Thank you.
(Automatically posted message)

@kintrupf kintrupf changed the title (totalcommander) Install fails, path always wrong (totalcommander) Install fails, adds trailing blank to path Feb 25, 2025
@AdmiringWorm
Copy link
Member

Looking at the log, this looks like it is the installer of Total Commander that creates the necessary registry key while appending the space (and we take the value as is).

There is still something we can do by trimming the value (possibly test as is before trimming the value though), as such I'll mark this issue as an up for grabs (should be fairly easy to implement).

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

No branches or pull requests

2 participants