Questions tagged [program-files]
78 questions
                    
                    42
                    
            votes
                
                7 answers
            
        Use 32bit "Program Files" directory in msbuild
In 64 bit versions of windows, 32 bit software is installed in "c:\program files (x86)". This means you cannot use $(programfiles) to get the path to (32 bit) software. So I need a $(ProgramFiles32) to overcome this in my MSBuild project. I don't…
         
    
    
        wimh
        
- 15,072
- 6
- 47
- 98
                    22
                    
            votes
                
                6 answers
            
        How do I programmatically retrieve the actual path to the "Program Files" folder?
Possible Duplicate:
C# - How to get Program Files (x86) on Windows Vista 64 bit 
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…
         
    
    
        brasskazoo
        
- 76,030
- 23
- 64
- 76
                    17
                    
            votes
                
                1 answer
            
        How do get the path of Program Files regardless of the architecture of the target machine
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…
         
    
    
        PICyourBrain
        
- 9,976
- 26
- 91
- 136
                    14
                    
            votes
                
                2 answers
            
        Why am i getting WindowsError: [Error 5] Access is denied?
Trying to create program that adds folders into program files-recieving this error: 
WindowsError: [Error 5] Access is denied 'C:\\Program Files\\IMP'
Here is my code
import os, sys, random
numb= 1
x=True
while x==True:
    newpath = ((r'C:\Program…
         
    
    
        ThePrinceofPython
        
- 174
- 1
- 1
- 9
                    10
                    
            votes
                
                6 answers
            
        Add SSIS to existing SQL Server instance
I am trying to add Integration Services an existing SQL Server 2008 instance. 
I went to the SQL Server Installation Center and clicked the option to "New installation or add features to an existing installation." 
At this point, a file system…
         
    
    
        Addie
        
- 127
- 1
- 1
- 8
                    7
                    
            votes
                
                2 answers
            
        How to get environment variable ProgramFiles(x86) in Ant
I can get %ProgramFiles% in Ant with ${env.PROGRAMFILES}. But I can't figure out how to get %ProgramFiles(x86)%.
         
    
    
        Jerry
        
- 669
- 8
- 17
                    7
                    
            votes
                
                1 answer
            
        Where to install mixed 32 and 64 bit application packages
I know that on 64bit Windows 32 bit applications go into C:\Program Files (x86) by default, and 64-bit into C:\Program Files. 
But what if you have a more complex installation package including, say, one client component (32-bit) and one server…
         
    
    
        Martin Rasmusson
        
- 121
- 1
- 6
                    6
                    
            votes
                
                1 answer
            
        Refer to 'Program Files' on a 64-bit machine
In C#, how do I refer the following locations rather than hard-coding them? 
Program Files (x86)
Program Files
         
    
    
        Nemo
        
- 4,601
- 11
- 43
- 46
                    5
                    
            votes
                
                5 answers
            
        Environment.SpecialFolder.ProgramFiles value for a 32-bit application on Windows 7?
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?
         
    
    
        Sameer Rastogi
        
- 51
- 1
- 1
- 2
                    5
                    
            votes
                
                3 answers
            
        What makes c:\Program Files UAC-protected?
I know that c:\Program Files is UAC-protected, and if I allow a user to install to d:\Program Files, this is not, by default, UAC protected.  What makes c:\Program Files UAC protected other then the directory security settings?  Is it simply…
         
    
    
        Dave Ludwig
        
- 460
- 1
- 4
- 14
                    5
                    
            votes
                
                3 answers
            
        Java path to Program Files folder in windows 64bit
i`m trying to get the default Program Files folder on java. When  I use:
 System.getenv("ProgramFiles")
It returns "C:\Program Files" instead of "C:\Program Files (x86)"
I can add manually +(x86) but if the user will use 32bit system it will be the…
         
    
    
        DanM
        
- 1,530
- 4
- 23
- 44
                    4
                    
            votes
                
                3 answers
            
        How to copy resources folder out of jar into program files
I have spent hours and hours searching for the answer and I just can't figure it out, I am trying to copy my resources folder which contains all the images and data files for my game I am working on out of the running jar and into 
E:/Program…
         
    
    
        Zacx
        
- 420
- 5
- 10
                    4
                    
            votes
                
                2 answers
            
        Power Shell in x86 process - Access 64 bit program files
I've used SysNative before to access the 64 bit system32 directory, but I don't seem to be able to find an equivalent for the Program Files directory. I feel like I'm missing something simple, but if I try to do something such as:
$command =…
         
    
    
        Kyle
        
- 17,317
- 32
- 140
- 246
                    3
                    
            votes
                
                2 answers
            
        Do applications installed to Program Files have permissions to modify their folder?
If I install my app to program files, will it always be able to create and write files within its install directory?  It seems to work in a lot of different versions of windows, but are there situations where this wouldn't work? 
Mainly I'm using…
         
    
    
        dan
        
- 9,712
- 6
- 49
- 62
                    3
                    
            votes
                
                4 answers
            
        Finding Silverlight version & Installation Folder programmatically
Is it possible to find the version of the installed Silverlight (e.x. 4.0.51204.0) and its installation folder (e.x. C:\Program Files (x86)\Microsoft Silverlight\4.0.51204.0) in a C# program?
Some notes:
Not within a Silverlight application, but…
         
    
    
        el_shayan
        
- 2,735
- 4
- 28
- 42