Windows 10: Compatibility mode

Discus and support Compatibility mode in Windows 10 Software and Apps to solve the problem; I'm doing some research on an old application that I'm taking care of. As of Windows 8, it works if the Windows compatibility mode is se to "Windows... Discussion in 'Windows 10 Software and Apps' started by TedMtl, Jun 27, 2015.

  1. TedMtl Win User

    Compatibility mode


    I'm doing some research on an old application that I'm taking care of.
    As of Windows 8, it works if the Windows compatibility mode is se to "Windows 7" and I confirmed it also works if I set the compatibility mode on Windows 10.
    That problem I'm facing is that, I need to set the compatibility mode programatically, which I do in the installer for the app. Setting compatibility works properly on Windows 8 but not on Windows 10. It does not set anything. Suppose the same code simply does not work.
    So I was playing with the registry to confirm that if I set a proper value for my app in the HKLM¥SOFTWARE¥Microsoft¥Windows NT¥CurrentVersion¥AppCompatFlags¥Layers key, the compatiblity mode get set.
    This is straight forward and very easy to do.
    The issue I encountered is that, if I set the registry value manually or programatically, it does not get really applied. Looking at my application's property clearly shows the compatibility mode is correctly set. But until I manually click on "OK" button while showing the "Compatibility" tab, the setting does not get finalized as far as I see.
    If this is only way, basically the comapatibility mode needs to be set MANUALLY ONLY. It does not make sense for me.
    Even worse, I tried the same test on Windows 8.1 and I've got exact same behaviour. It only works if the "OK" button is click in the property dialog while showing the "Compatibility" tab.
    I'm really lost on how the capability mode works programatically.
    If anyone has any clue on this, please shed a light for me or direct me to a good reference(s).

    Thank you in advance.

    :)
     
    TedMtl, Jun 27, 2015
    #1

  2. compatability mode

    Hi Kareen,

    We'll need to gather a bit more information to better identify what's causing this conflict. Kindly answer the following:

    • Is this the first time that you encountered this issue?
    • What audio system are you using?
    • Are you getting any error messages? If so, can you send us a screenshot?
    • What troubleshooting steps have you tried so far?
     
    Charianne Per, Jun 27, 2015
    #2
  3. compatability mode

    Windows 10 is causing a conflict with my audio system due to windows 10 running in compatability mode. How do i get it to run in normal mode?

    ***Post moved by the moderator to the appropriate forum category.***
     
    Kareen Stuart, Jun 27, 2015
    #3
  4. Mystere Win User

    Compatibility mode

    Compatibility mode isn't supposed to work programmatically.

    You're supposed to fix your app, so it doesn't need compatibility. Compatibility mode is only for users who want to enable compatibility mode on apps that don't function correctly. If apps could set this behavior, then they would not fix their problems and just enable compatibility mode as their "fix" (which is what you're trying to do). Nobody would bother fixing anything.

    How about fixing your app instead?
     
    Mystere, Jun 27, 2015
    #4
  5. LMiller7 Win User
    Welcome to the forum.

    It was never intended that an application would set compatibility mode and this is unsupported. Much of compatibility mode operation is documented only as an implementation detail and subject to change without notice.

    This blog entry by Raymond Chen, a senior Microsoft developer, is relevant to this situation:
    http://blogs.msdn.com/b/oldnewthing/...1.aspx#9979973

    A quote:
    "Don't touch that knob; the knob is there for the customer, not for the program. And it's there to clean up after your mistakes, not to let you hide behind them."
     
    LMiller7, Jun 27, 2015
    #5
  6. See if anything here gets you heading in the right direction:

    Windows 8.1 App Compat Guide, Downloads | TechNet

    Application Compatibility Toolkit (ACT) Technical Reference

    If you can write a shim to work on Win 8.1, it should also work on Win 10

    That's all I have to offer, good luck
     
    Slartybart, Jun 27, 2015
    #6
  7. TedMtl Win User
    Thank you guys for your replies.

    I absolutely understand that I should fix the app. If I could, I'd have done it quite awhile ago.
    The biggest problem is that it is not my decision but my client's and all come to the cost, of course. Basically the client is looking for the quickest (and less expensive) way to prolonging the app's life as much as possible.
    There was the same type of discussion when Win8 came up. At the time, a workaround by modifying the installer and setting the compatibility mode to the app worked for Win8. So I was searching for very similar solution.

    After spending several hours to try to troubleshoot and complete updating Win 10 to the most recent state (couldn't believe it take so long with weird problems), it looks like the installer statred working in the the way works on Win8 by set the compatibility mode correctly and effective immediately (manually changing the registry does not take effect just like on Win8 but as long as the installer works, I'm okay).
    I still have to double check if this works properly on different machine but if it works, then I really feel fooled by MS.
    I will post a comment as soon as my test is done.

    Thank you again for you comment and time on this.
    Hopefully I can convine my client to allow me or someone to fix the app with recent dev tools and environment at least for Win11.
    Best regards,
     
    TedMtl, Jun 27, 2015
    #7
  8. Mystere Win User

    Compatibility mode

    In almost all cases, fixing the app is usually very simple, doesn't require rewriting the app, or changing your tools. It's just figuring out what is causing the incompatibility and fixing just the bit.

    For example, In many apps, they assume they can run as administrator, and therefore they try to open files in Read/Write mode when they may not have permission to do that (even when they only need read access).

    Have you even looked into why it's failing? It could be as simple as a tiny fix.. (or it might not, but without looking into it, you could be spending a LOT more time trying to hack compatibility than actually fixing it).
     
    Mystere, Jun 27, 2015
    #8
  9. TedMtl Win User
    I have quite spend some time on what causing the issue but the original source and development environment is based on VC++ 6. So you can image anything can go wrong on the recent Windows environments.
    The app actually needs to be rewritten since it also has very long history (going back to 1998) and numerous improvements that I could read from the code.

    Some extra tests I have done with manipulating the compatibility mode, I found that on a freshly installed Windows 10, the installer was not actually working. All the properties are set but it still require manually process by opening the property dialog and click on "OK" while showing "Compatibility" tab.
    Once the application is complete set with the compatibility mode, if I uninstall and reinstall it, it works without involving the manual process.
    So I think the manual process set certain information somewhere.
    I have to give a bad news to my client that what they prefer cannot be realized (or at least easily/quickly) and either let the users manually take the last step or overhaul the app. Obviously I'm not going to spend much more time on this unless I get paid for that part of the job unfortunately.

    Thanks again for your help.
     
    TedMtl, Jun 27, 2015
    #9
  10. Mystere Win User
    It may be that the app needs rewriting, but that doesn't mean you need to rewrite it to fix the compatibility issues.

    VC++6 is not incompatible with Windows 10. It's something the app is doing that is incompatible, and more than likely this is a simple fix (at least it has in almost all cases I've seen). Unless your app's basic function relies on something that is no longer allowed (security reasons, for the most part), I'd bet you can figure out the problems easily enough by running it in a debugger and breaking on thrown exceptions.
     
    Mystere, Jun 27, 2015
    #10
  11. TedMtl Win User
    Further investigation on the issue I have, I have noticed at least one thing. A third party DLL which is bundled and used by the app seems to be a part of not working if the compatibility mode is not set.
    This may be a tip of the icebuerg and the DLL definitely needs to be replaced but no recent version than that is available. This means eaither look for similar one or write the equivalent one.
    Hopefully no other components, especially thirdparty DLLs, are becoming the cause.
    I guess the little more investigation will help convince my client to make his decision in one way or another. I just need to get done with this development/maintenace.

    Regards,
     
    TedMtl, Apr 5, 2018
    #11
