This blog entry might be useful... http://blogs.msdn.com/b/ed_maurer/archive/2007/12/14/nxcompat-and-the-c-compiler.aspx
I previously did this with a post build step like what is described here. John -----Original Message----- From: Neil Sleightholm [mailto:n...@x2systems.com] Sent: Wednesday, July 13, 2011 4:16 PM To: Christopher Painter; General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Data Execution Prevention Opt Out List We had a similar requirement and I found that I could use editbin.exe to set the NXCOMPAT flag to no, this then stops Windows checking DEP. This applied to a .Net exe as the compiler defaults to enabling DEP checking. It worked for us but your app may be different. Neil -----Original Message----- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: 12 July 2011 18:27 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Data Execution Prevention Opt Out List I have a requirement that I'm trying to research the best solution for. Basically my development team has an application that has a dependency on a third party dll that has some known issues. I'm stuck between a rock and a hard place in that they will not eliminate the dependency and no one is available to fix the library. I mention all of this so that no one mentions the obvious solution. I'm being asked to have the installer configure DEP to list the executale as being exempt from DEP. In all my research the best way I've found to do this is to use a stdcall function found in sysdm.cpl called NoExecuteAddFileOptOutList(). I could use rundll via Quiet Exec CA or I could write a C++ to load the library and invoke the function. But I can't help wonder if there is another API that this function is calling that would be a better call for me to make. I've been googling and haven't found any hits. Does anyone on this list have previous experience with automating the configuration of this portion of Windows? Thanks, Chris --- Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users