-
Notifications
You must be signed in to change notification settings - Fork 385
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
(inkscape) Due to the bug in vendor installer, package should uninstall prior to update #550
Comments
Current workaround for this is to uninstall the software before upgrading |
When I |
chocolatey should check to see if the previous version is installed and uninstall it before installing the new version. |
Agreed with @Spongman, as long as the package doesn't use the Win32_Product WMI class to check if it is installed -- I know this can cause some perf issues that I've seen with the Skype package, for example. See https://chocolatey.org/packages/skype#comment-2630543885. |
Was this fixed? I believe it's still a bug. Do you want me to re-submit? |
No, it haven't been fixed. It was closed because there haven't been activity on this issue for a long time. |
Seems like a strange reason to close a bug. Surely if it's still a bug it should stay open... |
not really, when an issue have been open without any activity for so long as this one have, there is unlikely that this issue will be fixed even if it is kept open. With that said, we won't deny a PR that fixes this issue even when it have been closed. |
Oh, and just to have it said. EDIT: |
We opted for closing stale issues to reduce information overload. We maintain over 200 packages here and there needs to be some triage. PR is ofc. welcome any time. |
I'm working on a solution for this and have it working except due to the length of time of doing the uninstall, it looks like choco times out or perhaps the uninstall is causing these access is denied errors:
It does end up upgrading ok. But is there a way to give it extra time? |
I'm thinking it is the upgrade that isn't completely done, when the package is complete. Other than detecting if the process is running, or using Since you're looking into this, I'll re-open the issue. |
You can execute it in a background job and give it timeout. |
Closing this again as there is no feedbacak. |
Re-Opening this issue, as it was reported again on the disqus channel |
Its an upstream problem nevertheless. |
@jtcmedia in the chocolateyInstall.ps1 script, check for the software being installed and uninstall it, not the Chocolatey package. I think that's where you are seeing those errors. Also, our first friendly exit code in the wild showed up in that disqus comment (http://disq.us/p/1r9378g): ERROR: Running ["C:\WINDOWS\System32\msiexec.exe" /i "C:\Users...\AppData\Local\Temp\chocolatey\InkScape\0.92.3\inkscape-0.92.3-x64.msi" /passive /norestart ] was not successful. Exit code was '1638'. Exit code indicates the following: This MSI requires uninstall prior to installing a different version. Please ask the package maintainer(s) to add a check in the chocolateyInstall.ps1 script and uninstall if the software is installed. This is most likely an issue with the 'InkScape' package and not with Chocolatey itself. Please follow up with the package maintainer(s) directly. |
The issue was chocolatey/choco#1526. If you have suggestions on better messages here, feel free to log tickets. We are likely to adjust those a bit for 0.10.10 for more clarity. |
Thanks @ferventcoder. I've submitted PR #996 that should fix it. |
This issue have now been fixed in the repository, and will be available when the next version of InkScape is available. |
This seems to happen again. I'm trying to upgrade from InkScape v0.92.3.20180702 to v0.92.4 and get the following log with the same error code (1638) The installation failure happens at the end of the log. The Dutch part just says there's another version already installed and how to remove it (Windows Control Panel etc). |
@nielsvdp what Windows version are you running? I'm thinking it may be an older version of windows which is causing your issue (can't say for sure yet though) |
Just verified that the removal of the old program doesn't work on older versions of windows. Re-Opening this issue, and am working on a fix now. |
or rather, I submitted it as a new issue #1207 |
@AdmiringWorm I use Windows 10 1803. Sorry if I missed anything, it's my first time posting an issue. I originally used ChocolateyGui to upgrade. Now I tried using regular choco from PowerShell and it uninstalled and installed InkScape fine. The uninstallation just took a while. |
hmm, that's odd. Well, I found it didn't work on older versions of windows, so it could be the same issue as when running through ChocolateyGUI |
@nielsvdp hmm, after my changes the issue is still happening in ChocolateyGUI. This leads me to think that there may be a bug in their program, instead of the package (although there was a compatibility issue with it). As such, I recommend that you open up an issue over at their repository: https://github.com/chocolatey/ChocolateyGUI/issues |
Upgrading the inkscape package is currently impossible due to a bug in the installer making it return error code 1638 if a previous version of the software is already installed.
See:
http://disq.us/p/1f03dr0
https://bugs.launchpad.net/inkscape/+bug/1653574
The text was updated successfully, but these errors were encountered: