How do I get the folder that corresponds to:
"c:\\documents and settings\\all users\\application data\\" in XP or
"c:\\ProgramData\\" in Vista?
I noticed the MyAppData variable corresponding to System->Application Data Directory, but it appears to be the roaming user profile.
I would think that there would be variables for:
Local App User Data
Local App User Data (roaming)
Shared App Data
These locations are especially important when making installs for Vista.
Thanks
Getting Application Folder
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Did you try all the available options in Get Folder Location?
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 46
- Joined: Tue Aug 22, 2006 9:16 am
- Location: NorthEast, USA
- Contact:
I had this issue and the solution was to check the "get for all users" option in Get Folder Location system -> application data. This way I can get the folder "C:\\ProgramData" in vista.
I have run into a similar issue. I am trying to get the 'Local User Data' folder in XP and in visa, and I can't find out how to do this. This is the folder I'm interested in:
XP: "C:\\Documents and Settings\\<username>\\Local Settings\\Application Data"
Vista: "C:\\Users\\<username>\\AppData\\Local"
In .net, I can get this folder with the following code:
System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData);
Thank you.
I have run into a similar issue. I am trying to get the 'Local User Data' folder in XP and in visa, and I can't find out how to do this. This is the folder I'm interested in:
XP: "C:\\Documents and Settings\\<username>\\Local Settings\\Application Data"
Vista: "C:\\Users\\<username>\\AppData\\Local"
In .net, I can get this folder with the following code:
System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData);
Thank you.
Who is online
Users browsing this forum: No registered users and 135 guests