views:

155

answers:

1

How do I flag an app in Windows Vista/Seven to disable desktop composition thru registry or NSIS script?

Normally it´s done in Compatibility settings in app´s properties.

A: 

If you really must, you can add an entry in the registry in "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" with the WriteRegStr instruction (I don't think there is an official API for this since the user is supposed to control those options, not the developer (After all, you can just fix your broken app) There is a undocumented function called SHGetAppCompatFlags to read the flags, but no "setter" AFAIK )

Anders