PDA

View Full Version : How to set this path: ...


Kai
12-13-2003, 12:50 PM
How must I prefine this path in my setup?
C:\Dokumente und Einstellungen\John\Anwendungsdaten\This Program

I work and test under German Os. Is it "%MyDocumentsDir%\Anwendungsdaten\This Program" or something else?

Hope anyone may help me.

Kai from Germany

csd214
12-15-2003, 06:17 AM
I presume that ‘Anwendungsdaten’ is the same as ‘UserData’ in an English OS. Does the Registry value ’CachePrefix’ in HKCU\Software\Microsoft\Windows\CurrentVersion\Int ernet Settings\5.0\Cache\Extensible Cache\UserData contain ‘Anwendungsdaten’?

You can probably use the BuiltIn Variable %Desktop% and substitute the last subfolder name with ‘Anwendungsdaten’, or you could read the environment variable %USERPROFILE% through execution of a bat file:

@echo %USERPROFILE% > UserProfile.txt
@exit

Then read UserProfile.txt to assign value to your custom variable and add ‘Anwendungsdaten’ as suffix.
(I think %USERPROFILE% can be read from HKCU\Volatile Environment: HOMEDRIVE and HOMEPATH.)

Kai
12-15-2003, 07:27 AM
The registry value is indeed "Anwendungsdaten".
How do I have to set this path into my setup?
I really don't know how to do this.
Via "CMD" it's - %USERPROFILE%\Anwendungsdaten\The new folder\the new file

Can anyone help me to manage this?