Cant remember what I did but I think I got promted for that there was a new version if the IDE, and I downloaded from Marketplace or Windows Store or whatever it was. Now I have two versions with different icons, one 1.8.5, the on I had, and one 1.8.9 that also says (Windows Store 1.8.21.0).
What do you recommend me to do? I didnt dare uninstall if it would take librarys and repositories away.
As long as your libraries are installed to your sketchbook folder (typically C:/Users/(your username)/documents/Arduino/library ), they will not be removed when the IDE is uninstalled. If you have for some reason installed things under the arduino install location (Typically c:/Program Files (x86)/Arduino ), then those would be lost, but you should never ever do that, for precisely this reason (and several others).
Stuff installed via board manager is stored in a different location, and is not removed when the IDE is uninstalled.
You should uninstall the 1.8.5 version using the windows programs and features control panel.
Also, the windows store version of the IDE is known to be flaky - it works fine for most people, but a small number of people report strange problems that nobody else can reproduce, but which don't occur with the normal installer version. For best results, use the normal installer (generally, windows store apps are buggier (when they are a windows-store-ified version of a desktop app) or less functional than other available apps for the same task; I recommend avoiding windows store entirely when possible); if I were in your position, I would uninstall both, and then install 1.8.9 using the normal installer - but if the windows store version is working for you, might as well continue using it.
Thank you, it all worked fine. Except for that I was also trying the Visual Studio Extension. Now it just says "Please install Arduino board in the Micro Explorer -> Board Manager or set a valid location for an Arduino compatible IDE". Well I can live without it, but it really sounds typical of Microsoft to screw up their own stuff.
The Windows App version of the Arduino IDE is installed to a different location on your computer. You might be able to configure Visual Studio to point to the new location. I do know that Windows is more uptight over the apps, so it's possible that still wouldn't work. If so, just use the regular version of the Arduino IDE, which you can download from the "Windows Installer, for Windows XP and up" or "Windows ZIP file for non admin install" links on the downloads page.