Skip to content
⌘ NSIS Forum Archive

.jar File is being opened with Winrar and not with Java

5 posts

Giselita#

.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#
It's a bit complicated as it involves several registry entries under HKCR.

Here's a MSDN article that might help get you started:


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#
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#
Re: .jar File is being opened with Winrar and not with Java

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.

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?