Pat4040
Posts: 9
Joined: Fri Apr 27, 2012 3:37 pm

Common Application Data Folder

When creating a visual studio project, we are trying to create a folder that will contain certain persistent data like logs, photos, etc, which are necessary to our application.

We have created the following folders in Common Application Data: [company]\[product]\[data]

In Vista tests we end up with c:\programdata\[company]\[product]\[VERSION]\[data]. The version number subdirectory is created which makes this useless, as any upgrades will place a new version number and we cannot then access the data.

ANy thoughts? Is this something we are missing in Visual Studio?
applejax33
Posts: 10
Joined: Wed Jul 24, 2013 7:24 pm

Re: Common Application Data Folder

What we ended up doing was using the C:\Users\Public area that way you don't have to worry about setting specific rights.
Pat4040
Posts: 9
Joined: Fri Apr 27, 2012 3:37 pm

Re: Common Application Data Folder

Thanks. Will take a look at that.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Common Application Data Folder

Hello,

I'm afraid I don't fully understand your scenario. If you don't want the related folder to be installed in a location containing the ProductVersion of the current installing setup, then you should remove the ProductVersion property within the above installation folder path.

Let us know if this helped, otherwise please give us more details about your scenario (maybe exemplify).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”