chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.26k stars 901 forks source link

choco install reporting wrong install directory #2252

Closed Luuk34 closed 1 year ago

Luuk34 commented 3 years ago

OK, after uninstalling python3, using choco uninstall python3, which also deleted the software in the reported directory... I did reinstall that software ("Actian Zen v14 Client" (This software was downloaded from ESD - Electronic Software Distribution (actian.com) )

I did do a reboot of my PC (Windows 10, a.k.a. "Microsoft Windows [Version 10.0.19042.928]" )

Then I started an elevated command prompt, typed "cd \" followed by:

choco install python3

At the end of the install process I do see this: 2021-04-25 18:15:41,145 21132 [INFO ] - Software installed to 'C:\Program Files (x86)\Actian\Zen\'

The complete logging of this install process is in attached file "chocolaty.log".

The actual location of the install process was:

C:\>dir \p*.* | findstr /i python3
25-04-2021  18:15    <DIR> Python39

Adding info from chocolatey.log:

2021-04-25 18:15:16,435 21132 [DEBUG] - ---------------------------Script Execution--------------------------- 2021-04-25 18:15:16,436 21132 [DEBUG] - Running 'ChocolateyScriptRunner' for python3 v3.9.4 with packageScript 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\python3', installArguments: '', packageParameters: '', 2021-04-25 18:15:16,440 21132 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1' 2021-04-25 18:15:16,472 21132 [DEBUG] - Running Get-PackageParameters 2021-04-25 18:15:16,474 21132 [DEBUG] - Parsing $env:ChocolateyPackageParameters and $env:ChocolateyPackageParametersSensitive for parameters 2021-04-25 18:15:16,506 21132 [DEBUG] - Running Install-ChocolateyInstallPackage -silentArgs '/quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python39"' -file 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.9.4.exe' -file64 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.9.4-amd64.exe' -fileType 'exe' -validExitCodes '0' -packageName 'python3' 2021-04-25 18:15:16,510 21132 [DEBUG] - Running Get-ProcessorBits -compare '32' 2021-04-25 18:15:16,519 21132 [INFO ] - Installing 64-bit python3... 2021-04-25 18:15:16,566 21132 [DEBUG] - Ensuring 'C:\' exists 2021-04-25 18:15:16,588 21132 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0' -workingDirectory 'C:\ProgramData\chocolatey\lib\python3\tools' -statements '/quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python39" ' -exeToRun 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.9.4-amd64.exe' 2021-04-25 18:15:16,590 21132 [DEBUG] - Unable to use current location for Working Directory. Using Cache Location instead. 2021-04-25 18:15:16,606 21132 [DEBUG] - Test-ProcessAdminRights: returning True 2021-04-25 18:15:16,610 21132 [DEBUG] - Elevating permissions and running ["C:\ProgramData\chocolatey\lib\python3\tools\python-3.9.4-amd64.exe" /quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python39" ]. This may take a while, depending on the statements. 2021-04-25 18:15:40,071 21132 [DEBUG] - Command ["C:\ProgramData\chocolatey\lib\python3\tools\python-3.9.4-amd64.exe" /quiet InstallAllUsers=1 PrependPath=1 TargetDir="C:\Python39" ] exited with '0'. 2021-04-25 18:15:40,076 21132 [DEBUG] - Finishing 'Start-ChocolateyProcessAsAdmin' 2021-04-25 18:15:40,078 21132 [INFO ] - python3 has been installed. 2021-04-25 18:15:40,098 21132 [DEBUG] - Running Update-SessionEnvironment 2021-04-25 18:15:40,100 21132 [INFO ] - VERBOSE: Refreshing environment variables from the registry. 2021-04-25 18:15:40,210 21132 [DEBUG] - Running Get-OSArchitectureWidth -compare '32' 2021-04-25 18:15:40,229 21132 [INFO ] - Python installed to: 'C:\Python39' 2021-04-25 18:15:40,238 21132 [DEBUG] - Ensure-Permissions 2021-04-25 18:15:40,239 21132 [DEBUG] - Test-ProcessAdminRights: returning True 2021-04-25 18:15:40,242 21132 [DEBUG] - Removing existing permissions. 2021-04-25 18:15:40,253 21132 [INFO ] - Restricting write permissions to Administrators 2021-04-25 18:15:40,262 21132 [DEBUG] - Current user no longer set due to possible escalation of privileges - set $env:ChocolateyInstallAllowCurrentUser="true" if you require this. 2021-04-25 18:15:40,262 21132 [DEBUG] - Set Owner to Administrators 2021-04-25 18:15:40,264 21132 [DEBUG] - Default Installation folder - removing inheritance with no copy 2021-04-25 18:15:40,727 21132 [DEBUG] - ---------------------------------------------------------------------- 2021-04-25 18:15:40,729 21132 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '0'. 2021-04-25 18:15:40,731 21132 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a'] 2021-04-25 18:15:40,762 21132 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116' 2021-04-25 18:15:40,955 21132 [INFO ] - python3 can be automatically uninstalled. 2021-04-25 18:15:40,960 21132 [WARN ] - Environment Vars (like PATH) have changed. Close/reopen your shell to see the changes (or in powershell/cmd.exe just type refreshenv). 2021-04-25 18:15:40,960 21132 [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. 2021-04-25 18:15:40,961 21132 [DEBUG] - The following values have been added/changed (may contain sensitive data): 2021-04-25 18:15:40,961 21132 [DEBUG] - * PATHEXT='[REDACTED]' (Machine) 2021-04-25 18:15:40,998 21132 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\python3' 2021-04-25 18:15:41,105 21132 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\python3.nupkg' with checksum 'BDFE5B269290C7C8E2619BD8AC4A9BFD' 2021-04-25 18:15:41,105 21132 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\python3.nuspec' with checksum '0154A81EEE0395228FCAFC9FE68FE010' 2021-04-25 18:15:41,106 21132 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\legal\LICENSE.txt' with checksum '3FBFBB88B1C6F11A666EB20C490B6DD6' 2021-04-25 18:15:41,106 21132 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\legal\VERIFICATION.txt' with checksum '86683DACD212BE94F77D4ABB9E52CCF3' 2021-04-25 18:15:41,107 21132 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\tools\chocolateyInstall.ps1' with checksum '3BECD845ED96E79B57B6D9D11E743752' 2021-04-25 18:15:41,108 21132 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\tools\helpers.ps1' with checksum '4BB1B517B20FEAE0966E24AEB97FE01A' 2021-04-25 18:15:41,108 21132 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\python3\tools\python-3.9.4-amd64.exe.ignore' with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956' 2021-04-25 18:15:41,132 21132 [DEBUG] - Attempting to replace "C:\ProgramData\chocolatey.chocolatey\python3.3.9.4.registry" with "C:\ProgramData\chocolatey.chocolatey\python3.3.9.4.registry.21132.update". Backup placed at "C:\ProgramData\chocolatey.chocolatey\python3.3.9.4.registry.backup". 2021-04-25 18:15:41,135 21132 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey.chocolatey\python3.3.9.4.registry.21132.update" to "C:\ProgramData\chocolatey.chocolatey\python3.3.9.4.registry". 2021-04-25 18:15:41,136 21132 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\python3.3.9.4.registry.21132.update". 2021-04-25 18:15:41,139 21132 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\python3.3.9.4.arguments". 2021-04-25 18:15:41,139 21132 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\python3.3.9.4.extra". 2021-04-25 18:15:41,140 21132 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\python3.3.9.4.version". 2021-04-25 18:15:41,140 21132 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\python3.3.9.4.sxs". 2021-04-25 18:15:41,140 21132 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\python3.3.9.4.pin". 2021-04-25 18:15:41,142 21132 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers... 2021-04-25 18:15:41,143 21132 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\python3.chocolateyPending". 2021-04-25 18:15:41,144 21132 [INFO ] - The install of python3 was successful. 2021-04-25 18:15:41,145 21132 [INFO ] - Software installed to 'C:\Program Files (x86)\Actian\Zen\' 2021-04-25 18:15:41,146 21132 [DEBUG] - Attempting to delete file "C:\Users\Luuk\AppData\Local\NuGet\Cache\python3.3.9.4.nupkg". 2021-04-25 18:15:41,156 21132 [WARN ] - Chocolatey installed 1/1 packages. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). 2021-04-25 18:15:41,157 21132 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers... 2021-04-25 18:15:41,179 21132 [DEBUG] - Exiting with 0