Thema:

Compatibility mode

Loading...
  1. Compatibility mode - Similar Threads - Compatibility mode

  2. Compatibility mode removed

    in Windows 10 Gaming
    Compatibility mode removed: I download fallout 3 from steam but it crashed after I hit new game I read that the compatibility mode would help but it has been removed from windows 11 not making it easy to play certain games I tried the fallout games and they same to work perfectly the mind boggles why...
  3. Compatibility mode removed

    in Windows 10 Software and Apps
    Compatibility mode removed: I download fallout 3 from steam but it crashed after I hit new game I read that the compatibility mode would help but it has been removed from windows 11 not making it easy to play certain games I tried the fallout games and they same to work perfectly the mind boggles why...
  4. Cannot Type The word properly in Compatibility mode

    in Windows 10 Gaming
    Cannot Type The word properly in Compatibility mode: Our Team faces this problem recently,For some older website still need to use the Internet Explorer to access, and while using Microsoft Edge to access,We need to change the link to IE mode compatibility mode.But for now after changing it to IE mode, user cannot type...
  5. Cannot Type The word properly in Compatibility mode

    in Windows 10 Software and Apps
    Cannot Type The word properly in Compatibility mode: Our Team faces this problem recently,For some older website still need to use the Internet Explorer to access, and while using Microsoft Edge to access,We need to change the link to IE mode compatibility mode.But for now after changing it to IE mode, user cannot type...
  6. WoW64/compatibility mode fails to launch a program.

    in Windows 10 Gaming
    WoW64/compatibility mode fails to launch a program.: Hello.Recently, I have been experimenting with running older programs on Windows 11. However, one program has been causing me problems.For some background, this program, known by either "net" or "hignet" is an old game hub from 2004, intended to run doujin minigames based off...
  7. WoW64/compatibility mode fails to launch a program.

    in Windows 10 Software and Apps
    WoW64/compatibility mode fails to launch a program.: Hello.Recently, I have been experimenting with running older programs on Windows 11. However, one program has been causing me problems.For some background, this program, known by either "net" or "hignet" is an old game hub from 2004, intended to run doujin minigames based off...
  8. EXE file compatibility mode I set is reset to General when I copy the file to another...

    in Windows 10 Network and Sharing
    EXE file compatibility mode I set is reset to General when I copy the file to another...: Using Windows 10, I'm trying to copy an exe file part of an Install disc with its compatibility mode set to XP-SP3 I used the Properties windows. All is well. When I copy this file if if set to read only to another folder the compatibility mode in the copy is reset to...
  9. EXE file compatibility mode I set is reset to General when I copy the file to another...

    in Windows 10 Gaming
    EXE file compatibility mode I set is reset to General when I copy the file to another...: Using Windows 10, I'm trying to copy an exe file part of an Install disc with its compatibility mode set to XP-SP3 I used the Properties windows. All is well. When I copy this file if if set to read only to another folder the compatibility mode in the copy is reset to...
  10. EXE file compatibility mode I set is reset to General when I copy the file to another...

    in Windows 10 Software and Apps
    EXE file compatibility mode I set is reset to General when I copy the file to another...: Using Windows 10, I'm trying to copy an exe file part of an Install disc with its compatibility mode set to XP-SP3 I used the Properties windows. All is well. When I copy this file if if set to read only to another folder the compatibility mode in the copy is reset to...