Installing my software on Windows XP was always easy. Everything went in the "c:\Program Files\myprogram" directory. This included:
The executable program itself and any dlls.
Readme.txt and License.txt
The help files (.hlp or .chm or .pdf)
Program settings that are not in the registry (.ini files)
Sample data files for the program
Log...
I realize the odds of a user changing the Windows default of C:\Program Files is fairly slim, but stranger things have happened!
How can I get the correct path to Program Files from the system?
...
In C#, show to refer the locations:
Program Files (x86)
Program Files
rather than hard-coding C:\Program Files (x86) and C:\Program Files
...
A process running as a non-administrator user does not have rights to write to the program files folder. What is the best way to configure log4net to write to a location that a non-administrator user has rights to?
Ideally there would be:
A single configuration file or configuration from code would work for all versions of MS Windows...
Is there a reliable method to check if an application is run from somewhere beneath program files?
If the user installs the application to program files on local machine, we need to put writable files somewhere else to avoid virtualization on Vista and Win7. When installed to a network disk, though, we want to keep these files with the ...
I'm programming in C#.NET. I want to be able to return the Program Files directory from the target machine no matter what the architecture of the target machine is.
To clarify, I want it to return C(or whatever drive the OS is on):/Program Files no matter what bittness their version of windows is.
I could just hardcode in the directory ...
What would a 32 bit application running on Windows 7 return for the below -
Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)?
C:\Program Files (x86) or
C:\Program Files ??
...
I ran into this quite often stated problem but even after looking up nearly every scource I didn’t get an aswer. Problem is as follows:
I wrote a little updater tool that connects to a server to check for new versions of an application and then copies the new version to the clientmashine. So the pattern is as follows:
Client installs t...