Go Back   PackageDeploy Application Packaging Forums > Package Development > Application Packaging > Windows MSI

Reply
 
LinkBack Thread Tools Display Modes
Old 12-19-2008, 03:12 AM   #1 (permalink)
JohnWK
Guest
 
Posts: n/a
Default Installing Files To ProgramData Folder With VS2008 Setup Project?

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.
  Reply With Quote
Old 12-19-2008, 03:12 AM   #2 (permalink)
Phil Wilson
Guest
 
Posts: n/a
Default Re: Installing Files To ProgramData Folder With VS2008 Setup Project?

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
newsBCD12FF-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.



  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:12 PM.


vBulletin, Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
2007 - 2012 PackageDeploy.com