History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IZPACK-49
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Julien Ponge
Reporter: Jordi Giménez
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IzPack

Windows shortcuts can not be created on userless installs

Created: 02/Apr/08 09:00 AM   Updated: 07/Apr/08 03:50 PM
Component/s: Installer, Panels
Affects Version/s: 3.11.0
Fix Version/s: 4.0.0

Time Tracking:
Not Specified

Environment: Windows
Issue Links:
Related
 


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Hans Aikema - 06/Apr/08 04:12 PM
Fixed the potential NullPointer in ShellLink.java, however the reporter will now most likely encounter IZPACK-50 when attempting to install.