 | | From: | Dean Schmidt | | Subject: | Path for common and user application data folders | | Date: | Tue, 21 Dec 2004 00:26:50 +0000 (UTC) |
|
|
 | I have an app that creates files in both the common and user application data folders, but the path is different depending on which operating system is being used. I want to know if the constants {commonappdata} and {userappdata} will match the paths generated by my app. I do know that on a typical Win XP or 2k system the above constants are equivalent to: c:\Documents and Settings\All Users\Application data and c:\Documents and Settings\\Application data My question is what about on a typical Win9x/ME system what do the constants evaluate to?
Thanks, Dean
|
|
 | | From: | Jordan Russell | | Subject: | Re: Path for common and user application data folders | | Date: | Tue, 21 Dec 2004 16:38:56 -0600 |
|
|
 | "Dean Schmidt" wrote in message news:3d982662556cdd9e23d6a69559410f32$1@news.jrsoftware.org... > I have an app that creates files in both the common and user application > data folders, but the path is different depending on which operating > system is being used. I want to know if the constants {commonappdata} and > {userappdata} will match the paths generated by my app. > I do know that on a typical Win XP or 2k system the above constants are > equivalent to: > c:\Documents and Settings\All Users\Application data > and > c:\Documents and Settings\\Application data > My question is what about on a typical Win9x/ME system what do the > constants evaluate to?
On a *typical* system, IIRC:
C:\WINDOWS\Application Data and C:\WINDOWS\All Users\Application Data
It worries me that you're asking this, though. I hope you aren't hardcoding these paths in your application. Not only is "Application Data" sometimes localized on non-English editions of Windows, but users are free to change the Application Data paths to whatever they want (using e.g. Tweak UI).
Ideally, your application should obtain the paths using SHGetFolderPath, as Inno Setup does.
-- Jordan Russell
|
|
 | | From: | AGP | | Subject: | Re: Path for common and user application data folders | | Date: | Mon, 20 Dec 2004 19:27:41 -0600 |
|
|
 | I think thats covered in the Help file. Look up those constants.
AGP
"Dean Schmidt" wrote in message news:3d982662556cdd9e23d6a69559410f32$1@news.jrsoftware.org... > I have an app that creates files in both the common and user application > data folders, but the path is different depending on which operating > system is being used. I want to know if the constants {commonappdata} and > {userappdata} will match the paths generated by my app. > I do know that on a typical Win XP or 2k system the above constants are > equivalent to: > c:\Documents and Settings\All Users\Application data > and > c:\Documents and Settings\\Application data > My question is what about on a typical Win9x/ME system what do the > constants evaluate to? > > Thanks, > Dean > >
|
|
 | | From: | Dean Schmidt | | Subject: | Re: Path for common and user application data folders | | Date: | Tue, 21 Dec 2004 16:19:12 +0000 (UTC) |
|
|
 | AGP wrote:
> I think thats covered in the Help file. Look up those constants. > > AGP > > "Dean Schmidt" wrote in message > news:3d982662556cdd9e23d6a69559410f32$1@news.jrsoftware.org... >> I have an app that creates files in both the common and user application >> data folders, but the path is different depending on which operating >> system is being used. I want to know if the constants {commonappdata} and >> {userappdata} will match the paths generated by my app. >> I do know that on a typical Win XP or 2k system the above constants are >> equivalent to: >> c:\Documents and Settings\All Users\Application data >> and >> c:\Documents and Settings\\Application data >> My question is what about on a typical Win9x/ME system what do the >> constants evaluate to? >> >> Thanks, >> Dean >> >> I just now read through the constants section of the help file again, and although it does discuss {commonappdata} and {userappdata} it doesn't answer my specific question.
Dean
|
|
 | | From: | N.D. van Bochove | | Subject: | Re: Path for common and user application data folders | | Date: | Tue, 21 Dec 2004 22:29:47 +0000 (UTC) |
|
|
 | Well, I don't know (anymore) where Win9x had these folders, but I think you should look at the registry settings in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Sh ell Folders and HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\She ll Folders
These folders are not on a pre-determined place. A network administrator can choose to store them on another place, so you have to read the registry from your application to find out. I'm almost sure InnoSetup uses these same registry keys. However, some of these directories don't exist on Win9x, and in that case, InnoSetup chooses a substitute. I thought that's covered in the help file.
HTH, Diederik
Dean Schmidt wrote:
> I have an app that creates files in both the common and user > application data folders, but the path is different depending on > which operating system is being used. I want to know if the constants > {commonappdata} and {userappdata} will match the paths generated by > my app. I do know that on a typical Win XP or 2k system the above > constants are equivalent to: c:\Documents and Settings\All > Users\Application data and c:\Documents and Settings\> name>\Application data My question is what about on a typical > Win9x/ME system what do the constants evaluate to? > > Thanks, > Dean
|
|