Reputation: 2831
I know this is not your typical programming question, but it's bugging me...
I just installed the F# 3.1.1 Bundle on two Windows 8.1 machines: One's 32bit and the other 64bit.
I have several F# scripts (.fsx-files) that I use for work, and when I right-click the file in the 32bit system it looks like this:
On the other hand, in the 64bit system it looks like this:
You might notice the "Run with F# Interactive..." menu entry is missing and the icon is different. I have already tried repairing the Bundle, it didn't help. How can I get the context menu entry into the 64bit Windows Explorer? Both systems are freshly installed.
I hope the answer does not involve some horrible registry hacks... ;)
Upvotes: 2
Views: 860
Reputation: 141638
This seems to be a problem with the installer. They are adding the "Run with F# Interactive..." to the VS 11 handler, but not 12.
I hope the answer does not involve some horrible registry hacks.
Well, it does require making changes to the registry, I wouldn't call it a hack exactly. The fix is to add the handler to this registry path: HKEY_CLASSES_ROOT\VisualStudio.fsx.12.0\shell
.
So to do this, copy this content into a file named foo.reg (the name doesn't matter as long as the extension is .reg)
Blah blah blah standard registry disclaimers here about how changing the registry can do bad things and I am not responsible but worked for me.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\VisualStudio.fsx.12.0\shell\openRunFsi]
@="Run with F# Interactive..."
[HKEY_CLASSES_ROOT\VisualStudio.fsx.12.0\shell\openRunFsi\command]
@="\"C:\\Program Files (x86)\\Microsoft SDKs\\F#\\3.0\\Framework\\v4.0\\Fsi.exe\" --quiet --exec \"%1\""
Save, then double click to import the registry key. This resolved the problem for me.
Upvotes: 2