Open jamesmarkchan opened 9 months ago
jpackage is available in java21:
https://docs.oracle.com/en/java/javase/21/docs/specs/man/jpackage.html
jpackage --type msi --input . --main-jar myapp.jar --name
hmmm:
C:\Users\james\NetBeansProjects\jdm-java\dist\jdiskmark-v0.5.1>"\Program Files\java\jdk-21\bin\jpackage" --type msi --input . --main-jar jDiskMark.jar --name jDiskMark --app-version 0.5.1
[23:57:31.361] Can not find WiX tools (light.exe, candle.exe)
[23:57:31.362] Download WiX 3.0 or later from https://wixtoolset.org and add it to the PATH.
Error: Invalid or unsupported type: [msi]
Looks like there is a compatibility issue with wix version 4, i have both installed on my system atm but am adjusting the path to the v3 bins to be first. Version 3 of wix can be retrieved from here: https://github.com/wixtoolset/wix3/releases/tag/wix314rtm
I took the wix314.exe version (updated 2 weeks ago) and clicked the install option:
NOTE: avoid installing with:
C:\Users\james>dotnet tool install --global wix
because it is installing version 4 with compatibility issues:
C:\Users\james>wix --version
4.0.4+a8592982
Ran the generated installer and it shows up here:
inno setup allows creating installers where the program can run as admin on windows. https://jrsoftware.org/isdl.php#stable
So issues with this so far with a signed certificate
For reference here is the install dialogue for Orca
And the uninstall dialogue
Here is the USP uninstall dialogue:
attempting a question on stackoverflow: https://stackoverflow.com/questions/78055873/how-to-set-title-or-displayed-msi-file-in-jpackage-install-dialog
note to self: https://docs.oracle.com/en/java/javase/21/jpackage/packaging-overview.html#GUID-E0966C49-ABBB-46A2-8DF7-1D3F96640F05
from ca:
Also, please try to use the following command to sign the exe file: signtool sign /tr http://timestamp.sectigo.com/ /td sha256 /fd sha256 /sha1 e4bd3eb6e8e75a0aa966d1e1eaba4db59a84dcc2 "C:\path\to\fileToSign.exe"
A native installer for the current version of Windows.
This is ideally an msi or exe file and will allow clean install and uninstall of the jdiskmark program following platform best practices.
As a major convenience a windows installer would make it much easier for users to install and launch. This way user would not need to bother with:
It would just be:
Issues: