3

This script created jDiskMark-0.5.1.msi with jpackage. When I run the installer it will list a name of a msi which is not the same as the msi file I packaged and ran which is miss leading to a user.

set VERSION=0.5.1
set JPKG_EXE="C:\Program Files\java\jdk-21\bin\jpackage"

%JPKG_EXE% --type msi --input jdiskmark-v%VERSION% --main-jar jDiskMark.jar ^
    --name jDiskMark-%VERSION% --app-version %VERSION% ^
    --vendor "jdiskmark.net" --win-console --win-menu

In the below image the text "2a243a02.msi" is confusing because a user just double clicked a file named jDiskMark-0.5.1.msi to run the installer. It is more ideal to show the file the user launched or something else. enter image description here

In the msi installer for Microsoft Orca they set this message to "Microsoft Windows" instead of the name of the MSI file being installed. I believe that is a better approach but I do not know how to set this message. What is this field called and how can I set it?

NOTE: i have tried the jpackage --description option already which does not set this message.

I am using jpackage from jdk 21 on windows 11. Any guidance is greatly appreciated.

2
  • 1
    Your UAC dialog looks different to Windows 10, which always shows full path to the MSI as the first field (have tested this is same for me on JDK21/22). Perhaps this is down to Windows version, or maybe the MSI is compressed in some way and expanded to a temp location beforehand, and so UAC shows expanded and compressed file? Commented Feb 25, 2024 at 14:28
  • I'm packaging on windows 11. What was interesting is a recent attempt showed the full path. I feel this field is settable just trying to figure out how. When you run the installer for MS Orca they set it to "Microsoft Windows" I feel like if someone can tell me the name of this field it would be faster to find out how to set it. Commented Feb 25, 2024 at 17:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.