Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I have learned the answer to my question through other sources, yes, yes! Sadly, it didn't fix my problem! What's that make me -- a fixer-upper? Yes, yes!</p> <p>To put stuff in a sub-directory of the Common Application Data folder from a VS2008 Setup project, here's what you do:</p> <ol> <li><p>Right-click your setup project in the Solution Explorer and pick "View -> File System".</p></li> <li><p>Right-click "File system on target machine" and pick "Add Special Folder -> Custom Folder".</p></li> <li><p>Rename the custom folder to "Common Application Data Folder." (This isn't the name that will be used for the resulting folder, it's just to help you keep it straight.)</p></li> <li><p>Change the folder's DefaultLocation property to "[CommonAppDataFolder][Manufacturer]\[ProductName]". Note the similarity with the DefaultLocation property of the Application Folder, including the odd use of a single backslash.</p></li> <li><p>Marvel for a moment at the ridiculous (yet undeniable) fact that there is a folder property named "Property." </p></li> <li><p>Change the folder's Property property to "COMMONAPPDATAFOLDER".</p></li> </ol> <p>Data files placed in the "Common Application Data" folder will be copied to "\ProgramData\Manufacturer\ProductName" (on Vista) or "\Documents and Settings\All Users\Application Data\Manufacturer\ProductName" (on XP) when the installer is run.</p> <p>Now it turns out that under Vista, non-Administrators don't get modify/write access to the files in here. So all users get to read the files, but they get that in "\Program Files" as well. So what, I wonder, is the point of the Common Application Data folder?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload