CommonAppDataPath and UserAppDataPath
Hi everybody,
my application setup installs some MS Access mdb files, which will be modified during app's execution.
I thought about installing them in Application.CommonAppDataPath or Application.UserAppDataPath.
I'm just wondering why do they depend on the ProductVersion?
e. g. C:\ProgramData\WindowsFormsApplication1\WindowsFormsApplication1\1.0.0.6
When the application is upgraded, the modified mdb files will still be necessary.
Where do you suggest me to install the files and why do you think these paths depend on the ProductVersion?
Roberto
Re: CommonAppDataPath and UserAppDataPath
During the update phase, have your setup program look for the older mdb version and move it into the newer, versioned location.
Re: CommonAppDataPath and UserAppDataPath
I've got 1Gb of files to move, so I think that this would be a useless waste of time :thumbd: , when these files could be sited always in the same place :thumb: .
There's lots of things I could do... for example I could place them in
C:\ProgramData\WindowsFormsApplication1\WindowsFormsApplication1
removing characters from the last backslash in the string CommonAppDataPath
(C:\ProgramData\WindowsFormsApplication1\WindowsFormsApplication1\1.0.0.6)
:thumbd:
I just wanted to know what is the right way to manage this issue and how to handle it in my future applications, since I don't find any reason to put files in a version-dependent folder. :confused:
I would like to know why all these variables contain version-dependend folders. If all my developments contained code that removes the ProductVersion from these paths, I'd feel my code as bad programming.