WorkDir and Vista

This is a discussion on WorkDir and Vista within the Clipper forums in Programming Languages category; Hi all Just to know Installing a program with a localized version of Vista (Italian here), Vista say that the destination directory is "Program files" instead of the localized name ("Programmi" in Italian). Also WorkDir() give the English name. So the installed software will be: "C:\Programmi\YourSoftwareName" but WorkDir() will report "C:\Program files\YourSoftwareName" -- Ciao Alessandro...

Go Back   Application Development Forum > Programming Languages > Clipper

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-01-2008, 02:48 PM
Alessandro m. Antonangeli
Guest
 
Default WorkDir and Vista

Hi all
Just to know
Installing a program with a localized version of Vista (Italian here), Vista
say that the destination directory is "Program files" instead of the
localized name ("Programmi" in Italian).
Also WorkDir() give the English name.
So the installed software will be:

"C:\Programmi\YourSoftwareName"

but WorkDir() will report

"C:\Program files\YourSoftwareName"


--
Ciao
Alessandro


Reply With Quote
  #2  
Old 09-01-2008, 02:52 PM
John Martens
Guest
 
Default Re: WorkDir and Vista

Alessandro,

I think C:\Program files\YourSoftwareName is the real folder name. You
can see this when opening a command window in the folder.
When you use windows explorer the explorer 'fools' you to show the
italian name C:\Programmi\YourSoftwareName.

This is also the case for the MyDocuments folder (and many others).

John


Alessandro m. Antonangeli schreef:
> Hi all
> Just to know
> Installing a program with a localized version of Vista (Italian here), Vista
> say that the destination directory is "Program files" instead of the
> localized name ("Programmi" in Italian).
> Also WorkDir() give the English name.
> So the installed software will be:
>
> "C:\Programmi\YourSoftwareName"
>
> but WorkDir() will report
>
> "C:\Program files\YourSoftwareName"
>
>

Reply With Quote
  #3  
Old 09-02-2008, 06:07 AM
Alessandro m. Antonangeli
Guest
 
Default Re: WorkDir and Vista

You may be right, I do not have Vista. It happened to a client of mine.
Working ok on XP.
The problem is that if you try to create a file FCreate(WorkDir()+FileName)
it do not work because of the wrong path
--
Ciao
Alessandro

"John Martens" <adsl672100@tiscali.nl> ha scritto nel messaggio
news:48bc39d6$0$24400$5fc3050@news.tiscali.nl...
> Alessandro,
>
> I think C:\Program files\YourSoftwareName is the real folder name. You can
> see this when opening a command window in the folder.
> When you use windows explorer the explorer 'fools' you to show the italian
> name C:\Programmi\YourSoftwareName.
>
> This is also the case for the MyDocuments folder (and many others).
>
> John
>
>
> Alessandro m. Antonangeli schreef:
>> Hi all
>> Just to know
>> Installing a program with a localized version of Vista (Italian here),
>> Vista say that the destination directory is "Program files" instead of
>> the localized name ("Programmi" in Italian).
>> Also WorkDir() give the English name.
>> So the installed software will be:
>>
>> "C:\Programmi\YourSoftwareName"
>>
>> but WorkDir() will report
>>
>> "C:\Program files\YourSoftwareName"
>>


Reply With Quote
  #4  
Old 09-02-2008, 11:27 AM
John Martens
Guest
 
Default Re: WorkDir and Vista

Alessandro

I'm using Vista but this returns the true-line:
IF File("C:\Program Files\cavo28\Bin\VO.ICO")
InfoBox{,, "VO.ICO is there"}:Show()
ELSE
ErrorBox{,, "VO.ICO is not there"}:Show()
ENDIF

Vista is more critical on writing to C:\Program files for non Admin
users. This is redirected to the folder of the user.

If you have another question about Vista dirs let me know.

John


Alessandro m. Antonangeli schreef:
> You may be right, I do not have Vista. It happened to a client of mine.
> Working ok on XP.
> The problem is that if you try to create a file FCreate(WorkDir()+FileName)
> it do not work because of the wrong path

Reply With Quote
  #5  
Old 09-02-2008, 01:20 PM
Stefano
Guest
 
Default Re: WorkDir and Vista

Alessandro m. Antonangeli ci ha detto :
> Hi all
> Just to know
> Installing a program with a localized version of Vista (Italian here), Vista
> say that the destination directory is "Program files" instead of the
> localized name ("Programmi" in Italian).
> Also WorkDir() give the English name.
> So the installed software will be:
>
> "C:\Programmi\YourSoftwareName"
>
> but WorkDir() will report
>
> "C:\Program files\YourSoftwareName"


