I'd like to exclude a single application's executable from DEP (Data Execution Prevention) on our automated Windows Server 2008 builds. Is there a way to do this either as a registry setting or from the command line?

link|improve this question

feedback

2 Answers

up vote 1 down vote accepted

Try editing the application path below and importing it:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
"C:\\Program Files\\MyApp\\MyApp.exe"="DisableNXShowUI"

Edit: Just checked on a Server 2008 install I have and that is how the Nagios client is handling the DEP issue with their installer.

link|improve this answer
Fab!....Did the trick. – Kev Aug 31 '09 at 18:02
feedback

I think that what you need is the Application Compatibility Toolkit. With this you can create a shim that specifies that DEP should be disabled for your application.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.