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

Feature-Request: Provide a parameter to switch versions of side-by-side installation via choco #120

Closed
DenWin opened this issue Sep 2, 2020 · 2 comments
Labels
Invalid / Not Issue / No repro / Not Implementing Tickets related to things that are invalid or are unable to be reproduced. shimgen

Comments

@DenWin
Copy link

DenWin commented Sep 2, 2020

Assuming we have installed different versions of a package using choco:

choco install package --version 1.2.3 -my
choco install package --version 2.0.0 -my

It would be nice to allow using the same shim-file with a version parameter:

$ package --shimgen-help
[shim]:
=========
Shim Help
=========

This is a shim, generated by Chocolatey's ShimGenerator (shimgen).
This shim calls a target with the following settings:
 Target: 'C:\ProgramData\chocolatey\lib\package.2.0.0\tools\package.exe'
 Target exists: 'True'
 Working directory: 'C:\WINDOWS\system32'
 GUI: 'False'
 Wait for exit: 'True'
 command (optional): ''
$ package -packageArgs --shimgen-version 1.2.3  --shimgen-help
[shim]:
=========
Shim Help
=========

This is a shim, generated by Chocolatey's ShimGenerator (shimgen).
This shim calls a target with the following settings:
 Target: 'C:\ProgramData\chocolatey\lib\package.1.2.3\tools\package.exe'
 Target exists: 'True'
 Working directory: 'C:\WINDOWS\system32'
 GUI: 'False'
 Wait for exit: 'True'
 command (optional): ''

It should also work if the target is Target: 'C:\ProgramData\chocolatey\lib\package\tools\package.exe'

┆Issue is synchronized with this Gitlab issue by Unito

@DenWin DenWin changed the title Provide an option to use different version Feature-Request: Provide a parameter to switch versions of side-by-side installation via choco Sep 2, 2020
@gep13 gep13 transferred this issue from chocolatey/shimgen Feb 24, 2022
@gep13
Copy link
Member

gep13 commented Feb 24, 2022

Based on some changes happening to the Chocolatey repositories, this issue has been moved from the chocolatey/shimgen repository to the chocolatey/home repository.

@pauby
Copy link
Member

pauby commented Nov 14, 2022

As we plan to deprecate side-by-side installs in version 2.0.0 of Chocolatey CLI, I'm going to go ahead and close this issue.

@pauby pauby closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2022
@pauby pauby added the Invalid / Not Issue / No repro / Not Implementing Tickets related to things that are invalid or are unable to be reproduced. label Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Invalid / Not Issue / No repro / Not Implementing Tickets related to things that are invalid or are unable to be reproduced. shimgen
Projects
None yet
Development

No branches or pull requests

3 participants