install4j

How to save registry key to a file

社会主义新天地 提交于 2019-12-10 23:15:06
问题 I am trying to save the registry key to file using the below API, but save failed. String key = "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\My App"; String fileName = "myapp.reg"; WinRegistry.saveKey(RegistryRoot.HKEY_LOCAL_MACHINE, key, fileName); Registry key snippet [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\\my app] "DisplayName"="my app" "DisplayIcon"="C:\\myapp\\.install4j\\installer.ico" "UninstallString"="\"C:\\myapp\\uninstall.exe\""

How to configure the bundles JRE installation directory (on MacOS)

久未见 提交于 2019-12-10 09:37:41
问题 install4j can easily bundle a JRE with the application. On Windows (and linux) the JRE is installed in a sub-directory jre (of the application). On MacOS it seems to be in .install4j/jre.bundle How to configure install4j to place the JRE into a jre directory? It seems to be the default location for any RCP base application. Would be nice if that directory could be used for the bundled JRE. 回答1: The location of the JRE bundle is currently not adjustable. However, you can use a "Move files and

NoSuchMethodError: <init> in com.sun.glass.ui.win.WinApplication.staticScreen_getScreens

本小妞迷上赌 提交于 2019-12-09 09:53:59
问题 Since upgrading to install4j 7.0.5 and Java 10, users that run our application on Windows more and more often report that the application throws java.lang.NoSuchMethodError: <init> at javafx.graphics/com.sun.glass.ui.win.WinApplication.staticScreen_getScreens(Native Method) at javafx.graphics/com.sun.glass.ui.Screen.initScreens(Unknown Source) at javafx.graphics/com.sun.glass.ui.Application.lambda$run$1(Unknown Source) at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native

In Install4j - How can I read the version from an external file?

北慕城南 提交于 2019-12-07 21:36:03
问题 I run install4j from the gradle plugin but use the user interface to edit the install4j file. But I find it annoying to always have to manually update my General Settings -> Application Info -> Version every time I make a new version. This is stored in a file in our source code already so I want to just read that file to avoid the extra input. How can I read this file, get the version info, then use that in General Settings -> Appplication Info -> Version ? Thanks in advance. 回答1: I would

In Install4j - How can I read the version from an external file?

一笑奈何 提交于 2019-12-06 16:02:12
I run install4j from the gradle plugin but use the user interface to edit the install4j file. But I find it annoying to always have to manually update my General Settings -> Application Info -> Version every time I make a new version. This is stored in a file in our source code already so I want to just read that file to avoid the extra input. How can I read this file, get the version info, then use that in General Settings -> Appplication Info -> Version ? Thanks in advance. I would suggest invoking install4j from your build process, install4j supports ant, gradle and maven and can also be

How to configure the bundles JRE installation directory (on MacOS)

旧城冷巷雨未停 提交于 2019-12-06 02:14:20
install4j can easily bundle a JRE with the application. On Windows (and linux) the JRE is installed in a sub-directory jre (of the application). On MacOS it seems to be in .install4j/jre.bundle How to configure install4j to place the JRE into a jre directory? It seems to be the default location for any RCP base application. Would be nice if that directory could be used for the bundled JRE. The location of the JRE bundle is currently not adjustable. However, you can use a "Move files and directories" action to move the JRE to a different location after the "Install files" action has run. In

listen for “open file with my java application” event on windows

∥☆過路亽.° 提交于 2019-12-04 22:13:12
问题 Title is confusing, but don't know how to explain this in a few words: I have a java application that reads *.example files. I've also added a file association thanks to install4j so my application is launched when the user double clicks any file with extension *.example It seems that install4j sends the file path in the args[] so it should be easy to open that file and show it in my app. BUT what happens if the app is already running? I can only allow one instance of the application so, how

listen for “open file with my java application” event on windows

痴心易碎 提交于 2019-12-03 15:25:36
Title is confusing, but don't know how to explain this in a few words: I have a java application that reads *.example files. I've also added a file association thanks to install4j so my application is launched when the user double clicks any file with extension *.example It seems that install4j sends the file path in the args[] so it should be easy to open that file and show it in my app. BUT what happens if the app is already running? I can only allow one instance of the application so, how can I know that the user is opening a file? I've found this: http://resources.ej-technologies.com

Steps to deploy web application on Tomcat via install4j installer or Advanced Installer

耗尽温柔 提交于 2019-12-02 18:04:28
问题 Can anyone give me some documentation link/tutorial which could help me create .exe windows installer for Java Web Application. I have a Java Web Project which runs on tomcat server and I want to run theproject on windows with a single click. So for the same I want to create .exe file which I could use as installer to run on any machine. I couldn't find any proper document to create .exe file with the use of popular installers like Install4J and Advanced Installer . Please let me know if

Steps to deploy web application on Tomcat via install4j installer or Advanced Installer

馋奶兔 提交于 2019-12-02 08:43:28
Can anyone give me some documentation link/tutorial which could help me create .exe windows installer for Java Web Application. I have a Java Web Project which runs on tomcat server and I want to run theproject on windows with a single click. So for the same I want to create .exe file which I could use as installer to run on any machine. I couldn't find any proper document to create .exe file with the use of popular installers like Install4J and Advanced Installer . Please let me know if somebody has document or any kind help is highly appreciable. Thanks in advance. According to my