I want to create a Visual Studio 2010 setup project that deploys some files to a folder where my application can use it from. I want it so, that all users have the same files, and that they also could manipulate them without admin rights.
Thus, "Common Application Data Folder"* as described in this MSDN article, seems fine.
However, in my Visual Studio 2010 setup project I did not find the "Common Application Data Folder" available in the "Add special Folder..." drop down menu.
I have a .NET 4.0 WinForms app and see no reason why this does not show up. The user's common application data folder is available but does not match my intended use.
Thanks for any hints!
Add a new Setup Project in your solution > right-click Application Folder > Add > Project Output… > 2). Add a new Setup Project in your solution > right-click Application Folder > Add > Project Output… >
Full path to the Application Data folder common to all users. Note: During Current User installations this variable is mapped to the Current User Application Data folder.
Visual Studio setup projects do not have a predefined folder for common Application Data. However, you can install files in it like this:
[CommonAppDataFolder]
During install CommonAppDataFolder will be automatically resolved by Windows Installer.
A more specific solution might be to set the DefaultLocation property to:
[CommonAppDataFolder][Manufacturer]\[ProductName]
Manufacturer and ProductName will be resolved from the values you assign to the corresponding properties of the setup project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With