Windows 7 - Program Files x86 instead of program files x64

Got a problem you cannot solve? Try here.
Post Reply
dunion
Posts: 106
Joined: Tue Oct 14, 2008 10:43 am

Windows 7 - Program Files x86 instead of program files x64

Post by dunion »

I've seen another post on this but no answer. I have program files set, it seems to install to the x86 directory when I require it to be x64. What is the best fix other than hard-coding this variable?

(That is, hard coding $PROGRAMFILES$ to "C:\\Program Files\\")
alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Post by alibaba »

Did you already set 64 bit operating system in design view >application requirements > special requirement ?
moorelife
Posts: 7
Joined: Mon Nov 23, 2009 3:38 am

Post by moorelife »

Yes, I have it set, but on 64 bit machines, TARGETDIR keeps returning the X86 folder instead of the 64 bit one. And that means I'm restricted to installing on 32 bit machines. That is unacceptable, because some of our clients just cannot get what they want with the 32 bit application.

Thanks for any Assistance available.

Dre'
dunion
Posts: 106
Joined: Tue Oct 14, 2008 10:43 am

Did you ever get a reply to this?

Post by dunion »

I've been trying to hard-code this but am looking for the "real answer"?.
dunion
Posts: 106
Joined: Tue Oct 14, 2008 10:43 am

One Part of the Ans:The check-requirements scripts have bugs

Post by dunion »

Search on the forums works today! I found a past reference to looking at the 'check' scripts that get included with the project requirements. All of them reset the 'mode' back to 32 bit mode - especially the ones looking for 64-bit versions of runtime components. So I guess the 'real answer' would be to re-write these to 'read' the current state and restore the current state rather than just drop it into a fixed state; But I would think that by default someone looking for an x64 component probably is doing an x64 bit install and if we have to hard-code it, that probably makes the most sense.

At the bottom you can double click the Set x86 and select Set x64 in each of the scripts. This applies to the .net runtimes and VC runtimes, MSI runtimes, etc. Anything with a x64 at the end of the requirements.
Post Reply