Real Software Forums
http://forums.realsoftware.com/

No Program Files (x86) folder on Windows 7
http://forums.realsoftware.com/viewtopic.php?f=6&t=47567
Page 1 of 1

Author:  pbesong [ Thu Apr 11, 2013 3:05 pm ]
Post subject:  No Program Files (x86) folder on Windows 7

Typically my app gets installed into the Program Files (x86) folder on Windows 7. I have a user, however, that says she does not have this folder and the app gets installed in Program Files and it will not launch. Is there something I can tell her to do? She's running Windows 7 Ultimate Service Pack 1. It is supposed to write the registration into a folder in ProgramData. Maybe that's the problem? I haven't had any issues with anyone before. I guess they all must have the (x86) folder.

Author:  kermit [ Thu Apr 11, 2013 3:28 pm ]
Post subject:  Re: No Program Files (x86) folder on Windows 7

She is running the 32bit version. It doesn't get an x86 version.
Program Files is not writable for your registration data.
Save it to the registry, or to an ini file in SpecialFolder.ApplicationData (not ProgramData)

Author:  pbesong [ Thu Apr 11, 2013 3:34 pm ]
Post subject:  Re: No Program Files (x86) folder on Windows 7

Okay, thanks. I'll give that a try.

Author:  pbesong [ Thu Apr 11, 2013 8:14 pm ]
Post subject:  Re: No Program Files (x86) folder on Windows 7

That worked. Thanks! Now I think I need to figure out how to decide if the user has it installed in the (x86) folder or not. I guess I can test to see if it exists and if not send it to ApplicationData instead of SharedApplicationData which seems to work better for multiple users on one machine.

Author:  swort [ Fri Apr 12, 2013 1:05 am ]
Post subject:  Re: No Program Files (x86) folder on Windows 7

Specialfolder.Applications

will give you a folderitem with Program Files or Program Files(x86) name
You can't write to it, but you might be able to know the folder name and system type.

If it has (x86) in it, then it would be a 64-bit system otherwise it will be 32-bit.

Author:  pbesong [ Fri Apr 12, 2013 7:25 am ]
Post subject:  Re: No Program Files (x86) folder on Windows 7

Great, I'll start with that. Thanks!

Author:  classone [ Fri Apr 12, 2013 9:12 am ]
Post subject:  Re: No Program Files (x86) folder on Windows 7

I would recommend using Inno Setup or Advanced Installer to install your software rather than doing it yourself. Those programs (I have used Inno) handle those sort of details for you and make life much easier.

Author:  pbesong [ Fri Apr 12, 2013 9:25 am ]
Post subject:  Re: No Program Files (x86) folder on Windows 7

Yes, i do currently use Inno Setup.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/