pauby commented 3 years ago

Does "("Actian Zen v14 Client" (This software was downloaded from ESD - Electronic Software Distribution (actian.com) )" include Python in it's install directory?

Luuk34 commented 2 years ago

Does "("Actian Zen v14 Client" (This software was downloaded from ESD - Electronic Software Distribution (actian.com) )" include Python in it's install directory?

Sorry for the late response, but the answer is "No".

The software "Actian Zen v14 Client" is a client for a database which used to have the name Pervasive, and before that Btrieve, see: https://en.wikipedia.org/wiki/Btrieve

pauby commented 2 years ago

Without any way to reproduce this I'm not sure we can progress it.

Can you supply the 'Actian Zen v14 Client' package? I'm assuming it's not on the Chocolatey Community Repository and is an internal package?

Luuk34 commented 2 years ago

i can only supply the location where you can download this. It is at: https://esd.actian.com/

Choose:

In the list below find: Zen Client v14 SP2 for Windows x86 32/64-bit. Zen-Client-14.20.005.000-win.exe (144 MB)

I just did a remove of Python3, and a re-install like this, where the problem is also show (see logfile): 2022-01-16 10:30:19,617 7172 [INFO ] - The install of python3 was successful. 2022-01-16 10:30:19,618 7172 [INFO ] - Software installed to 'C:\Program Files (x86)\Actian\Zen\'

Python310 is actually installed in: C:\Python310, like seen in earlier lines: 2022-01-16 10:30:16,117 7172 [INFO ] - python3 has been installed. 2022-01-16 10:30:16,136 7172 [DEBUG] - Running Update-SessionEnvironment 2022-01-16 10:30:16,138 7172 [INFO ] - VERBOSE: Refreshing environment variables from the registry. 2022-01-16 10:30:16,243 7172 [DEBUG] - Running Get-OSArchitectureWidth -compare '32' 2022-01-16 10:30:16,263 7172 [INFO ] - Python installed to: 'C:\Python310'

In an elevated Command Prompt: C:\TEMP>choco install python3 --debug --log-file=python3-install.log

After install: C:\TEMP>echo %PATH% | wsl sed 's/;/\n/g' | wsl nl | wsl grep -i -E 'Zen^|Python' 10 C:\Python310\Scripts\ 11 C:\Python310\ 13 C:\Program Files (x86)\Actian\Zen\bin\ 14 C:\Program Files\Actian\Zen\bin\ 15 C:\Python39\Scripts\ 16 C:\Python39\ 96 c:\users\luuk\appdata\roaming\python\python310\scripts

python3-install.log

pauby commented 1 year ago

Due to this issue being stale, I'm going to go ahead and close it. We can always re-open it again if needed.