Detecting DEP (Data Execution Prevention) Status

Got a problem you cannot solve? Try here.
H4nd0
Posts: 92
Joined: Thu Nov 09, 2006 8:16 am
Location: Sydney, AU
Contact:

Detecting DEP (Data Execution Prevention) Status

Postby H4nd0 » Fri May 25, 2007 6:43 am

Is there anyway to detect the status of DEP with IA? I want to be able to warn the user of the DEP status and either correct the DEP configuration or add our executables to the DEP exclusion list. More info here:

http://forums.firedaemon.com/viewtopic.php?t=55

SteveDude
Posts: 253
Joined: Wed Apr 11, 2007 6:07 pm

Another handy thing to know...

Postby SteveDude » Tue Jun 05, 2007 2:02 pm

This would be another great addition to IA. Wouldn't mind knowing this one myself.

Tinus
Posts: 207
Joined: Tue Jun 20, 2006 8:42 am
Location: Germany

Postby Tinus » Fri Jun 08, 2007 5:16 am

I don't mind about the state of DEP. I simply add my exe to the exclusion list using a registry key like this:

Code: Select all

Write Registry Key HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers\\$TARGETDIR$\\<YourAppHere>.exe, DisableNXShowUI


If DEP is disabled and enabled later on, my app is in the exclusion list. If DEP is active you have to reboot to make it work.
My installer already needs to reboot, so this is no additional problem for my app.

This works (at least) on Windows XP and Server 2003.
Martin Rothschink
InstallAware MVP

AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware

SteveDude
Posts: 253
Joined: Wed Apr 11, 2007 6:07 pm

That works

Postby SteveDude » Fri Jun 08, 2007 9:09 am

Tinus,

Thanks for the trick. That's a start for a good workaround. It would still be nice to know if it is on so you could set the Reboot Flag in the install. Could be just another setting hidden somewhere.

SteveDude

H4nd0
Posts: 92
Joined: Thu Nov 09, 2006 8:16 am
Location: Sydney, AU
Contact:

Postby H4nd0 » Sat Jun 23, 2007 1:15 am

Thanks for the tip but it doesn't appear to work on Vista nor on x64 machines.

H4nd0
Posts: 92
Joined: Thu Nov 09, 2006 8:16 am
Location: Sydney, AU
Contact:

Postby H4nd0 » Mon Jun 25, 2007 1:00 am

I correct myself. It does appear to work but you have to flip the installer into 64-bit mode before you write the reg variables on an x64 box.
FireDaemon Technologies Limited
http://www.firedaemon.com


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 53 guests