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.
IZPACK-50when attempting to install.