programdata

File redirection from Program data to AppData\Local\VirtualStore\ProgramData

时光怂恿深爱的人放手 提交于 2019-11-30 19:11:53
问题 I am using C# with .net 3.5 I am saving my program data in a file under: C:\Program Data\MyProgramName\fileName.xml After installing and running my application one time I uninstalled it (during uninstallation I'm removing all the files from "program data") and then I reinstall the application, and ran it. The strange thig is that my application started as if the files in program data existed - means, I had old data in my app even though the data file was deleted. When running: File.Exists("C:

Write in “ProgramData” folder (W7 and Vista) .NET

♀尐吖头ヾ 提交于 2019-11-29 03:23:48
I install my app under "Program Files" directory. And I install data, under "ProgramData" directory: Environment.SpecialFolder.CommonApplicationData In programData I have created folder to save data. Example: C:\ProgramData\MyApp\MyData\here I have files and folders Under XP all runs fine. But not under Vista or W7 OS. I can read files in this directory, but I can not write files, I can not create new files, etc. The user is logged as Admin. Where I can store data without restrictions? I need store data in a folder visible for all users EDITED: I have this code in my app.manifest file: <?xml

What is the significance of the ProgramData folder in Windows?

我们两清 提交于 2019-11-28 20:02:09
What is the importance of the ProgramData folder in Windows? I have noticed that many installed programs store files in a subdirectory of the ProgramData folder. Is there a specific reason for that? I have to create an installer for my application. Should I store user-level files under ProgramData or under Users ? The documentation describes the expected use of this folder like this (emphasis mine): The file system directory that contains application data for all users. A typical path is C:\Documents and Settings\All Users\Application Data. This folder is used for application data that is not

What is the significance of the ProgramData folder in Windows?

前提是你 提交于 2019-11-27 12:54:09
问题 What is the importance of the ProgramData folder in Windows? I have noticed that many installed programs store files in a subdirectory of the ProgramData folder. Is there a specific reason for that? I have to create an installer for my application. Should I store user-level files under ProgramData or under Users ? 回答1: The documentation describes the expected use of this folder like this (emphasis mine): The file system directory that contains application data for all users. A typical path is

Vista and ProgramData

和自甴很熟 提交于 2019-11-26 21:46:45
问题 What is the right place to store program data files which are the same for every user but have to be writeable for the program? What would be the equivalent location on MS Windows XP? I have read that C:\ProgramData is not writeable after installation by normal users. Is that true? How can I retrieve that directory programmatically using the Platform SDK? 回答1: SHGetFolderPath() with CSIDL of CSIDL_COMMON_APPDATA. Read more at http://msdn.microsoft.com/en-us/library/bb762181(VS.85).aspx If you