Deploy files to ProgramData folder in a VisualStudio Installer

Windows “special folders” are a mess. Each version of Windows uses
different locations for these folders. This can cause issues when trying
to use these folders in your .NET code.

VisualStudio MSI deployment projects support some of these special
projects, however ProgramData (a new folder for storing application data
in Windows Vista, Windows 7 and Windows 2008) is not supported in
VisualStudio (yet, VS 2010).

To deploy a file to this folder, create a “Custom Folder” from the
special folder menu, set its name to anything you fancy, but set the
following two parameters like this:

  
DefaultLocation = [CommonAppDataFolder]\  
Property = COMMONAPPDATAFOLDER  

(note the [] in the first line)

Khash Sajadi

Khash is the founder and CEO of Cloud 66, a full stack container management as a service. Follow him on @khash

London, UK and San Francisco, US
Subscribe and get updates

Have feedback? Please get in touch @cloud66 on Twitter.

Everything you need to build, manage and maintain containers in production on your own servers and any cloud

Try Cloud 66 — 14 Days Free Trial, No credit card required