compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Cannot modify image assets used in MSI installer

Open sebkur opened this issue 3 years ago • 4 comments

I'm successfully packaging MSI files using the Gradle plugin, however I cannot yet specify the images used in the MSI installer.

sebkur avatar Sep 21 '22 12:09 sebkur

These are screenshots from the MSI while installing it:

Screenshot 2022-09-21 125019 Screenshot 2022-09-21 125042

sebnuc avatar Sep 21 '22 12:09 sebnuc

This is what I'm trying to achieve, swap out the images on the left in the first screen and the banner at the top of the second screen:

Screenshot 2022-09-21 125500 Screenshot 2022-09-21 125517

sebnuc avatar Sep 21 '22 12:09 sebnuc

As explained in the WIX documentation it is possible to set those images using these options in main.wxs, for example like this:

<?define JpResources = $(env.GRADLE_PROJECT_DIR)\src\jpackage\assets?>
<WixVariable Id="WixUIBannerBmp" Value="$(var.JpResources)\banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="$(var.JpResources)\dialog.bmp" />

in order for this to work two things are necessary:

  1. we need to be able to add additional resources into the directory passed to jpackage with flag --resource-dir (#1972)
  2. we need to have some way to define an environment variable that is accessible from thw WX toolchain process

sebkur avatar Sep 21 '22 12:09 sebkur

I have a solution for 1.) ready here at: #2331 and a solution for 2.) at #2336.

sebkur avatar Sep 21 '22 12:09 sebkur

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Jul 14 '24 17:07 okushnikov