[izpack-users] Installationdirectory on internationalversionsofWindows is always "Program Files"
Markus Schlegel
markus.schlegel at pulinco.com
Mon Nov 27 11:56:39 CET 2006
Why not taking the value from the registry for the newer systems,
and take it with the current approach for the older systems?
I think taking the value from the registry with the current native approach (COIOS) is better than with WSH. Even if the installer then has to include the native COIOS-dll in every case.
Regards
Markus
________________________________
Von: izpack-users-bounces at lists.berlios.de im Auftrag von Bartz, Klaus
Gesendet: Mo 27.11.2006 09:26
An: izpack-users at lists.berlios.de
Betreff: Re: [izpack-users] Installationdirectory on internationalversionsofWindows is always "Program Files"
Hi Hans-Georg,
thank you for the hints.
But the %ProgramFiles% variable is new for Windows 2000, therefore
we can only use if we declare that earlier OSes are not supported.
May be someone implements a facultative resolve.
Looking for the existent of a path is really QD. May be both (or more)
directory exist. Or the system is not on c: (on my box it is on d: and
I have four drives with "Programme" and two with additional
"Program Files". With Italy you have to look for "Programmi"...
Unfortunately there exist no way which is useable for all versions
of Windows.
Cheers
Klaus
>-----Original Message-----
>From: izpack-users-bounces at lists.berlios.de
>[mailto:izpack-users-bounces at lists.berlios.de]On Behalf Of Hans-Georg
>Michna
>Sent: Monday, November 27, 2006 7:17 AM
>To: izpack-users at lists.berlios.de
>Subject: Re: [izpack-users] Installationdirectory on international
>versionsofWindows is always "Program Files"
>
>
>On Thu, 23 Nov 2006 15:19:00 +0100, Bartz, Klaus wrote:
>
>>do you have an good idea how to resolve default installation
>>path on Windows without calling a system function?
>
>Windows has an environment variable named ProgramFiles that
>contains the path (like C:\Program Files or C:\Programme).
>Perhaps this helps. It's also in the registry.
>
>And then there is the quick and dirty method of looking for both
>the language-specific folder and the Program Files folder and
>check which one has more subfolders. (More dirty than quick
>though :-)
>
>Hans-Georg (just passing by here by accident)
>
>--
>No mail, please.
>
>_______________________________________________
>izpack-users mailing list
>izpack-users at lists.berlios.de
>https://lists.berlios.de/mailman/listinfo/izpack-users
>
_______________________________________________
izpack-users mailing list
izpack-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/izpack-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 5973 bytes
Desc: not available
Url : https://lists.berlios.de/pipermail/izpack-users/attachments/20061127/f0415b6e/attachment.bin
More information about the izpack-users
mailing list