Giselita
30th April 2006 19:40 UTC
.jar File is being opened with Winrar and not with Java
I made an installer for a Java Application , which works
wonderful, detects the JRE, if there is no JRE, installs
it and so on...
I have only one Problem, in some computers the Executable
.jar file is being opened with WinRar and not with Java
which is what is supossed to happen, of course !
ist there a way that I can programm the NSIS installer, to
tell the local computer to open the .jar files with Java and
not with Winrar.
I would appreciate any help.
Comperio
30th April 2006 21:02 UTC
It's a bit complicated as it involves several registry entries under HKCR.
Here's a MSDN article that might help get you started:
http://msdn.microsoft.com/library/de...html/ch11c.asp
Unfortunatley, I don't have any idea of whether or not there is a plugin, external command, etc. that would make this easier to change. (The only other thought I had was perhaps re-installing the Java runtime.)
pisymbol
30th April 2006 21:03 UTC
Just out of curiousity, why not call the appropriate java command directly?
You of course change the registry key...I think its HK_CLASS_ROOT/jarfile/open/command...etc...
walemems
2nd May 2006 20:56 UTC
Re: .jar File is being opened with Winrar and not with Java
Quote:
I am trying to make my installer execute a .jar file/application with a parameter. I am trying to use
MUI_FINISHPAGE_RUN and MUI_FINISHPAGE_RUN_PARAMETERS but I cannot get it to work.
Can you explain how you are running your executable .jar file?
Originally posted by Giselita I made an installer for a Java Application , which works wonderful, detects the JRE, if there is no JRE, installs it and so on...
I have only one Problem, in some computers the Executable .jar file is being opened with WinRar and not with Java which is what is supossed to happen, of course !
ist there a way that I can programm the NSIS installer, to tell the local computer to open the .jar files with Java and not with Winrar.
I would appreciate any help.
|
galil
2nd May 2006 21:49 UTC
java -jar filename.jar