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"
I have tried all the options for Get Folder Location, but none of them will give me this path. In .net, I can get this folder with the following code:
System.Environment.GetFolderPath(System.Environment.SpecialFolder.LocalApplicationData);
Thank you.
Get folder Location in Vista
-
seanmckenna
- Posts: 46
- Joined: Tue Aug 22, 2006 9:16 am
- Location: NorthEast, USA
- Contact:
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
I think you can obtain this path from either the registry, or using Get Folder Location and then the Extract Path command. Let me know if none of these cover your situation!
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
-
seanmckenna
- Posts: 46
- Joined: Tue Aug 22, 2006 9:16 am
- Location: NorthEast, USA
- Contact:
I also need to get the folder location:
C:\\Documents and Settings\\<username>\\Local Settings\\Application Data
or "C:\\Users\\<username>\\AppData\\Local" when using Vista
When uninstalling, my application leaves some files that were created after the install in a subfolder of the above folder.
Is it possible to retrieve this location? I have tried all options using Get Folder Location command. Please help...
Edit: I found out that %localappdata% holds the right folder location for Vista can you make an addition to the Get Folder Location command for this?
C:\\Documents and Settings\\<username>\\Local Settings\\Application Data
or "C:\\Users\\<username>\\AppData\\Local" when using Vista
When uninstalling, my application leaves some files that were created after the install in a subfolder of the above folder.
Is it possible to retrieve this location? I have tried all options using Get Folder Location command. Please help...
Edit: I found out that %localappdata% holds the right folder location for Vista can you make an addition to the Get Folder Location command for this?
Local Appdata in XP and Vista
I can get the Local Data directory in Vista by parsing the Appdata location and pruning the Roaming string, that doesn't work for XP though.
I'd also like the %localappdata% location added to the GetFolder command.
I'd also like the %localappdata% location added to the GetFolder command.
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Re: Get folder Location in Vista
This behavior has been updated in InstallAware 9 R2 as follows: the Get Folder Location command now has a new parameter to directly obtain this folder path on all operating systems directly.
Please help yourself to a release candidate of InstallAware 9 R2 to ensure it works to your satisfaction:
www.installaware.com/forum/viewtopic.ph ... 3&start=30
Please help yourself to a release candidate of InstallAware 9 R2 to ensure it works to your satisfaction:
www.installaware.com/forum/viewtopic.ph ... 3&start=30
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/

