Disable Data Execution Protection in installshield


In my software I am using a third party activex component which is using some kind of encryption to protect itself. In windows server 2003 this component does not properly register, and my application will not properly execute. When Windows Data Execution Protection (DEP) is disabled, it is working fine.

So I want to disable DEP for the 2 executables in question. Is it possible to do this automatically from the installshield script? (I am using Installshield Developer 8). An alternative would be opening the dialog (Control Panel-System-Advanced-(Performance) Settings-Data Execution Protection, and instruct the user to add two exceptions there.
LVL 14
Who is Participating?
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.

See http://www.microsoft.com/technet/security/prodtech/windowsxp/depcnfxp.mspx#EQD ("How to Configure Memory Protection in Windows XP SP2"), where you should be able to specify a list of exceptions for DEP. This should be the same for W2k3. http://support.microsoft.com/kb/875351/en-us ("You receive a "Data Execution Prevention" error message in Windows XP Service Pack 2 or in Windows XP Tablet PC Edition 2005") also describes this method. I am afraid that there probably won't be any programmatic way that does not require a reboot, since that kinda would defeat the purpose of DEP.

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
cwwkieAuthor Commented:
> I am afraid that there probably won't be any programmatic way that does not require a reboot, since that kinda would defeat the purpose of DEP.

I was afraid of that. But then it would be better to pause the installation process and instruct the user to add the exceptions, and continue after the user confirms the exceptions are added. I can get the advanced tab with (something equivalent to) "rundll32 shell32.dll,Control_RunDLL sysdm.cpl,,3", but the other steps must be done manually.

But I leave this question open for some days in case someone else knows a better way.
You could use RegMon (http://www.sysinternals.com/Utilities/Regmon.html) to see where these changes are stored in the registry (if so) in order to do these steps programmatically.
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
Microsoft Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.