Questions tagged [programdata]
44 questions
0
votes
1 answer
About ProgramData folder's right with UAC turned on under Vista
I login in with Administrator on Vista with UAC turned on, is it OK for me to create, modifty or delete file in ProgramData folder. My test result is YES, but I found my AP can access the folder which name is "MicroSoft", is there any starndard…

Yigang Wu
- 3,596
- 5
- 40
- 54
0
votes
1 answer
How to check if a folder path matches USERs folder in BAT script
I am writing a Windows batch script which tries to determine if a path value (extracted from an application's config file) points to a user specific folder (e.g. %APPDATA% ) or a general one (e.g. C:\ProgramData\AppName).
The long winded way to do…

TenG
- 3,843
- 2
- 25
- 42
0
votes
0 answers
Advanced Installer MSI - Only Writing to ProgramData when Running WPF App as Administrator
I have a WPF App I am saving a configuration file in.
I am attempting to write to:
Environment.SpecialFolder.CommonApplicationData (C:\ProgramData\My App)
However, when I run the App (non Adminstrator) it writes the file…

aherrick
- 19,799
- 33
- 112
- 188
0
votes
3 answers
How to get path to file for python executable
I'm trying to get path in python to open and write in text document by already exist path directory C:\ProgramData\myFolder\doc.txt, no need to create it, but make it work with python executable on user computer. For example if this way I got…
user7248941
0
votes
1 answer
How to expand the search environment variable %ProgramData% and use the start up info
I got PythonApplication1.py into the Sources of the C# Windows Form Application. On specific condition I write it into the Program Data folder this way:
File.WriteAllBytes(@"%ProgramData%\\Folder\\PythonApplication1.py",…
user7093132
0
votes
1 answer
Moving from local PC to Server
I have built a Windows Service app in .NET (C#C) that is currently running on my local PC (Win& 64 bit) and it has it's own Event Log File as well as a custom log file for post debugging which logs out to c:\ProgramData\MyAppName\.
I have the main 2…

MonkeyMagix
- 677
- 2
- 10
- 30
0
votes
0 answers
Issue with writing into ProgramData with SYSTEM account during installation
I am trying to install an application (using the SYSTEM account) that installs some certificates in the ProgramData folder by creating a new folder inside it. The installation fails at the stage where it tries to install these certificates.
During…

Nitin Kumar Mangalam
- 31
- 5
0
votes
0 answers
ProgramData. Access denied (VB.NET 2008)
I am storing .dat files in ProgramData to write and read configurations about my software. I can read, but I can't write. These .dat files are copied when software is installed. The installer has been created with AwInstall.
CODE TO WRITE .DAT:
If…

kontable
- 73
- 9
0
votes
1 answer
UAC Enforcement for ProgramData in Windows Server 2012
A file is created under C:\ProgramData\Example. This file is created with 'Full Control' permission for Administrators group. A domain user with Administrators privilege is able to overwrite file with new copy in Windows Server 2008 R2. When same is…

S Madhanmohan
- 45
- 1
- 14
0
votes
1 answer
Directory to store per machine application file (xml) such that my all users(using application) can read/write to it
I have gone through many discussions on multiple forums where people were discussing about how CommonAppDataFolder can be used to store per-machine files.
My application has a requirement where I need to store an XML file is a shared location such…

naren.katneni
- 275
- 1
- 4
- 10
0
votes
3 answers
WPF app writes files/data into "C:\ProgramData" but fails to write into other folders
We have developed WPF application which allows user to select folder path. WPF application writes files/data into this selected path. When we select "C:\ProgramData" as the path, it creates the file and write the data. But when the path is other…

Software Engineer
- 131
- 1
- 6
- 12
0
votes
1 answer
App unable to rewrite file saved by a Windows service
The problem is, my .NET Windows Service (running under NT AUTHORITY\SYSTEM) creates a file in a folder inside ProgramData, and the windows application gets a System.UnauthorizedAccessException if it tries to overwrite it. Currently logged in user…

Lou
- 4,244
- 3
- 33
- 72
0
votes
1 answer
How to prevent files from being virtualized, i.e. copied from ProgramData folder into AllUsers folder?
I'm storing application data in the
C:\ProgramData folder.
I want to prevent this data from being copied into
C:\Users\All Users\
What do I need to do in my application to disable this functionality?

DaveDev
- 41,155
- 72
- 223
- 385
-1
votes
2 answers
C++ app MDB in ProgramData copies to user's AppData folder when I dont want it to
I have a C++ program which connects to an Access database via OBDC System DSN connection. That DSN is a path to the MDB in the ProgramData folder. When User A runs the app, it copies that MDB file to their AppData\Local folder and any updates to the…

jrhoads23
- 109
- 1
- 8