Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Installer Customizations #337

Open
nartz opened this issue Apr 24, 2018 · 1 comment
Open

Windows Installer Customizations #337

nartz opened this issue Apr 24, 2018 · 1 comment

Comments

@nartz
Copy link

nartz commented Apr 24, 2018

I find myself needing to create a Windows installer for a Java 8 application. I have seen a few other issues, including #302 . While I know this sort of depends on the javapackager, i'm wondering its possible to produce an installer that does the following (in addition to copying the necessary files):

  1. Allows the user to accept a privacy policy
  2. Bundles Java, OR
  3. detects its existence on the machine (as well as detecting other dependencies)
  4. Creates new directories in AppData for non-privileged logs
  5. Makes a web request to verify a license

I see this link for java 9, but do any of these options work for java 8?
https://docs.oracle.com/javase/9/tools/javapackager.htm#GUID-E51F9601-E121-4A50-BCA7-C7F8730078B2__WINDOWSEXEBUNDLERARGUMENTS-26C9A39C

From what i've seen, it seems possible to include a custom WSX file or otherwise - does this allow you to essentially create the entire UI passing this file in? Or only small things (like setting the installation directory?). Thanks!

@FibreFoX
Copy link
Member

Mostly the linked list might work for JDK8 too, but they've added some values to JDK9+.

Regarding your list: this is what the installer-logic is, not directly involved with this plugin, but yes, you might be able to create these parts by providing the "override"-wsx-script inside the src/main/deploy/package/windows-folder. As for WiX Toolkit sometimes require special parameters, this might get tricky, but AFAIK that list of yours might be possible. But please keep in mind, that this is a big list, and the "original" one does only allow user-chosen directories and license-agreements, but nothing more by default.

Another thing about bundled JRE: please be aware that the CFG-files, created for the native exe files/launchers, contain some information about the location of the JRE, to take the locally installed one, this value has to be cleared out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants