[izpack-devel] Proposed fix for bug #6059: Wrong Installation Path for Windows

Hans Aikema aikebah at aikebah.net
Wed Mar 29 22:40:54 CEST 2006


As far as I know bug #6059 should be easy to fix.  The appropriate 
Program Files directory is available (to my best knowledge in all 
localized windows versions) in the System environment variable 
ProgramFiles (no spaces).

Replacing

        if (OsVersion.IS_WINDOWS)
        {
            dir = buildWindowsDefaultPath();
        }

by

        if (OsVersion.IS_WINDOWS)
        {
            dir = System.getenv("ProgramFiles");
        }

in the InstallerBase class should fix the default installation paths

Has this code been tried before and found invalid for some localized 
windows versions?

kind regards,
Hans Aikema



More information about the izpack-devel mailing list