Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Windows *.ino file association

Open Yoshimasta opened this issue 13 years ago • 6 comments

When updating to any version of the arduino IDE from v1.0, I am unable to get windows to open .ino files with the new version. It always defaults to v1.0, even if i delete the v1.0 directory and try to "open with" v1.04 (or any other version), in which case it won't do anything at all. I can open the files by opening the v1.04 IDE and opening the file from there, but this is often a pain in the **. We have tried everything - my whole company has this issue. We are running Windows 7 64-bit.

Thanks in advance!

Yoshimasta avatar Apr 23 '13 15:04 Yoshimasta

I concur this is a pain. The way I do it for now is simply open "Windows Explorer" right click on a .ino file and click "Open With" then I select "Choose default program" make sure the "Always use the selected program to open this kind of file" is checked then "Browse" for the newest "arduino.exe" and open it. From then on it should use that one to open future .ino files.

Now while this is a temporary fix this needs to be addressed I agree as this is counter productive and something that is easily fixed in code. If I knew this programs structure at all I would submit a patch and pull request. If I have time later today I might just try to take that on.

StealthMicro avatar Apr 23 '13 15:04 StealthMicro

Thanks for the quick reply. I wish it was that simple! I have tried that - when I select the new rev of the arduino IDE, it simply goes back to the "choose program" screen and does NOT show the arduino icon/option.

Yoshimasta avatar Apr 23 '13 15:04 Yoshimasta

While I am not a huge fan of directly modifying the registry you can do it the harder way.

START > RUN > regedit > HKEY_CLASSES_ROOT > Arduino.Document > Shell > Open > Command > Default and change that to the correct path of the new arduino.exe usually if its there just simply modify the 1.0.0 to 1.0.4.

That will solve your issue. If everyone has their arduino.exe in the exact same location you could then export that registry key and pass it around.

StealthMicro avatar Apr 23 '13 16:04 StealthMicro

Thanks for the idea! This strategy worked, but just to improve the accuracy of this post for posterity, the registry key is:

HKEY_CLASSES_ROOT --> Applications --> ino_auto_file --> shell --> open --> command

If you modify this entry to point to the arduino.exe file contained in the updated arduino program folder as indicated above, it will open the new version correctly. You can also simply search the registry for "arduino" until you find that registry entry.

Yoshimasta avatar Apr 23 '13 17:04 Yoshimasta

Thats probably a good idea as mine was actually in Arduino.Document so it was probably changed at some point.

StealthMicro avatar Apr 24 '13 00:04 StealthMicro

With f6546aea4527bb0723fac6472c1e10328ebe9473 we turned off associating files when using the plain windows zip file. Only windows installer will set the registry keys for associating .ino files to installed IDE

ffissore avatar May 26 '15 13:05 ffissore