Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 May : Registry CURRENT_USER - question

www.cryer.info
Managed Newsgroup Archive

Registry CURRENT_USER - question

Subject:Registry CURRENT_USER - question
Posted by:"Ove" (o..@speda.se)
Date:Sun, 20 May 2007 13:42:25

Hallo!

My application must be installed by administrator.
Then I want every user to start the progrm with his settings. So the first
time a user starts the program I want it to make a  TEMP Folder  (Path for
XP) C:\Documents and settings\users-name\My Documents\my company\my
program\TEMP and save his settings there. In Vista the path should be
C:\Users\user-name\My Documents\my company\my program\TEMP. (not sure about
this)  My problem is how do I find the user-name when the program starts?

Then i want to write this path to HKCU\Software\my company\my program
(Value: Settingsdir)

Can anyone help me on this?

Best Regards
Ove

Replies:

www.cryer.info
Managed Newsgroup Archive