8246212: JPKG001-012: application icon is missing in Control Panel Add/Remove

Reviewed-by: herrick, almatvee
This commit is contained in:
Alexey Semenyuk 2020-06-23 13:42:57 -04:00
parent 29936542ad
commit d85ff3c7f0
2 changed files with 5 additions and 4 deletions

View File

@ -307,10 +307,12 @@ public class WinMsiBundler extends AbstractBundler {
// Ignore custom icon if any as we don't want to copy anything in
// Java Runtime image.
installerIcon = ApplicationLayout.javaRuntime()
.resolveAt(appDir.toPath())
.runtimeDirectory()
.resolve(Path.of("bin", "java.exe"));
} else {
installerIcon = ApplicationLayout.windowsAppImage()
.resolveAt(appDir.toPath())
.launchersDirectory()
.resolve(APP_NAME.fetchFrom(params) + ".exe");
}

View File

@ -87,8 +87,10 @@
<?endif?>
<CustomAction Id="JpSetARPINSTALLLOCATION" Property="ARPINSTALLLOCATION" Value="[INSTALLDIR]" />
<?ifdef JpIcon ?>
<CustomAction Id="JpSetARPPRODUCTICON" Property="ARPPRODUCTICON" Value="[INSTALLDIR]$(var.JpIcon)" />
<Property Id="ARPPRODUCTICON" Value="JpARPPRODUCTICON"/>
<Icon Id="JpARPPRODUCTICON" SourceFile="$(var.JpIcon)"/>
<?endif?>
<UI>
@ -140,9 +142,6 @@
<InstallExecuteSequence>
<Custom Action="JpSetARPINSTALLLOCATION" After="CostFinalize">Not Installed</Custom>
<?ifdef JpIcon ?>
<Custom Action="JpSetARPPRODUCTICON" After="JpSetARPINSTALLLOCATION">Not Installed</Custom>
<?endif?>
</InstallExecuteSequence>
</Product>
</Wix>