CMP-1974 Added the ability to select a desktop shortcut option in the dialog box during installation #5156
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added the ability to set the 'shortcutPrompt' parameter, which activates the CLI command '--win-shortcut-prompt' in jpackage. A new dialog (shortcut prompt dialog) has been introduced to the UI sequence of Windows installers, featuring checkbox controls that allow users to choose which shortcuts the installer should create.
New CLI option "--win-shortcut-prompt" will control contents of shortcut prompt dialog.
Specification
Add "--win-shortcut-prompt" CLI option. If the option is set, "Shortcut prompt" dialog will be a part of UI installation sequence.
"Shortcut prompt" dialog will have at most two checkbox controls. No other controls must be placed on this dialog.
Checkbox control labeled "Create desktop shortcuts" will be added to the dialog if "--win-shortcut" CLI option is specified.
Checkbox control labeled "Create start menu shortcuts" will be added to the dialog if "--win-menu" CLI option is specified.
If none of "--win-shortcut" or "--win-menu" CLI options are specified, then the dialog will not be a part of installation UI sequence and "--win-shortcut-prompt" CLI option will be silently ignored by jpackage.
Fixes CMP-1974
Fixes JDK-8261536
Testing
Release Notes
Features - Gradle Plugin