Questions tagged [program-files]

78 questions
2
votes
2 answers

Adding Files/Folders to Program Files x86 Folder with C#

I am trying to create a file directory (folder) in the 32 bit Program Files folder to store data that a user will be creating in the program. However, it keeps saying that access is denied when I try to do so. Is there anyway to give the program…
user1546315
  • 683
  • 5
  • 16
  • 27
2
votes
2 answers

Using pywin32 when installing a program into Program Files

I am trying to create an installer for a program that uses the pywin32 bindings to edit some excel spreadsheets. I have created an executable using py2exe and everything works when running the executable out of a folder on the desktop. However, I…
Aaron S
  • 711
  • 2
  • 10
  • 23
1
vote
1 answer

Edit Settings.txt Document within Program Files directory during AutoCAD runtime

I am trying to store the AutoCAD users' settings in a directory under their Program Files. Originally, I had everything stored in the users favorites folder, but I wanted to keep all the plugin documents/files within the same directory. So, I have…
John89
  • 45
  • 1
  • 7
1
vote
0 answers

Where should I move .idlerc so that it's convenient for Python?

I have found .idlerc in the users subfolder should I move it into the Python program subfolder?
1
vote
0 answers

Why is it not advised to unzip flutter in program files?

When I unzip flutter in program files, flutter doctor command hangs when tried to execute from the command line even after adding its path. The problem gets fixed when I unzip flutter in some other directory. I wanted to know the reason for this??
Primakov
  • 11
  • 3
1
vote
2 answers

How to properly open a login form

I have a login form and MDI main form in my c# windows application. In that I'm opening my login form like this in the MDI form load event. And when login is successful only it exits and enables MDI main form. Recently only I found out that if I…
CWW
  • 65
  • 1
  • 6
1
vote
1 answer

When uninstalling a windows service with a x64 installer , Environment.SpecialFolder.ProgramFiles returns "Program Files (x86)"

I have written a x64 windows installer for a C# windows service. The windows service itself targets Any CPU. It installs the service correctly to "Program Files". However, when uninstalling, I need to remove the logs directory. But when I try to…
Sagar Kapadia
  • 105
  • 1
  • 9
1
vote
1 answer

Windows 7: Can't save files to Program Files? So where to write?

The question is related to the Title: Windows 7: Can't save files to Program Files? So where to write? I know that there is a AppData, but I don't know how to obtain the directory correclty? Is there an API to get it? Do this API get the AppData for…
okami
  • 2,093
  • 7
  • 28
  • 40
1
vote
0 answers

How to modify, replace and delete files in Program Files folder in VB.NET

I'm working on a custom updater application to work along side my main application in VB.NET that will download an update.zip file from a server that contains the freshly updated program files of my main application. It will extract the contents of…
1
vote
1 answer

non-ascii characters in "Program Files" or Users\Public?

I have a large amount of existing C++ code that uses plain fopen() in various places to open files. Generally, the path used is an absolute path, and starts either with "C:\Program Files (x86)\MyProgram..." or with…
M Katz
  • 5,098
  • 3
  • 44
  • 66
1
vote
1 answer

Compiled Python writing to Program Files

I have written a program that creates several sqlite3 database temp files. In development, I just stored them in a folder in the same folder with the src package. I overlooked the fact that you need admin access when the code is compiled and run…
horriblyUnpythonic
  • 853
  • 2
  • 14
  • 34
1
vote
1 answer

Node Webkit - Finding standard directories

Is it possible to find standard directories like 'Program Files' or 'Windows' and their Linux and Mac equivalents in Node webkit?
Rewind
  • 2,554
  • 3
  • 30
  • 56
1
vote
1 answer

Changing Load Location of Outlook plugins

We have created a VSTO Plugin for Outlook. Is it possible to make Outlook look a directory outside of C:\Program Files for the location of plugins?
mmmm
  • 2,431
  • 2
  • 35
  • 56
1
vote
1 answer

Windows SDK path common to Windows XP (32-bit) and Windows 7 (64-bit)

I'm using a tool from the Windows SDK in my Visual Studio project. I need to support both Windows XP (32-bit) and Windows 7 (64-bit) development environments. The Windows SDK gets installed under Program Files in both OSes. This is the problem! I…
sourcenouveau
  • 29,356
  • 35
  • 146
  • 243
0
votes
1 answer

Checking if directory is protected

I perform some read/write operations on files in my app. It's still under development so for easiness I keep files locally. In the beginning I want to check if app is started from protected directory (such as c:/Program Files) to avoid getting crash…
0xddr
  • 65
  • 1
  • 8