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

CMP-1974 Added the ability to select a desktop shortcut option in the dialog box during installation #5156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AndrewDvizhok
Copy link

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

  • Compile compose-gradle-plugin
  • In the application's build.gradle.kts add:
compose.desktop {
    application { 
       nativeDistributions { 
           windows{
                shortcut = true
                shortcutPrompt = true
  • Compile 'packageMsi'
  • Run the compiled MSI package
  • During the installation process, a checkbox labeled 'Create Desktop Shortcut' will appear

Release Notes

Features - Gradle Plugin

  • A new dialog, known as the "shortcut prompt dialog," has been introduced to the UI sequence of Windows installers. This dialog features checkbox controls that allow users to select which shortcuts the installer should create. To activate this dialog:
compose.desktop {
    application { 
       nativeDistributions { 
           windows{
                shortcut = true
                shortcutPrompt = true

Screenshot 2024-10-28 202747

…on in the dialog box during installation. Based on JDK-8261536
@MatkovIvan MatkovIvan requested a review from igordmn November 5, 2024 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant