Run application in windows 7 basic not Areo


Just wondering what code is required to run an application in windows 7 basic instead of windows 7 aero?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Do you mean that you want your application to look like windows classic/basic, so the borders don't disappear and the colors are the classic ones?
*) Right click the EXE
*) Click "Compatibility" (tab)
*) Under "Settings" click "Disable Visual Themes"

If that does not clear up any problems you are having, you can also try "Disable desktop composition" and "Disable display scaling on high DPI settings" - either by themselves or in combinations.
In terms of code you have to create your window with certain syles flags.
In .net  for instance, set the FormBorderStyle to FixedSingle or Fixed3d.
In C code check the CreateWindowEx API call :

CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.


Here is an explanation that includes code - although targeted at XP, most of these things are forward compatible for Vista and Windows 7.

If you are actually asking about lines of source code it would be important to know what programming language you are using.
Wait, just noticed you filed this under Installer.

If you don't have access to the source code AND if the setting I mentioned above works - then you can get that setting out of the registry here:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

You would, however, want to put it in HKEY_LOCAL_MACHINE - it will also work there.

Keep in mind:
*) the Layers key MUST have the full path to the EXE (so your installer should softcode the full path from whatever folder chosen during install)
*) if you work for the company that produces this software, you should have them opt out of visual themes in the source code instead of relying on AppCompat.
drmor4Author Commented:
Have access to the source code, using Delphi 2010 and have turned off Visual Themes.  However, we still get an issue with an importing dialog wizard that sprays the data above column headers which only occurs when using Win 7 and Aero.  When switching to the Basic theme, the wizard performs correctly. Our developers have run out of ideas and so now we are chasing turning off the aero theme when our application is running.
drmor4Author Commented:
Thanks CSI - Windows.  Was able to use the "Disable desktop composition" implemented with the installer.

Your assistance (and patience) is greatly appreciated.
OK - if you are taking a dependency on AppCompat - just keep track of it!  Also, many AppCompat items are NOT AVAILABLE for 64-bit EXEs because Microsoft is expecting you to design to the OS.  "Desktop Composition" appears to be one of the ones that is disabled for 64-bit.

This follows the bitness of your SOFTWARE not the OS.  So 32-bit EXEs on the 64-bit OS still have all of appcompat available.

Also, don't compile your setup.exe (if using one) to 64-bit or the appcompat regkey you are using may go into the wrong part of the registry.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.