8246212: JPKG001-012: application icon is missing in Control Panel Add/Remove
Reviewed-by: herrick, almatvee
This commit is contained in:
parent
29936542ad
commit
d85ff3c7f0
@ -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");
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user