Oct 02, 2017 This Program Files folder is the recommended location where programs you install should store their executable, data, and other files. In other words, programs install to the Program Files folder. On 64-bit versions of Windows, 64-bit applications install to the Program Files folder. Windows setup/installer project: Forcing installation into “Program Files”, not x86? Program Files (x86) HisApplicationName'. I know the correct answer would be to rewrite the software to accomodate any directory the user chooses to install to, but unfortunately, this is very old sofware & needs to be installed tomorrow, so we just. Intel iCLS client - is it Program Files or Program Files (x86)? In Software and Apps Whilst working on problem with my Win10 OS, I found a bit of treacle during my examination. The Intel iCLS Client shows system environment variables for both the C: Program Files directory and also C: Program Files (x86).
Just paste the urls you'll find below and we'll download file for you! If file you want to download is multipart you can use our to check whether multiple download links are still active before you start download.
So I just learned the difference between Program Files and Program Files (x86). Most of my games are installed in Program Files (x86), but if they are 64 bit shouldn't they be installed in Program. After several days of researching and trying to resolve the following error, 'Cannot open include file: 'config-win.h' - followed by the recommendation to install Visual Studio Build Tools (VSBT).It has been a hit 'n miss to try and install exactly which VSBT should be installed, short of installing everything (even the components that is not required. May 07, 2010 I'm trying to figure out whether to install programs in Program Files or Program Files (x86). I do understand (hopefully correctly) that PF(x86) is meant for programs which will not run either on Windows7 or on 64 bit; that PF(x86) was set up to allow those programs to run on this machine.
Active4 years, 9 months ago
Just out of curiosity, if I am creating a program installer, how should I decide in which 'Program Files' directory to install to? On 32-bit systems, the environmental variable '%programfiles%' is good enough. However, on 64-bit systems, 32-bit programs should not install to that folder and instead to '%programfiles(x86)%', which as I understand points to 'C:Program Files (x86)'. My question is: How should the installer decide which environment variable to use? Will the value of '%programfiles%' change for a 32-bit application, or should I always check first whether '%programfiles(x86)%' exists before using '%programfiles%', or should I do something entirely different?
Thanks! This is just out of my own curiosity, as I try to get used to 64-bit operating systems.
AniDevAniDev
1,07911 gold badge1414 silver badges2020 bronze badges
2 Answers
When the 32-bit program (installer in your case) asks the system to resolve the Eugene Mayevski 'Allied BitsEugene Mayevski 'Allied Bits
ProgramFilePath constant (check the exact name in MSDN), the system does not return C:Program files, but C:Program files(x86). So it's the system that decides, not the application.
40.5k77 gold badges5353 silver badges111111 bronze badges
I'm pretty certain that I read somewhere that Windows did this for you automagically. In other words, if your installer was 32-bits, it would be routed to the
x86 directory variant even though you were trying to install into Program Files .
I'm sure I read this on The Old New Thing but here's a link that supports the contention until I can find that one. Third party patch management wsus.
Ah, yes, here it is, from the ever useful Raymond Chen.
Commenter Koro is writing an installer in the form of a 32-bit program that detects that it's running on a 64-bit system and wants to copy files (and presumably set registry entries and do other installery things) into the 64-bit directories, but the emulation layer redirects the operations into the 32-bit locations. The question is 'What is the way of finding the x64 Program Files directory from a 32-bit application?'
The answer is 'It is better to work with the system than against it.' If you're a 32-bit program, then you're going to be fighting against the emulator each time you try to interact with the outside world. Instead, just recompile your installer as a 64-bit program. Have the 32-bit installer detect that it's running on a 64-bit system and launch the 64-bit installer instead. The 64-bit installer will not run in the 32-bit emulation layer, so when it tries to copy a file or update a registry key, it will see the real 64-bit file system and the real 64-bit registry.
paxdiablopaxdiablo
How To Install Program Files X86 Or ProgrammingHow To Install Program Files On Pc
665k185185 gold badges13231323 silver badges17211721 bronze badges
Program Files X86 VariableNot the answer you're looking for? Browse other questions tagged windowsinstaller64-bit or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |