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
Detecting DEP (Data Execution Prevention) Status
Another handy thing to know...
This would be another great addition to IA. Wouldn't mind knowing this one myself.
I don't mind about the state of DEP. I simply add my exe to the exclusion list using a registry key like this:
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.
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
InstallAware MVP
AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
That works
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
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
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
http://www.firedaemon.com
Who is online
Users browsing this forum: Google [Bot] and 30 guests