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

(#2241) Set install location to package dir for portable packages #2242

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

TheCakeIsNaOH
Copy link
Member

@TheCakeIsNaOH TheCakeIsNaOH commented Apr 17, 2021

Set the install location to the package folder under lib for nuget
packages that do not have a chocolateyinstall.ps1. This will display
the install location correctly for portable packages that just include
binary(s) that get automatically shimmed.

Fixes: #2241

This is definitely up for discussion on the implementation
This might be related to #1370.

This has been tested in a debug build, installing a number of packages, with everything working as expected:

  • Packages that are "purely" portable, without an install script: curl, balcon, sumatrapdf.portable , iperf2. These all reported the install location correctly as being inside the lib directory. This is the one changed behavior I found, as expected.
  • Packages that extract an archive: wget, curl. These all reported the install location as normal inside their respective tools directories.
  • Packages that install an installer and correctly show the install location: 4k-video-downloader This one still showed the correct install location under "program files"
  • Packages that manually specify install location with $env:ChocolateyPackageInstallLocation: dolphin-dev, pcsx2-dev. These all displayed the install location as specified in the install script.
  • Packages with install scripts and where the install location is "not explicitly set": vcredist140, KB3035131, KB3033929. These all still showed as the installation location being not set.
  • Packages with install scripts and where "Software installed as 'x, install location is likely default.": 4k-slideshow-maker Still showed the same message
  • Template packages: msi.template This one showed as being installed in a subfolder under the templates directory.
  • Extension packages: chocolatey-core.extension, chocolatey-windowsupdate.extension. These showed as being installed in their subfolder under the extensions directory.

@TheCakeIsNaOH TheCakeIsNaOH marked this pull request as draft April 27, 2021 16:29
@TheCakeIsNaOH TheCakeIsNaOH marked this pull request as ready for review September 22, 2021 14:05
@TheCakeIsNaOH TheCakeIsNaOH force-pushed the portable-install-location branch from 87514b8 to 06e666f Compare September 22, 2021 14:05
@TheCakeIsNaOH TheCakeIsNaOH changed the base branch from stable to develop September 22, 2021 14:06
@gep13
Copy link
Member

gep13 commented Sep 22, 2021

@TheCakeIsNaOH can you update this with information about how you have tested this?

We are in the process of adding templates to all repositories that would capture this information, but this PR was likely created before we started doing that.

Just some information about what packages you have used to verify the execution would be great. Thanks!

@TheCakeIsNaOH
Copy link
Member Author

@gep13 should this information be added to the pull request, or inside the commit description, or both?

@pauby
Copy link
Member

pauby commented Sep 22, 2021

@TheCakeIsNaOH We only need it in the PR description.

@TheCakeIsNaOH
Copy link
Member Author

@gep13 @pauby Information added, hopefully that is what you are asking for?

@TheCakeIsNaOH TheCakeIsNaOH force-pushed the portable-install-location branch from 06e666f to 3330c46 Compare October 30, 2021 15:46
@TheCakeIsNaOH TheCakeIsNaOH force-pushed the portable-install-location branch from 3330c46 to 8895cd1 Compare November 13, 2021 16:00
@gep13 gep13 force-pushed the portable-install-location branch from 8895cd1 to 068abfa Compare December 23, 2021 09:10
Copy link
Member

@gep13 gep13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Set the install location to the package folder under lib for nuget
packages that do not have a chocolateyinstall.ps1. This will display
the install location correctly for portable packages that just include
binary(s) that get automatically shimmed.
@gep13 gep13 force-pushed the portable-install-location branch from 068abfa to 882e3f6 Compare December 23, 2021 09:21
@gep13 gep13 merged commit 211061f into chocolatey:develop Dec 23, 2021
@gep13
Copy link
Member

gep13 commented Dec 23, 2021

@TheCakeIsNaOH thanks for getting this added!

@TheCakeIsNaOH TheCakeIsNaOH deleted the portable-install-location branch December 23, 2021 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display install location for purely portable packages
3 participants