Hi,
Hereby I want to expose how easily you can create an MSIX setup for your java application by using Advanced Installer tool.
One of the main challenge when you want to deploy your java app through an MSIX package is to make sure you include all of your java app dependencies in the MSIX package.
The main dependency of each java app is the Java Virtual Machine that runs your java application (that gets installed/deployed by using the JDK or JRE). Now when it comes to package the JVM alongside your java app in an MSIX build this is fairly simple. You should just make use of our "JRE Bundle" feature.
Here are the steps you can follow to implement this scenario:
1. on your build machine make sure you install the JDK (e.g. install JDK v18 64-bit architecture)
2. open Advanced Installer and create a new "Professional" project type
3. go to "Files and Folders" page and add your java app files in there
4. go to "Java Products" page and define your Java Product using the [New Java Product] toolbar button
5. select the "Settings" tree node and click on the [Add JRE bundle"; select the "Platform" to "64-bit JRE" and in the "Folder" field pick your JDKv18 installation folder:
6. go to "Builds" page and add a new "MSIX/APPX" build
7. go to "Digital Signatures" page, check the "Enable signing" option and configure a certificate to be used for signing your setup package; if you do not have a signing certificate, then you can create a test certificate by using the [Create...] button
8. build your MSIX build and test its installation
Attached you can find a download link for a sample setup project created with Advanced Installer 19.8.1 that implements the above settings. The sample project builds an MSIX and an MSI package type too.
Sample Project download link
All the best,
Daniel