Reputation: 69
In my registry, for the extension '.conf' I made the (Default) value point to the pathway of my App. However when I try clicking a file with the extension '.conf' the window asking the user to select a program still opens, rather than simply opening the app associated with the extension. Am I declaring something wrong?
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.conf]
@="C:\\Users\\izhodzis\\workspace\\ConfCompiler\\src\\ConfCompiler.jar"
PS. The idea is that it will work on other peoples' computers. They shouldn't need to select "Always use the selected program to open this kind of file"
Upvotes: 1
Views: 178
Reputation: 3515
Your regedit should look something like this: PATH_TO_JAVAW -jar PATH_TO_CONFCOMPILER
"C:\\Program Files\\Java\\j2rex.y.z\\bin\\javaw.exe -jar C:\\Users\\izhodzis\\workspace\\ConfCompiler\\src\\ConfCompiler.jar"
That probably won't work but hopefully it would help you further.
Upvotes: 2