JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.24k stars 1.11k forks source link

Need "Start after install complete" option in configuration of windows installer #4862

Open Mina-1316 opened 1 month ago

Mina-1316 commented 1 month ago

Hello community!

I'm currently using Kotlin Multiplatform to provide dedicated purpose softwares, and I've implementated an automatic software update by just executing the installer generated by the options below:

compose.desktop.nativeDistributions {
            windows {
                perUserInstall = true
                dirChooser = false
                upgradeUuid = properties["application.installer.updateid"] as? String
                exePackageVersion = packageVersion
                msiPackageVersion = packageVersion
                shortcut = true
                iconFile.set(file("$projectDir/assets/icon.ico"))
            }
}

By this options, Installer will automatically update the software, without user operation, with creating shortcuts. However, I want to make application automatically start after install is done.

Is there any options to make it done? maybe this issue is related to this: https://github.com/JetBrains/compose-multiplatform/issues/1972

Mina-1316 commented 1 month ago

btw, maybe seperatable issue, installer's intallationPath is not applied when dirChooser = false...

Is it intended behavior?

igordmn commented 1 month ago

btw, maybe seperatable issue, installer's intallationPath is not applied when dirChooser = false...

Is it intended behavior?

Sounds like a bug, we'll check here. Thanks!