chocolatey / chocolatey/choco

Incorrect install path displayed following successful installation

Open
#2,150 15 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

I used choco to install freecad to a specific folder. The installation was successful and it was indeed installed to the correct location. Choco then reported that freecad was installed successfully, but incorrectly reported that it was installed to the folder for Adobe Acrobat! Choco did not make any changes whatsoever to the Adobe folder - this is just a bogus message. I assume this is a bug with choco and not with the package.

```
2020-11-06 01:32:10,457 11248 [INFO ] - Chocolatey v0.10.15
2020-11-06 01:32:10,463 11248 [DEBUG] - Chocolatey is running on Windows v 10.0.19041.0
2020-11-06 01:32:10,465 11248 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2020-11-06 01:32:10,465 11248 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2020-11-06 01:32:10,471 11248 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install freecad --pre --params /InstallDir:'C:\FreeCAD'
2020-11-06 01:32:10,472 11248 [DEBUG] - Received arguments: install freecad --pre --params /InstallDir:'C:\FreeCAD'

```

```
2020-11-06 01:34:06,893 11248 [INFO ] - The install of freecad was successful.
2020-11-06 01:34:06,895 11248 [INFO ] - Software installed to 'C:\Program Files (x86)\Adobe\Acrobat Reader DC\'
```

Full log at: https://gist.github.com/ambercap/a6cc0b69cf6c41cd54b3e78cc66789c6

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported command and reviewing the linked full log, especially the messages showing the successful installation and incorrect Adobe path. Trace the code that formats the "Software installed to" message and compare it with the actual installation result. Done means the reported path matches the package's installation location without changing unrelated folders.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, operating-systems, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.