-
Notifications
You must be signed in to change notification settings - Fork 42
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
(adobereader) 'Applying Patch' always being called...overwriting user parameters #219
Comments
Thanks for raising this issue! The packages within this repository are maintained in my spare time. My spare time, like yours is important. Please help me not to waste it. To help me, and to have the issue resolved more quickly, please see CONTRIBUTING for how to raise a pull request to resolve the issue yourself. Thank you. |
I'm not saying there is no issue, and I will test this later with your command line |
Desktop icon stays away for you? I'm not sure what else to test, it's a clean Windows, not on a domain. I'm referencing this: Mode section. That key will go from 2 to 3 in the course of the install. Again, desktop icon shows up at the applying patch part. Shouldn't that host output not even show up since I'm not forcing it? No other installs of reader, again a clean Windows install. |
No, the desktop icon is added to the desktop. However, note two things:
So it all looks good. However, the last bit is important:
I don't know if we are using the MSI, as the code has this line but also includes
See above for the desktop shortcut. For the
We are passing Adobe have a track record for breaking things with the updates to their installers, so it wouldn't surprise me if this was a bug.
I'm not sure what you mean here? Three further things I wanted to point out. You may know this, so apologies if you've 'heard it before'.
|
I agree, this is the most popular package in the Chocolatey community. It seems very unlikely I'm the only one with this issue. However, there is a very slim chance people aren't using the parameters and/or don't care (default is good enough). If I could just omit this:
...then, my parameter settings would be successful. Why is this even running? Is it necessary for new installs? I know this is beyond the scope of the bug report, but is it possible to trick Chocolatey in letting me run the chocolateyinstall.ps1 after editing it? I made a video (screen capture): I recorded from installing Windows to loading Chocolatey and installing the adobe package to prove this is easily reproducible. As you can see at 1:43 (https://www.youtube.com/watch?v=ta95cbgHiYE&t=103s) mark, registry will change that key (2 -> 3) and the desktop icon shows up. Even though Adobe Reader has already been properly installed, as shown by the adding of all the other Adobe subkeys. If I were to kill the PowerShell script after it posts "adobereader (installer) has been installed." then I'd be set. No other intervention needed, Adobe Reader is running, my settings are active. I can make this video if you want, let me know. Now as you mentioned above, it's possible Adobe broke stuff and any future updates will reset any custom settings made. Based on their documentation, this should not be the case and we can only follow what their dev guide says. I'm not as knowledgeable as you, but my guess is that section of code stated above is causing the problem. Even though it's just running Adobe's file, it takes it from expected results to unexpected. Can this section be optional? |
So, the choco package installs an old version then updates it to the latest version. I guess I missed that before. This seems a bit more convoluted, so I'm going to chalk this up to... it is what it is. Thanks for your help, appreciate your time dedicated to Chocolatey. Take care. |
I know you closed this, but there are a couple of things I wanted to pick up either for you or future people who come along.
Just for clarity, here is this line. This block of code is only run if
So if neither of those conditions apply, But Adobe only releases base versions and then patches. It doesn't release a base version each time, so you always have to install a base version and then patch it.
Note that I said above:
Well the patch is an MSI, which we can see here as it's running
Thanks for putting that together. What that shows is the installer is changing the registry (as it's still running when it changes), not the package. There is nothing I can do about that. If that value should not change then that should be taken up with Adobe. I only control the package code and it is passing
Just to be clear and repeat what I said in a previous comment, I didn't create this package. I only maintain it.
From my understanding of the code, it should only run if it's needed to.
Yes. It has to. But we don't provide any update mechanism for when Adobe releases a new base release version so that is something we need to track. As I understand it though, the current versions are correct. |
Checklist
(<PACKAGENAME>) <ISSUE SUMMARY>
.Chocolatey Version
2.2.2
Chocolatey License
None
Package Version
v2024.2.20687
Current Behaviour
This is the same thing I posted on the Chocolatey page discussion...
It looks like the custom parameters get overwritten when the package runs it's "Applying Patch" section. This is always called, even in new installations since this command always returns true
$ApplyPatch = $InstalledVersion -lt $UpdaterVersion
$UpdaterVersion is defined at the top of the script, as so
$UpdaterVersion = $Matches[1]
Not sure where $Matches is coming from, but I'd assume that is defined through a chocolatey function. Anyway, as it goes through all set parameters are correct until after
adobereader (installer) has been installed.
is posted. TheApplying patch.
part of the code will revert back to all the defaults. If you want the Desktop Icon removed, it will show up at that part. Same with update mode key in registry, will be whatever you set until the patching part.Expected Behaviour
No response
Steps To Reproduce
New install
Environment
Chocolatey Log
Anything else?
No response
The text was updated successfully, but these errors were encountered: