-
Notifications
You must be signed in to change notification settings - Fork 26
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
Task jpackage fails when imageName and installerName are different #169
Comments
For linux installers it builds, installs and run OK with different imageName and installerName: deb (ubuntu): rpm (oracle linux): (btw should final executable better be named not 'test imageName' but 'test launcher' as configured in the 'launcher' block? how it works with secondaryLauncher(s)?) |
Thanks for reporting and analyzing this issue. It seems that this is a limitation of WiX. |
I don't have a solution for this inconsistency, because the plugin cannot control the arguments passed to candle.exe. |
Thanks! Practical workaround then will be to rename final installer exe to desired name later in gradle build. Mention in documentation will be great. I also been stuck with such issues as #148, when --resource-dir is required for linux icon, and flyway not seeing its migration resources in jlink-ed application. Maybe additional section for all such "tricks" or workarounds, or FAQ could be created at the doc page. |
When properties imageName and installerName has different values, task jpackage fails to build exe installer with WiX:
When values are identical, build is successful, and installation and installed application works OK.
OpenJDK 15.0.1, Windows 8.1, WiX 3.11.2
'org.beryx.jlink' version '2.23.1'
In the failed build output, I see following:
Running [candle.exe, -nologo, D:\git\jlink-jpackage-test\build\temp\config\main.
wxs, -ext, WixUtilExtension, -arch, x64, -out, D:\git\jlink-jpackage-test\build
temp\wixobj\main.wixobj, -dJpAppDescription=test installerName, -dJpProductCode=
b6a50dfb-efcc-3ee8-a975-1c94f173b0b7, -dJpAppName=test installerName, -dJpIsSyst
emWide=yes, -dJpAllowDowngrades=yes, -dJpIcon=D:\git\jlink-jpackage-test\build\t
emp\images\win-msi.image\ test installerName\test installerName.exe, -dJpAppVersi
on=0.0.1, -dJpInstallDirChooser=yes, -dJpAllowUpgrades=yes, -dJpProductUpgradeCo
de=1ada98a9-a326-3394-b239-76c3d35bd542, -dJpAppVendor=Sergey Selivanov, -dJpCon
figDir=D:\git\jlink-jpackage-test\build\temp\config]in D:\git\jlink-jpackage-tes
t\build\temp\images\win-msi.image\test installerName
main.wxs
Running [candle.exe, -nologo, D:\git\jlink-jpackage-test\build\temp\config\bundl
e.wxf, -ext, WixUtilExtension, -arch, x64, -out, D:\git\jlink-jpackage-test\buil
d\temp\wixobj\bundle.wixobj]in D:\git\jlink-jpackage-test\build\temp\images\win-
msi.image\test installerName
bundle.wxf
Running [light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, D:\git\jlink-j
package-test\build\temp\images\win-exe.image\test installerName-0.0.1.msi, -sice
:ICE27, -ext, WixUIExtension, -loc, D:\git\jlink-jpackage-test\build\temp\config
\MsiInstallerStrings_en.wxl, -b, D:\git\jlink-jpackage-test\build\temp\config, D
:\git\jlink-jpackage-test\build\temp\wixobj\main.wixobj, D:\git\jlink-jpackage-t
est\build\temp\wixobj\bundle.wixobj]in D:\git\jlink-jpackage-test\build\temp\ima
ges\win-msi.image\test installerName
D:\git\jlink-jpackage-test\build\temp\config\main.wxs(86) : error LGHT0103 : The
system cannot find the file 'D:\git\jlink-jpackage-test\build\temp\images\win-m
si.image\ test installerName\test installerName.exe'.
java.io.IOException: Command [light.exe, -nologo, -spdb, -ext, WixUtilExtension,
WiX expects to find 'test installerName\test installerName.exe', but actually there's 'test installerName\test imageName.exe' in that directory, from generated image.
Not sure if this is JDK jpackage issue, or jlink plugin. Logically, either imageName and installerName should allow different values (suppose one need customized installer .exe name), or one of options is redundant?
Please find complete reproduction code here: https://github.com/sergey-selivanov/jlink-jpackage-test
The text was updated successfully, but these errors were encountered: