21/08/2021 
				        Topic:
				        launch script silently
				        
  
				        biorpg
			         | 
				    kj, You can use add the registry entries below to make it so Windows will run .jar files in their current directory by default.:
 
 Windows Registry Editor Version 5.00
  [HKEY_CLASSES_ROOT\.JAR] @="jarfile"
     When using a .jar file directly(by double-clicking, or typing the name into the command prompt),  this is where Windows checks first for instructions on what to do with the file. The above just  redirects it to another key of the same format, named 'jarfile' instead of ',jar'. I have only  done that here because that is how the Java installer packages do it, and so anything else done  within this key would simply be ignored if the installer had been run.  
  Edit the following to match your Java path. All symbols are important, but you may only need to change the "jre1.8.0_131":
 [HKEY_CLASSES_ROOT\jarfile\shell\open\command] @="\"C:\\Program Files\\Java\\jre1.8.0_131\\bin\\javaw.exe\" -jar \"%1\" %*"
     In the absence of another redirect, Windows will read the subkeys to determine how to handle the file. The 'open' subkey under "shell" defines the default command to use. Other keys under "shell" define additional context menu entries. Everything about how a file type is represented and used in Windows is specified here.
 
  Again, change to match your path:
 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment] "JAVA_HOME"="c:\\program files\\java\\jre1.8.0_131"  "JAVAPATH"="C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\ProgramData\\Oracle\\Java\\javapath"   
    https://docs.microsoft.com/en-us/windows/win32/shell/fa-verbs
  edited by biorpg on 21/08/2021 |