Announcement

Collapse
No announcement yet.

How to force installation to "Program Files" by default.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Ulrich
    replied
    Always use the Session Variables %ProgramFilesFolder% and %SystemFolder% for defining the installation folder in your project, and your product will work correctly once installed. You should never use any hardcoded path in your setup.

    Ulrich

    Leave a comment:


  • Kram00
    replied
    Thanks for the reply Ulrich.

    What I was hoping to achieve was to have a consistent location for my DLL's which are quite extensive for the app. I do no that I can refer to whatever location by using System references, and also "should" do as you suggested which is fair enough, however having everything at the one location especially when I am building for x86 or x64 would be more practical at this end.

    Is it something I should just steer clear of and just stick to the "Program Files" and "Program Files (x86)" respectively in your opinion and a "safer" option ?

    Thanks

    Leave a comment:


  • Ulrich
    replied
    If your application is 32-bit, and you are using a 32-bit setup, then the "Program Files" folder reserved for 32-bit applications ("Program Files (x86)") is the proper installation location. If your application is a 64-bit executable, then build a native 64-bit setup.

    Ulrich

    Leave a comment:


  • How to force installation to "Program Files" by default.

    Perhaps an old question but would appreciate some guidance - How can I force "Program Files" instead of the installation defaulting to "Program Files (x86)"

    I am installing on a x64 machine but it defaults to "Program Files (x86)". Funnily enough, my x86 test environment installed to "Program Files"

    Cheers

Working...
X