Re: VS2008 SpecialDirectories.AllUsersApplicationData vs. Setup Project [CommonAppDataFolder]
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng [MSFT])
- Date: Tue, 08 Apr 2008 02:37:37 GMT
Thanks for your reply Dan,
Yes, in windows Vista, the user profile folder hierarchy has changed a
bit(make it more simple and elegant ) from previous versions. Anyway, I'm
glad that you've got it working.
Have a nice day!
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
--------------------
Date: Mon, 07 Apr 2008 09:11:58 -0400Project
From: Dan Stevens <TOADLLC@xxxxxxxxxxxxxxxx>
User-Agent: Thunderbird 1.5.0.14 (Windows/20071210)
MIME-Version: 1.0
Subject: Re: VS2008 SpecialDirectories.AllUsersApplicationData vs. Setup
l
licationData)
Steven-
Thank you very much. I was able to make your suggestion work.
I used:
System.Environment.GetFolderPath(System.Environment.SpecialFolder.CommonApp
andSystem.Environment.SpecialFolder
[CommonAppDataFolder] in the Setup Project
I also discovered that apparently C:\Documents and Settings\All
Users\Application Data\ is aliased in Vista as C:\ProgramData\.
I knew Unix did that sort of thing...but this is the first time I've
noticed Windows doing it.
Thank$ a million!
Steven Cheng [MSFT] wrote:
Hi Dan,
As for the special directories(in VBNET app) and the Speical folders in
setup project, there does exists difference between them. Actually, the
VBNET's speical directories may add some addtional value into
ApplicationPath(such as app name and version number). While the setup
project's special folder is mainly related to what is commonly used for
setup a program. here is a list of setup project's folders:
#Special Folders and Custom Folders
http://msdn2.microsoft.com/en-us/library/s2esdf4x(VS.80).aspx
Also, in .net framework, you can use the
http://msdn2.microsoft.com/en-us/library/system.environment.specialfolder.asenum to get a list of common folders on windows system:
#Environment..::.SpecialFolder Enumeration
filepx
The Environment.SpecialFolder.CommonApplicationData seems point to the
"Documents Settings\All Users\Application Data". For the
"AllUsersApplicationData " in VBNET SpecialDirectories class, it is a
parituclar one implemented in VB.NET which doesn't quite conform to the
CommonApplicationData Location. I think you use the
System.Enviornment.SpecialFolders enum.
For sharing data among all users, the common approach is put the data
folder.with your application exe together in the Program Files installed
data.Or you can use a central server (database) to store large amount of
applicationOn vista, there is virtualization feature, this may affect your
applicationthat access shared , system location. You need to elevate the
mentionedat admin privilege to access those location. here is an article
andthis:
#Folder Virtualization in Windows Vista
http://www.west-wind.com/WebLog/posts/5584.aspx
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments
Pleasesuggestions about how we can improve the support we provide to you.
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notiffeel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
rights.ications.
This posting is provided "AS IS" with no warranties, and confers no
the
--------------------
Date: Sun, 06 Apr 2008 15:24:42 -0400
From: Dan Stevens <TOADLLC@xxxxxxxxxxxxxxxx>
User-Agent: Thunderbird 1.5.0.14 (Windows/20071210)
It appears that SpecialDirectories.AllUsersApplicationData refers to
following folder in Vista
C:\ProgramData\[Manufacturer]\[ProductName]\[ProductVersion]
I would prefer to reference the following:
C:\Documents and Settings\All Users\Application
Data\[Manufacturer]\[ProductName]
It appears this is the same as "[CommonAppDataFolder]" in my Setup
Project(File System on Target Machine-->Add Special Folder...)
1. Is there a reason the AllUsersApplicationData differs from
CommonAppDataFolder?
2. Is one location preferred over the other?
3. Why are there differences between
coding - My.Computer.FileSystem.SpecialDirectories...
and
deployment - File System on Target Machine-->Add Special Folder...
4. If I want the data to be shared amongst users, and I don't want the
data-store location to change when I change the version of my app...
...what is the preferred location, and how do I refer to it in coding &
deployment?
.
- References:
- VS2008 SpecialDirectories.AllUsersApplicationData vs. Setup Project [CommonAppDataFolder]
- From: Dan Stevens
- RE: VS2008 SpecialDirectories.AllUsersApplicationData vs. Setup Project [CommonAppDataFolder]
- From: Steven Cheng [MSFT]
- Re: VS2008 SpecialDirectories.AllUsersApplicationData vs. Setup Project [CommonAppDataFolder]
- From: Dan Stevens
- VS2008 SpecialDirectories.AllUsersApplicationData vs. Setup Project [CommonAppDataFolder]
- Prev by Date: Re: OLEVIEW supplied with VS2008 and x64
- Next by Date: Re: OLEVIEW supplied with VS2008 and x64
- Previous by thread: Re: VS2008 SpecialDirectories.AllUsersApplicationData vs. Setup Project [CommonAppDataFolder]
- Next by thread: Msbuild sometimes fails on CSharp --> C++ projdep which succeed in
- Index(es):
Relevant Pages
|