Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8254783

jpackage fails on Windows when application name differs from installer name

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 16
    • Component/s: tools
    • Labels:
    • Environment:

      Windows 10 (2004)

      wix 3.11.2

      Liberica JDK 15 with JavaFX

       

    • Subcomponent:
    • Resolved In Build:
      b21
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      It seems that the .exe launcher file is written with the spaces removed, but then light.exe is expecting the spaces to be present.

      jpackage command line and output is as follows below. Note light.exe complaining of a path not found:
      'C:\dev\MyServerAdminApp\build\tmp\msi\images\win-msi.image\My Server Admin\My Server Admin.exe'
      However the path:
      'C:\dev\MyServerAdminApp\build\tmp\msi\images\win-msi.image\My Server Admin\MyServerAdmin.exe'
      without spaces in the .exe file name (nor in the .ico filename) is present.


      > Task :jpackageMSI
      [C:\Program Files\BellSoft\LibericaJDK-15-Full\bin\jpackage.exe, --type, msi, --verbose, --temp, C:\dev\MyServerAdminApp\build/tmp/msi, --app-version, 1.0.4, --name, My Server Admin, --description, My Server Administration Application, --vendor, My Company, --copyright, Copyright (c) 2015-2020 My Company., --app-image, C:\dev\MyServerAdminApp\build\application\MyServerAdmin, --resource-dir, src/main/deploy/package/windows, --win-menu, --win-menu-group, My Company, --win-upgrade-uuid, E88ECD54-9D10-46FC-930B-7FC020F9E0D6, --win-shortcut, --dest, C:\dev\MyServerAdminApp\build\installer]
      WARNING: Using incubator modules: jdk.incubator.jpackage
      ...
      Detected [candle.exe] version [3.11.2.4516].
      Detected [light.exe] version [3.11.2.4516].
      WiX 3.11.2.4516 detected. Enabling advanced cleanup action.
      MSI ProductCode: a63b0e37-34eb-31a6-99f6-ef016fab0254.
      MSI UpgradeCode: e88ecd54-9d10-46fc-930b-7fc020f9e0d6.
      Using default package resource main.wxs [Main WiX project file] (add main.wxs to the resource-dir to customize).
      Using default package resource overrides.wxi [Overrides WiX project file] (add overrides.wxi to the resource-dir to customize).
      Preparing MSI config: C:\dev\MyServerAdminApp\build\installer\My Server Admin-1.0.4.msi.
      Generating MSI: C:\dev\MyServerAdminApp\build\installer\My Server Admin-1.0.4.msi.
      Running [C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe, -nologo, C:\dev\MyServerAdminApp\build\tmp\msi\config\main.wxs, -ext, WixUtilExtension, -arch, x64, -out, C:\dev\MyServerAdminApp\build\tmp\msi\wixobj\main.wixobj, -dJpAppDescription=My Server Administration Application, -dJpAppVersion=1.0.4, -dJpProductCode=a63b0e37-34eb-31a6-99f6-ef016fab0254, -dJpAppName=My Server Admin, -dJpAllowUpgrades=yes, -dJpProductUpgradeCode=e88ecd54-9d10-46fc-930b-7fc020f9e0d6, -dJpIsSystemWide=yes, -dJpAllowDowngrades=yes, -dJpIcon=C:\dev\MyServerAdminApp\build\tmp\msi\images\win-msi.image\My Server Admin\My Server Admin.exe, -dJpAppVendor=My Company, -dJpConfigDir=C:\dev\MyServerAdminApp\build\tmp\msi\config]in C:\dev\MyServerAdminApp\build\tmp\msi\images\win-msi.image\My Server Admin
      main.wxs
      Running [C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe, -nologo, C:\dev\MyServerAdminApp\build\tmp\msi\config\bundle.wxf, -ext, WixUtilExtension, -arch, x64, -out, C:\dev\MyServerAdminApp\build\tmp\msi\wixobj\bundle.wixobj]in C:\dev\MyServerAdminApp\build\tmp\msi\images\win-msi.image\My Server Admin
      bundle.wxf
      Running [C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, C:\dev\MyServerAdminApp\build\installer\My Server Admin-1.0.4.msi, -sice:ICE27, -loc, C:\dev\MyServerAdminApp\build\tmp\msi\config\MsiInstallerStrings_en.wxl, C:\dev\MyServerAdminApp\build\tmp\msi\wixobj\main.wixobj, C:\dev\MyServerAdminApp\build\tmp\msi\wixobj\bundle.wixobj]in C:\dev\MyServerAdminApp\build\tmp\msi\images\win-msi.image\My Server Admin
      C:\dev\MyServerAdminApp\build\tmp\msi\config\main.wxs(86) : error LGHT0103 : The system cannot find the file 'C:\dev\MyServerAdminApp\build\tmp\msi\images\win-msi.image\My Server Admin\My Server Admin.exe'.
      java.io.IOException: Command [C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, C:\dev\MyServerAdminApp\build\installer\My Server Admin-1.0.4.msi, -sice:ICE27, -loc, C:\dev\MyServerAdminApp\build\tmp\msi\config\MsiInstallerStrings_en.wxl, C:\dev\MyServerAdminApp\build\tmp\msi\wixobj\main.wixobj, C:\dev\MyServerAdminApp\build\tmp\msi\wixobj\bundle.wixobj]in C:\dev\MyServerAdminApp\build\tmp\msi\images\win-msi.image\My Server Admin exited with 103 code
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Executor.executeExpectSuccess(Executor.java:75)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.WixPipeline.execute(WixPipeline.java:131)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.WixPipeline.buildMsi(WixPipeline.java:95)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.WinMsiBundler.buildMSI(WinMsiBundler.java:485)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.WinMsiBundler.execute(WinMsiBundler.java:363)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.generateBundle(Arguments.java:680)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.processArguments(Arguments.java:549)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.main.Main.execute(Main.java:98)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.main.Main.main(Main.java:52)
      Kept working directory for debug: C:\dev\MyServerAdminApp\build\tmp\msi
      jdk.incubator.jpackage.internal.PackagerException: java.io.IOException: Command [C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, C:\dev\MyServerAdminApp\build\installer\My Server Admin-1.0.4.msi, -sice:ICE27, -loc, C:\dev\MyServerAdminApp\build\tmp\msi\config\MsiInstallerStrings_en.wxl, C:\dev\MyServerAdminApp\build\tmp\msi\wixobj\main.wixobj, C:\dev\MyServerAdminApp\build\tmp\msi\wixobj\bundle.wixobj]in C:\dev\MyServerAdminApp\build\tmp\msi\images\win-msi.image\My Server Admin exited with 103 code
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.WinMsiBundler.execute(WinMsiBundler.java:366)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.generateBundle(Arguments.java:680)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Arguments.processArguments(Arguments.java:549)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.main.Main.execute(Main.java:98)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.main.Main.main(Main.java:52)
      Caused by: java.io.IOException: Command [C:\Program Files (x86)\WiX Toolset v3.11\bin\light.exe, -nologo, -spdb, -ext, WixUtilExtension, -out, C:\dev\MyServerAdminApp\build\installer\My Server Admin-1.0.4.msi, -sice:ICE27, -loc, C:\dev\MyServerAdminApp\build\tmp\msi\config\MsiInstallerStrings_en.wxl, C:\dev\MyServerAdminApp\build\tmp\msi\wixobj\main.wixobj, C:\dev\MyServerAdminApp\build\tmp\msi\wixobj\bundle.wixobj]in C:\dev\MyServerAdminApp\build\tmp\msi\images\win-msi.image\My Server Admin exited with 103 code
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.Executor.executeExpectSuccess(Executor.java:75)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.WixPipeline.execute(WixPipeline.java:131)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.WixPipeline.buildMsi(WixPipeline.java:95)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.WinMsiBundler.buildMSI(WinMsiBundler.java:485)
              at jdk.incubator.jpackage/jdk.incubator.jpackage.internal.WinMsiBundler.execute(WinMsiBundler.java:363)
              ... 4 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                herrick Andy Herrick
                Reporter:
                swpalmer Scott Palmer
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: