IDE 2.x keeps referencing old PC name

I had to change the directory name, so removed all reference to the old name in the registry and the hard disk. However, when re-installing Arduino IDE it fails to run, and the captured error file shows it is still trying to reference the old name(!) Where is it getting this info from and how to stop it? Here's the beginning of the error file:

2025-03-06T14:40:23.117Z daemon INFO Error: invalid path creating config dir: c:\Users\Geoteknic.DESKTOP-4P3798A\AppData\Local\Arduino15 error: mkdir c:\Users\Geoteknic.DESKTOP-4P3798A: Access is denied.
2025-03-06T14:40:23.117Z daemon ERROR Error: Error: invalid path creating config dir: c:\Users\Geoteknic.DESKTOP-4P3798A\AppData\Local\Arduino15 error: mkdir c:\Users\Geoteknic.DESKTOP-4P3798A: Access is denied.

There is no longer the name ".DESKTOP-4P3798A" any more, so not sure why a new downloaded install file is still able to find that name - must be embedded somewhere, but a search of the C; drive and the registry finds nothing. Any pointers appreciated.

As soon as I see registry I know iot's going to be interesting and probably won't find a solution. However I am a bear for punishment.
First post the entire error log in code tags.
Second tell us what you aren't telling us. Did you ONLY do a normal install or did you maybe try to take a shortcut and copy some files?
A permissions error is a windows issue, not an IDE issue.
Did you use the Windows tool to do an uninstall? Or a 3rd party tool? Did you install for ALL users or just you.

You might have missed something

  • C:\Users\yourUsername\.arduinoIDE
  • C:\Users\yourUsername\AppData\Local\Arduino15
  • C:\Users\yourUsername\AppData\Roaming\arduino-ide
  • C:\Users\yourUsername\AppData\Local\arduino
  • C:\Users\yourUsername\AppData\Roaming\Arduino IDE

Note that AppData folders might be hidden by default; you need to enable "Show hidden files, folders and drives" under (tools) → options in Windows explorer.

1 Like

Appreciate the reply, but I always show hidden files, and a search of the whole disk doesn't turn up any reference to the old name. All other programs run fine under the new name, so I wonder where the install is getting its info. I also checked the environment variables...

There's a setting in a config file lurking.

Hi, and thank you. Yes, I found a prior message about it, deleted the file and now it works. Still in awe at how that file evades the search - presume that the contents are not in text form. Anyway, back to normal! Thanks for all who messaged. Regards, Barry

1 Like

Great :+1:

Where was that file located?

PS
You can mark a topic as solved by clicking the little textbox icon under the most useful reply.

Hi, it was at: ```
C:\Users<username>.arduinoIDE\arduino-cli.yaml

Regards,
Barry

See first point in post #3 :wink:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.