Can't double click sketch file (.ino)

I just changed to Windows 7. I installed the latest Arduino 1.6.4. When I double click on a sketch, the splash screen displays and then vanishes. The IDE doesn’t load. If I start by opening the Arduino IDE and then using the open command from the file dropdown, everything works. What did I do wrong?

I solved the problem.