[izpack-devel] Proposed fix for bug #6059: Wrong Installation Path for Windows
Hans Aikema
aikebah at aikebah.net
Thu Apr 6 19:55:09 CEST 2006
Based on the comments on this list I have decided it would be better to
leave the current localization of the Program Files folder intact for
the time being. So I will NOT commit my modified InstallerBase.java to
the CVS.
Maybe someone with good knowledge of the JNI can come up with a solution
similar to the solution for Windows Shortcuts using the SHGetFolderPath
function mentioned by Microsoft as the preferred way of obtaining the
location of the Program Files special folder on Windows Platforms.
See
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetfolderpath.asp
for more info on that function.
Unfortunately I lack knowledge of programming with the Java Native
Interface as well as programming in a windows environment using
DLL-functions. Maybe one of you is experienced enough to build an
interface to SHGetFolderPath to obtain the correct root-path for
applications on any windows system.
regards,
Hans Aikema
Ryan Shillington wrote:
>ProgramFiles is set correctly in Win Server 2003 (Standard). I dunno
>about 95, 98 and NT.
>
>Ryan
>
>
>__________________________________________________
>Ryan Shillington
>Troux
>Office: 512.493.9575 Cell: 512.426.4389 Fax: 512.231.8796
>
>-----Original Message-----
>From: izpack-devel-admin at berlios.de
>[mailto:izpack-devel-admin at berlios.de] On Behalf Of Miraodb
>Sent: Tuesday, April 04, 2006 7:02 AM
>To: izpack-devel at berlios.de
>Subject: Re: [izpack-devel] Proposed fix for bug #6059: Wrong
>Installation Path for Windows
>
>Hi guyz,
>
>This might be true for windows 2000 and xp but not for other versions
>(95,98,nt4).
>I'm not sure about win server 2003 either.
>
>I don't use those versions, but maybe someone would...
>Is that an issue ? that's the question !
>
>cheers,
>fabrice
>----- Original Message -----
>From: "Julien Ponge" <julien at izforge.com>
>To: <izpack-devel at berlios.de>
>Sent: Monday, April 03, 2006 11:02 PM
>Subject: Re: [izpack-devel] Proposed fix for bug #6059: Wrong
>Installation Path for Windows
>
>
>
>
>>>I prepared a version of InstallerBase.java where I implemented my
>>>suggestion. Does any of you object to committing this code into CVS?
>>>
>>>
>>If the env variable is indeed reliable, then I am in favor of your
>>fix ;-)
>>
>>--
>>Julien Ponge
>>http://www.izforge.com/
>>GnuPG ID: 0xCD9DE030
>>
>>
>>
>>_______________________________________________
>>izpack-devel mailing list
>>izpack-devel at lists.berlios.de
>>http://lists.berlios.de/mailman/listinfo/izpack-devel
>>
>>
>>
>
>
>_______________________________________________
>izpack-devel mailing list
>izpack-devel at lists.berlios.de
>http://lists.berlios.de/mailman/listinfo/izpack-devel
>
>IMPORTANT NOTICE:
>This message may contain confidential information. If you have received this e-mail in error, do not use, copy or distribute it. Do not open any attachments. Delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
>
>_______________________________________________
>izpack-devel mailing list
>izpack-devel at lists.berlios.de
>http://lists.berlios.de/mailman/listinfo/izpack-devel
>
>
>
More information about the izpack-devel
mailing list