I can't start the Arduino IDE since it likes to access an old Users AppData folder
LOG: daemon INFO Error: invalid path creating config dir: c:\Users\***censored***\AppData\Local\Arduino15 error: mkdir c:\Users\***censored***: Access is denied.
Even after completely removing arduino from any of the current appData Folders I still get those errors.
It seems that in the registry there are also keys where the old path to the old user is stored. How can I delete them? (have already deleted +100 entries but still there are so many entries in the registry there must be an easier way the F3 search and then delete)
Hi @andimet. It is not the registry. The first time you run Arduino IDE, it generates a configuration file that defines the paths to several folders used by the IDE. The default locations of these folders are under your home folder, which means the username is part of the path. When you change your username it makes the paths in the configuration file outdated. When the IDE attempts to access the old path, the operating system does not allow it, which causes the startup to hang.
I think the easiest solution will be to simply delete the configuration file. Arduino IDE will automatically generate a new file on startup with the correct paths.
I'll provide instructions:
Select File > Quit from the Arduino IDE menus if it is running.
Delete the file at the following path:
C:\Users\<username>\.arduinoIDE\arduino-cli.yaml
(where <username> is your Windows username) Please be careful when deleting things from your computer. When in doubt, back up!
Start Arduino IDE.
Arduino IDE should now start up fully and be functional as usual.
Note that the file you deleted is used to store some of your IDE preferences. These will all have been reset to the default values. If you had customized either the "Sketchbook location" or "Additional Boards Manager URLs" preferences before, you'll need to select File > Preferences... from the Arduino IDE menus and then set those preferences once again after performing the instructions I provided above.
Please let me know if you have any questions or problems while following those instructions.