-
-
Notifications
You must be signed in to change notification settings - Fork 430
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
IDE update or uninstall fails with "Arduino IDE cannot be closed" error #1163
Comments
Thank you for taking the time and letting us know about the problem. I tried reproducing the defect on my Windows machine, but it worked. Could you please help us refine the exact steps you did? I did the followings:
I had no problems uninstalling the IDE2 either. My account does not have any special Admin rights.
It's not yet evident to me what exactly you did. Could you please help us and write down where you installed the |
I installed it to my data drive, but kept the default path other than the drive letter. In my case that was E:\Program Files\Arduino IDE. I attempted to install the nightly to the same location but ran into this error. Uninstalling or reinstalling both give the same error. |
Problem still occurs with the update to 2.0.0-rc9.1: https://forum.arduino.cc/t/arduino-ide-2-0-0-rc9-available-for-download/1014434/9 |
Hey, I´m using a Windows 10 Pro system, version 21H2, build 19044.1889 on a coorporate PC. In my case, i had no nightly build install on my windows machine, only the lates official release. I was logged in with my user account (now admin privileges) and downloaded the latest RC build Arduino IDE 2.0 RC(2.0.0-rc9.2). I started the installer with "Shift+right-click -> start as another user" and used an admin account to install it. I wrongly selected "install only for this user" and the installation succeeded and was installed at C:\Users"Adminaccount"\AppData\Local\Programs\Arduino IDE Until now i´ve tried to run the uninstaller just by opening it, by opening it with admin privileges and opening it as another user trying the admin account, logging into the admin user account and there tried every above mentioned way to uninstall the IDE. Greetings |
I have Arduino IDE 2.0.0-rc6-nightly-20220526 installed and am receiving this same error. I'm trying to uninstall it so I can install the new 2.0 stable build but cannot uninstall it. I have tried everything suggested and cannot find a way so it appears I'll just have to delete the files and clean it out of the registry manually. I don't know what else to do at this point. |
hi i have the "same" problem ... trying to uninstall Arduino IDE 2.0.0-rc9.2 |
@ukagit I found this link and used the software to uninstall it and it worked. Then I just uninstalled advanced uninstaller. |
Hi, thank you very much. I have successfully uninstalled the old version and the new version 2.0 is running :-) 73 ulrich |
I had 2.0.0 installed (for all users), and experienced the same issue when trying to upgrade to 2.0.1. |
Hi @dwesely. Please provide a screenshot of the Windows Task Manager when the uninstaller is in this "Arduino IDE cannot be closed" state:
|
I found this bug report in the issue tracker of the electron-builder tool we use to generate this installer/uninstaller: electron-userland/electron-builder#6865
This seems to indicate the installer uses a fuzzy match on process names when checking whether the application is already running. That made me think the bug might be caused by the affected users having some other process with a name similar to the product name ("Arduino IDE"). However, I have that same process shown in your screenshot when I do a successful uninstall of Arduino IDE on my machine. |
|
Please be polite. Thank you 🙏🏼 |
Hi, I experience the same problem when going from version 2.0.0 or 2.0.1 to 2.0.3 on several PCs in a lab. Neither uninstall nor update is possible. During this process I am the only user on the system and I do not see any other Arduino processes active beside the installer. I am using Windows 10 Pro 21h2, German language. Maybe this is a problem when the installer searches for processes that have to be stopped: |
I had the problem that i could not upgrade from Arduino IDE 2.0.0 to 2.0.3 and found with some googling that it was possible one or more of these windows registry keys were not properly deleted so I looked for these. I deleted the keys that had "arduino" somewhere in the name and after that I could delete the old version and install the new version with the installer from arduino.cc. WARNING if you are not careful with deleting registry keys it can brick or break your Windows installation so be careful.
I am sorry I do not have the exact registry keys but I hope that this will help a lot in fixing the problem. Installer for arduino 2.0.0 : |
Describe the problemI have the same problem that FirebirdTA01 experienced updating Arduino 2.0.0 to 2.0.3. To reproduceAttempt to install Arduino IDE 2.0.3 over Arduino IDE 2.0.0, and uninstall Arduino IDE 2.0.0. The update runs about 40% and then gives the message that it the installer cannot close the Arduino IDE. Expected behaviorPreviously with other versions over the years, the installer will run and upgrade or reinstall the existing version without hassle. The uninstaller would also successfully be able to uninstall the program Arduino IDE version2.0.0 Windows VersionEdition Windows 10 Pro ProblemI attempted the update multiple times, closing everything related to Arduino in the Task Manager, and getting the same result. I rebooted, and prior to running anything else, I attempted again with the same error. I then attempted to uninstall version 2.0.0, but get the same error with that as well. I even paused the VPM to eliminate any possible communications issues. |
A search of my Windows 10 registry editor using the word Arduino shows multiple entries of Arduino LLC, Arduino IDE and Arduino SA. Just saying. I wonder what happens if they are deleted? Will the install/upgrade work? |
Frustrated by this problem for weeks. |
Solve this the easy way by using Revo Uninstaller Free. https://www.revouninstaller.com/products/revo-uninstaller-free/ |
I'm having this issue as well. I'd guess that many people are having this issue and instead of upgrading the IDE they just keep a previous version (and not reporting it). |
I solved the problem to my satisfaction by running the install as Admin and installing for just me. |
Did this remove your old install or did you just simply installed the newer version parallel? |
The Registry edits did the job for me. I had tried most others unsuccessfully. |
It did not. It installed at "C:\Users\owner\AppData\Local\Programs\Arduino IDE". The stat menu shortcut points to the new version however. |
(Version: 2.0.0) |
i have same issue when install and uninstall arduino IDE v2.0+. i try to delete manually arduino folder and still same. when i see on arduino forum. someone say to delete manually the registry of arduino IDE
when i search the registry. i found 2 registry for arduino IDE. first is arduino IDE that currently i try to install. second is the RC2 version (i called it beta version). i delete both registry. then install again. and its completely installed. i install the latest version (2.1.0) |
This one is simplest I found so far. And solved! |
Same issue over here. In case that is not known (and I don't know if that's the same for everyone but it seems to be the root cause for me), it looks like sometimes Arduino IDE processes do not correctly terminate. I have 2 such lingering processes in my task manager right now even though the IDE is not running: I believe these prevent the current Arduino IDE version to be uninstalled before the new version gets installed by the updater. Frustratingly, these seem to be "ghost" or "unkillable" processes. No amount of elevated-permission commands or tools I have tried to use can delete the processes. They are the kind that return a "no such instance" error when using I have no idea how much of this is Windows being Windows (meaning maybe Windows also prevented the IDE from terminating these when I closed it, in which case it could be hard to fix on the software side of things?) or how much comes from a potential bug in Arduino IDE itself leaving child processes behind maybe? I hope these pieces of information help resolving this issue someday! In the meanwhile, I'm off to rebooting my machine and manually running the updater in the hopes that I may update the IDE 😄 UPDATE: rebooting the computer and manually running |
Renaming the .exe fixed my issue. |
Describe the problem
When attempting to update, install, or uninstall Arduino IDE, an unexpected "Arduino IDE is running. Click OK to close it." dialog appears:
When the user clicks the "OK" button, the process fails with an "Arduino IDE cannot be closed" dialog:
There is no easy way for the user to pass this point to complete the operation.
To reproduce
🐛 When running the installer it will recognize that the IDE is already installed in whichever location it was installed to and say it will be upgraded or reinstalled. It then hangs for a bit on the next progress bar and gives the reported error:
Expected behavior
No unfriendly dialogs about closing Arduino IDE during the update, install, uninstall operation. Operations complete successfully.
Arduino IDE version
2.0.0-rc8
Operating system
Windows
Operating system version
Windows 10 Pro 21H2 build 19044.1766
Additional context
My install was not done to my C drive but my data drive instead.
When attempting to run the uninstaller for the RC 8 version it too encounters the same error.
Issue checklist
The text was updated successfully, but these errors were encountered: