|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Guest
Posts: n/a
|
I'm trying to make a Setup Project in VS2008. I need to put some files into a
subdirectory of the "ProgramData" directory. It's not one of the options when choosing "Add Special Folder" in VS2008. Is there any way to do this? The ProgramData directory is the path returned by the API call SHGetKnownFolderPath(FOLDERID_ProgramData) in Win32 or by Environment.GetFolderPath(SpecialFolder.CommonAppl icationData) in .NET. It usually turns out to be "C:\ProgramData" on Vista and "C:\Documents and Settings\All Users\Application Data" on XP. It's the place where apps can store data files that will be shared by all users of the PC. The ProgramData directory is NOT the same as the "Common Files" directory, which is inside of "Program Files," with all the permissions issues that implies. |
|
|
|
#2 (permalink) |
|
Guest
Posts: n/a
|
It sounds like you want the CommonAppDataFolder standard installer property.
-- Phil Wilson Definitive Guide to Windows Installer http://www.apress.com/book/view/1590592972 "JohnWK" <JohnWK@discussions.microsoft.com> wrote in message news BCD12FF-E009-457A-B55C-75152595DA52@microsoft.com...> I'm trying to make a Setup Project in VS2008. I need to put some files > into a > subdirectory of the "ProgramData" directory. It's not one of the options > when > choosing "Add Special Folder" in VS2008. Is there any way to do this? > > The ProgramData directory is the path returned by the API call > SHGetKnownFolderPath(FOLDERID_ProgramData) in Win32 or by > Environment.GetFolderPath(SpecialFolder.CommonAppl icationData) in .NET. > > It usually turns out to be "C:\ProgramData" on Vista and "C:\Documents and > Settings\All Users\Application Data" on XP. It's the place where apps can > store data files that will be shared by all users of the PC. > > The ProgramData directory is NOT the same as the "Common Files" directory, > which is inside of "Program Files," with all the permissions issues that > implies. |
|