Results 1 to 7 of 7

Thread: [RESOLVED] Path to program files not always the same

  1. #1

    Thread Starter
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Resolved [RESOLVED] Path to program files not always the same

    I have noticed that sometimes the path my app installed to program files looks different on some Vista machines: a (x86) is added to the path eg:
    C:\Program Files\MyApp
    C:\Program Files (x86)\MyApp
    This has not caused a problem, but I am sure curious.
    First i thought it was Vista with SP 2 only, but have since discovered it happens with SP1 and no service packs. Anybody have a reason for this?
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  2. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Path to program files not always the same

    32 and 64bit are two different platforms, and the 32bit programs run in a 64bit environment have to be treated differently, hence the two folders.

    There are 2 program files folders, one is for the 32 bits programs (x86) and the other (program files) is for the native 64 bits... and hence depending upon the above your app is installed....
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Path to program files not always the same

    This is where 32-bit applications normally get installed in a 64-bit system.

    In addition to the forms of file and registry virtualization people are getting used to in Vista and later, there is also WOW64 virtualization in 64-bit Windows editions. Normally a 32-bit application gets redirected to these locations automagically, without any special programming.

    There are even two versions of regsvr32 in a 64-bit system, one that is 32-bit code and registers 32-bit COM, another for 64-bit.

  4. #4

    Thread Starter
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: Path to program files not always the same

    Quote Originally Posted by koolsid View Post
    32 and 64bit are two different platforms, and the 32bit programs run in a 64bit environment have to be treated differently, hence the two folders.

    There are 2 program files folders, one is for the 32 bits programs (x86) and the other (program files) is for the native 64 bits... and hence depending upon the above your app is installed....
    Good explanation thanks, now i know
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  5. #5
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: [RESOLVED] Path to program files not always the same

    Remember, there is more to it than that. For example things have changed with System32 as well. This covers a little of it: Running 32-bit Applications.

  6. #6

    Thread Starter
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: [RESOLVED] Path to program files not always the same

    Quote Originally Posted by dilettante View Post
    Remember, there is more to it than that. For example things have changed with System32 as well. This covers a little of it: Running 32-bit Applications.
    Thanks for the info, reading was not clear, does this mean my vb6 app cannot
    use all the windows d'lls if OS is running under 64 ? I have a ton of api calls throughout my app.
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  7. #7
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: [RESOLVED] Path to program files not always the same

    I think in most cases you'll be just fine. Where required API calls will either be redirected to a corresponding 32-bit DLL or intercepted by WOW64 itself and thunked into the 64-bit subsystem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width