Alessandro,
this is right, Vista uses alias on Program Files.

ciao
Stefano


Reply With Quote
  #6  
Old 09-02-2008, 07:12 PM
Alessandro Antonangeli
Guest
 
Default Re: WorkDir and Vista

Uh, there must be a strange logical behind this
I installed in "program files" (Inno Setup)
It was really installed in "Programmi"
It reports "Program files"
If I create a file it must be in "Programmi", because it didnt create a file
if i use "Program files"
So, if I do standard installation of a program of mine, let say, in a
Japanese pc, I should now the Japanese name of "Program Files" in order to
create a file?
--
Ciao
Alessandro

"John Martens" <adsl672100@tiscali.nl> ha scritto nel messaggio
news:48bd5b48$0$24410$5fc3050@news.tiscali.nl...
> Alessandro
>
> I'm using Vista but this returns the true-line:
> IF File("C:\Program Files\cavo28\Bin\VO.ICO")
> InfoBox{,, "VO.ICO is there"}:Show()
> ELSE
> ErrorBox{,, "VO.ICO is not there"}:Show()
> ENDIF
>
> Vista is more critical on writing to C:\Program files for non Admin users.
> This is redirected to the folder of the user.
>
> If you have another question about Vista dirs let me know.
>
> John
>
>
> Alessandro m. Antonangeli schreef:
>> You may be right, I do not have Vista. It happened to a client of mine.
>> Working ok on XP.
>> The problem is that if you try to create a file
>> FCreate(WorkDir()+FileName) it do not work because of the wrong path



Reply With Quote
  #7  
Old 09-03-2008, 02:12 AM
John Martens
Guest
 
Default Re: WorkDir and Vista

Alessandro,

I do not think the problem is in the language of the two dirs.

The problem is in not creating the file.
What kind of user runs the app ? Admin of regular ?

John


Alessandro Antonangeli schreef:
> Uh, there must be a strange logical behind this
> I installed in "program files" (Inno Setup)
> It was really installed in "Programmi"
> It reports "Program files"
> If I create a file it must be in "Programmi", because it didnt create a file
> if i use "Program files"
> So, if I do standard installation of a program of mine, let say, in a
> Japanese pc, I should now the Japanese name of "Program Files" in order to
> create a file?

Reply With Quote
  #8  
Old 09-03-2008, 04:00 AM
Alessandro Antonangeli
Guest
 
Default Re: WorkDir and Vista

> The problem is in not creating the file.
Yes (even if i do not understand what is the advantage of calling the same
directory in 2 different way)
> What kind of user runs the app ? Admin of regular ?

I didn't check (and I cannot do for the moment), but I thing it was Admin,
because he is the only one user.
--
Ciao
Alessandro


Reply With Quote
  #9  
Old 09-03-2008, 12:10 PM
John Martens
Guest
 
Default Re: WorkDir and Vista

Alessandro,

The advantage is that in dutch a folder name Afbeeldingen is better
understood by the majority of Windows users than a foldername Picture.

In order to have windows and it's apps working in the same way MS cannot
vary the 'real' names of folders but they can alias the folders in own
MS apps.

John


Alessandro Antonangeli schreef:
>> The problem is in not creating the file.

> Yes (even if i do not understand what is the advantage of calling the same
> directory in 2 different way)
>> What kind of user runs the app ? Admin of regular ?

> I didn't check (and I cannot do for the moment), but I thing it was Admin,
> because he is the only one user.

Reply With Quote
  #10  
Old 09-03-2008, 02:07 PM
D.J.W. van Kooten
Guest
 
Default Re: WorkDir and Vista

On Wed, 03 Sep 2008 18:10:33 +0200, John Martens
<adsl672100@tiscali.nl> wrote:

Hello John,
>
>The advantage is that in dutch a folder name Afbeeldingen is better
>understood by the majority of Windows users than a foldername Picture.



Microsoft is full of these kind of "advantages". I wish they just give
you the option to chose before starting with a new Windows or Office
or whatever.

It gives a lot of problems to programmers, those unanounced changes.
Dozens of examples. The impossibility to read CHM files from the
server overnight after a Windows update, which required all my clients
to run a registry change for example,..I could make a long list...

Why don't they call Windows Raampjes in Duch or Ventanas in Spanish
and Bill Gates Wim Hekjes or Juan Puertas? That's easier to understand
<g>

Dick van Kooten
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:53 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.