Determing how an application detects the Windows version?

Discussion in 'other software & services' started by rseiler, Jun 11, 2016.

  1. rseiler

    rseiler Registered Member

    Joined:
    Dec 22, 2003
    Posts:
    90
    I have a situation where a particular Win32 app is soon going to look for certain versions of Windows to run on and exclude running on others. I can't upgrade the OS at this time, so to buy more time, I was wondering if there's a way to detect what the app looks at specifically (when starting or even installing) to make the OS determination.

    Armed with that information, I would then have enough info to attempt some way of fooling it. Without that information, I'd be guessing.

    Thanks
     
  2. roger_m

    roger_m Registered Member

    Joined:
    Jan 25, 2009
    Posts:
    8,629
    This may help you. Using Program Compatibility Mode in Windows 7. However you can't use it to run applications which need a more recent version of Windows than what you are running. In that case, there's nothing you can do.
     
  3. fblais

    fblais Registered Member

    Joined:
    Jul 31, 2008
    Posts:
    1,341
    Location:
    Québec, Canada
    They probably read a registry key.
     
  4. rseiler

    rseiler Registered Member

    Joined:
    Dec 22, 2003
    Posts:
    90
    Right, compatibility mode wouldn't help.

    On the registry, that's certainly possible, but it doesn't seem to be the obvious one: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion (I'm trying Process Monitor to see what I can see, but that's a needle in a haystack).

    Also, it seems to be unaffected by using HighVersionLie in Application Verifier (part of the SDK), but that only works if the program makes certain function calls.

    It's written in Python, apparently, though I'm not sure that's pertinent.
     
    Last edited: Jun 12, 2016
  5. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    5,919
    there a several ways to determine, also from registry.

    you need to refine for READ and SUCCESS events on registry and system files (eg explorer)

    what about to transfer the whole windows into a virtual machine? and in special we talk about XP. XP should not be a live system.
     
  6. rseiler

    rseiler Registered Member

    Joined:
    Dec 22, 2003
    Posts:
    90
    Yes, I've filtered, but there is still a tremendous amount of Registry reading, almost an absurd amount. I'm still looking at it (at this point, it's as much for the challenge as anything else).

    A VM is definitely a possibility, but it creates a complication, since abundant data that this app uses must remain outside the VM, and the app is dismissive of network drives. Still, there might be a way with SUBST or the like.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.