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

Signal installed/upgraded but parameters ignored #207

Closed
360path opened this issue Jan 13, 2022 · 7 comments
Closed

Signal installed/upgraded but parameters ignored #207

360path opened this issue Jan 13, 2022 · 7 comments
Labels

Comments

@360path
Copy link

360path commented Jan 13, 2022

I have Chocolatey GUI 0.19.0.0 installed and upgraded Signal to 5.28.0 and noticed that it did not apply the parameters NoAutoUpdate and NoShortcut seem to have been ignored. I don't know whether this was already the case with previous versions, but I noticed just now. This means, no corresponding entry in the host file was created and a desktop shortcut was placed.

How can I check (and edit) the supposed parameters on install/upgrade of a package when using the community repository?

@majkinetor
Copy link
Owner

majkinetor commented Jan 13, 2022

U should use --use-remembered-arguments but I think it sometimes doesn't work correctly (not sure tho).

chocolatey/choco#797

U can enable this forever using choco feature:

[x] 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.

NOTE: Its not flipped on by default AFAIK so far although its years it was introduced. I wonder when will it happen (/cc @gep13)

@360path
Copy link
Author

360path commented Jan 13, 2022

Thank you for the information!

I have useRememberedArgumentsForUpgrades turned on.

Is there a way to add arguments in Chocolatey GUI during install and/or upgrade of a package? Or do I have to go into CLI for that?

@majkinetor
Copy link
Owner

I don't use GUI, can't help you with that.

@gep13
Copy link
Contributor

gep13 commented Jan 13, 2022

@360path said...
Is there a way to add arguments in Chocolatey GUI during install and/or upgrade of a package?

There is an issue in the Chocolatey GUI repository to provide this functionality, and it should ship in the next version of Chocolatey GUI which will ship early this year:

chocolatey/ChocolateyGUI#545

@majkinetor said...
Its not flipped on by default AFAIK so far although its years it was introduced. I wonder when will it happen

We have recently discussed this very issue, and this will be flipped on by default once we close out the last remaining issue with this particular feature, and monitor it for any further issues. There is an open PR for the last known issue here:

chocolatey/choco#2484

@360path
Copy link
Author

360path commented Jan 13, 2022

@gep13 said:

@360path said...
Is there a way to add arguments in Chocolatey GUI during install and/or upgrade of a package?

There is an issue in the Chocolatey GUI repository to provide this functionality, and it should ship in the next version of Chocolatey GUI which will ship early this year:

chocolatey/ChocolateyGUI#545

Thanks for pointing that out. Looking forward to that feature.

Meanwhile, maybe you can help with this or point me to somewhere I could get an answer: so, I used the CLI and passed the arguments. But as I already was on the latest version, it probably did nothing (at least, no Hosts file edit was performed). How can I check/make sure that next time upgrade is called for Signal (or any specific package for that matter), useRememberedArgumentsForUpgrades should be invoked and the previous arguments/parameters used again?

@gep13
Copy link
Contributor

gep13 commented Jan 14, 2022

The persisted arguments are stored in the .chocolatey folder, which you can find here:

C:\ProgramData\chocolatey\.chocolatey

In there, there should be a folder for the Signal package that you just installed, and in that folder, there should be a .arguments file. This is where the persisted arguments are stored, however, they will be encrypted. There isn't an "easy" way to unencrypt these today, however, that is a new feature that will be shipping in the next version of Chocolatey GUI.

@majkinetor
Copy link
Owner

I wrote above:

but I think it sometimes doesn't work correctly (not sure tho).

Now I see this is related to open PR @gep13 mentioned, and until it is merged, mass update is basically unusable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants