Installation problems on Windows 7

This forum is to report technical problems with Rel.
Post Reply
MBradbury
Posts: 1
Joined: Fri Oct 08, 2010 5:16 pm

Installation problems on Windows 7

Post by MBradbury »

Just double clicking the installer doesn't request admin permissions (no UAC prompt), so when trying to install to C:\Program Files\ an error will be given saying "the directory cannot be written". To work round this cmd.exe can be started with admin permissions, then the installer is run.

I manage to reach a screen in the installer that gives installation progress (saying it is finished), after pressing next two times the installer locks up.

I can happily run DBrowser, as long as it is through an admin command prompt.

The flowing is the error output on the console when installing:

Code: Select all

D:\Downloads>java -jar ./RelInstall-1.0.4.jar
could not create shortcut instance
java.lang.Exception: error loading library
java.lang.Exception: can't locate library
        at com.izforge.izpack.util.Librarian.loadArchSpecificLibrary(Unknown Source)
        at com.izforge.izpack.util.Librarian.loadLibrary(Unknown Source)
        at com.izforge.izpack.util.os.ShellLink.initialize(Unknown Source)
        at com.izforge.izpack.util.os.ShellLink.<init>(Unknown Source)
        at com.izforge.izpack.util.os.Win_Shortcut.initialize(Unknown Source)
        at com.izforge.izpack.panels.ShortcutPanel.panelActivate(Unknown Source)

        at com.izforge.izpack.installer.InstallerFrame.switchPanel(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame.navigateNext(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame.navigateNext(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.navigate(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.access$100(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame$NavigationHandler$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)java.lang.NullPointerException
        at com.izforge.izpack.util.os.Win_Shortcut.getProgramsFolder(Unknown Source)
        at com.izforge.izpack.panels.ShortcutPanel.getProgramsFolder(Unknown Source)
        at com.izforge.izpack.panels.ShortcutPanel.panelActivate(Unknown Source)

        at com.izforge.izpack.installer.InstallerFrame.switchPanel(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame.navigateNext(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame.navigateNext(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.navigate(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.access$100(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame$NavigationHandler$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-13" java.lang.NullPointerException
        at com.izforge.izpack.panels.ShortcutPanel.isValidated(Unknown Source)
        at com.izforge.izpack.installer.IzPanel.panelValidated(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame.navigateNext(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame.navigateNext(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.navigate(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.access$100(Unknown Source)
        at com.izforge.izpack.installer.InstallerFrame$NavigationHandler$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Dave
Site Admin
Posts: 368
Joined: Sun Nov 27, 2005 7:19 pm

Re: Installation problems on Windows 7

Post by Dave »

The installer is behaving as it should. By default, it doesn't require Administrator permissions. This allows individual users to install Rel in their own accounts for personal use, but it does prevent them from installing to privileged directories like \Program Files. However, a user can choose c:\Users\MyUserName (for example) as an installation directory and it will work, including setting up desktop and Start menu shortcuts.

If the installer is started with Administrator permissions, it will allow you to install Rel in \Program Files, but if a non-Administrator user subsequently runs DBrowser in the \Program Files directory, it won't have permission to create \Program Files\Database and will fail.

Therefore, for multi-user installations (such as university student labs and such where Rel is typically used), a Rel desktop or Start menu icon is normally manually created to launch java -jar DBrowser.jar -f<user's home directory>

For example:

Code: Select all

java -jar DBrowser.jar -fc:\Users\MyUserName
The -f option specifies the directory in which the user's default database should be created.

I'm don't know why the installer locked up during your installation. I haven't encountered that.
Post Reply