How to install in "C:\Program Files\" in 64bit computer? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

How to install in "C:\Program Files\" in 64bit computer?

Hello,

I am creating an installer which needs to always show by default to "C:\Program Files\" folder in the select folder dialog. However, in 64bit computers this automatically goes to "C:\Program Files (x86)\" folder. How to make the installer show to "C:\Program Files\" in 64bit computers? When I say "C:\Program Files\", I mean the default program files folder. I tried changing it to [ProgramFiles64Folder] in the Install Parameters pane, still it showed "C:\Program Files (x86)\" instead of "C:\Program Files\" folder. I even changed the [ProgramFilesFolder] to "C:\Program Files\", still it showed "C:\Program Files (x86)\" instead of "C:\Program Files\" folder. How to fix this please?

:?:
K
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to install in "C:\Program Files\" in 64bit computer?

Hi,

The selection of Program Files folder on the 64-bit machines is made according to package type. So regardless the changes you made, Windows Installer will choose the corresponding folder depending the package type.

In order to install your application in “C:\Program Files” on 64-bit machines you need to change "Package type" ("Package Definition" section, "Install Parameters" page) to "64-bit package for x64 processors" or "Mixed 32/64-bit matching the platform".

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to install in "C:\Program Files\" in 64bit computer?

You're welcome. Glad to help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”