Localized folder locations in Vista

Got a problem you cannot solve? Try here.
hlangweg
Posts: 8
Joined: Mon May 21, 2007 4:11 am
Location: Leer, Germany

Localized folder locations in Vista

Postby hlangweg » Mon May 21, 2007 4:39 am

We ship our setup in three languages: English, French, German

When testing on a German Windows Vista installation we observed that the folder location in the tree view and the one in the edit control do not match. This might confuse users or lead them to manually correct a location when this is not necessary.

To reproduce this issue with InstallAware 6.6 follow these steps:
- Get Folder Location System->ProgramFiles Directory into PROGRAMFILES
- Set Variable TARGETDIR to $PROGRAMFILES$\\$TITLE$
- Use a PTShellTree on your form, cf. e.g. destination.dfm
- Use a non-English installation of Windows Vista to run the built setup
- When asked to choose a location the folder names in the tree view are localized (e.g. C:\\Programme on a German Vista installation), while the edit control shows the non-localized location (e.g. C:\\Program Files).
- Both the localized and the non-localized folder names are accepted by setup and lead to correct installation in the desired location

However, the setup experience could be improved if both displayed locations matched. We do not intend to build a custom dialog or write a plug-in to circumvent this problem somehow.
Is it reasonable to expect this issue to be fixed in a future 6.x release?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue May 22, 2007 6:15 pm

That is quite odd for the tree view and the edit control to fall out of sync like that. What is the value of the $PROGRAMFILES$ variable? What happens if you select a different folder in the tree view, and then switch the program files folder again - does the edit control update?
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

hlangweg
Posts: 8
Joined: Mon May 21, 2007 4:11 am
Location: Leer, Germany

Postby hlangweg » Thu May 24, 2007 2:09 am

The value of the $PROGRAMFILES$ variable is "C:\\Program Files\\" before and after the dialog is shown.
The edit control does not update with the localized folder name shown in the tree view, it always displays the physical folder name on disk.

This behaviour seems to be by design, cf., e.g.:
"What the %$#& is up with localized paths in Vista?"
http://blogs.msdn.com/michkap/archive/2 ... 87464.aspx
and
"Windows Vista junctions points, MUI and localized folder names"
http://msmvps.com/blogs/carlosq/archive ... names.aspx

It would probably be a good idea to have a non-editable control showing only the localized location. In addition there would have to be a "create folder" button for the tree view control for the user to be able to select a non-existing folder as the target folder. Can this already be achieved with InstallAware (without calling the SH* dll functions directly)? The tree view is able to show the localized folder names, so that information has to be available somewhere.


Return to “Technical Support”

Who is online

Users browsing this forum: Baidu [Spider] and 153 guests