IzPack

Windows shortcuts can not be created on userless installs

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.11.0
  • Fix Version/s: 4.0.0
  • Component/s: Installer, Panels
  • Labels:
    None
  • Environment:
    Windows
  • Number of attachments :
    0

Description

When installation is run using a userless environment (for example, unattended install using the SYSTEM or LocalService accounts), shortcut creation fails, even if createForAll="true" is specified in shortcutSpec.xml. This happens because the code does not expect the currentUsersLinkPath to be null ever (even if not necessary afterwards).

Stacktrace:
java.lang.NullPointerException
at com.izforge.izpack.util.os.ShellLink.setAllLinkPaths(ShellLink.java:1147)
at com.izforge.izpack.util.os.ShellLink.<init>(ShellLink.java:352)
at com.izforge.izpack.util.os.Win_Shortcut.initialize(Win_Shortcut.java:79)
at com.izforge.izpack.panels.ShortcutPanelAutomationHelper.runAutomated(ShortcutPanelAutomationHelper.java:101)
at com.izforge.izpack.installer.AutomatedInstaller.doInstall(AutomatedInstaller.java:397)
at com.izforge.izpack.installer.Installer.main(Installer.java:68)

An easy one to fix.

Issue Links

Activity

Hide
Hans Aikema added a comment -

Fixed the potential NullPointer in ShellLink.java, however the reporter will now most likely encounter IZPACK-50 when attempting to install.

Show
Hans Aikema added a comment - Fixed the potential NullPointer in ShellLink.java, however the reporter will now most likely encounter IZPACK-50 when attempting to install.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: