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

Choco update doesn't remember installation parameters #1707

Closed
musm opened this issue Jan 9, 2019 · 6 comments
Closed

Choco update doesn't remember installation parameters #1707

musm opened this issue Jan 9, 2019 · 6 comments

Comments

@musm
Copy link

musm commented Jan 9, 2019

This is a very annoying issue.

For example suppose I install a package and upon installation request that NO desktop icons or context menu items are created.

Upon performing an upgrade of the package. These installation parameters are forgotten and the upgrade proceeds by using the default parameters.

This is wrong and defeats the purpose of using installation parameters if a subsequent upgrade will wipe out the information.

@AdmiringWorm
Copy link
Member

There is a feature already for this (although it's still in the preview phase).

useRememberedArgumentsForUpgrades - Use Remembered Arguments For Upgrades - When running upgrades, use arguments for upgrade that were used for installation ('remembered'). This is helpful when running upgrade for all packages. Available in 0.10.4+. This is considered in preview for 0.10.4 and will be flipped to on by default in a future release.

You'll need to explicitly enable it yourself with the command choco feature enable --name=useRememberedArgumentsForUpgrades

@pauby
Copy link
Member

pauby commented Jan 10, 2019

Related to #1443

@musm
Copy link
Author

musm commented Jan 10, 2019

@AdmiringWorm do I then need to re-add all my packages for choco to store the install parameters or will subsequent upgrade remember the initial install parameters?

@AdmiringWorm
Copy link
Member

I'm not completely sure TBH.
I do believe it will use the stored arguments from even before the feature was enabled.

But @pauby or @gep13 will probably correct me in if this isn't the case.

@ferventcoder
Copy link
Member

If you did an upgrade, yes, you will need to.

@ferventcoder
Copy link
Member

@musm have a look at #797 for the important notes about the feature. I would also wait until 0.10.12 to turn it on. We found #1443 and it's important that you may not want to hit that.

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

4 participants