Umesh, Thanks for responding to my question.
I am using OpenProcess(PROCESS_TERMINATE, ...). When I execute the same exact code from a system account with elevated privileges using PSEXEC, it works, so I know there is something wrong with the privileges when my code runs as a Custom Action. I also have verified this by looking at the privileges with Process Explorer. Any other ideas? Thanks, Jeff On Sat, Feb 19, 2011 at 12:56 AM, Umeshj <umesh_jogle...@hotmail.com> wrote: > > > What access level are you using for OpenProcess() ? > > A simple PROCESS_TERMINATE is sufficient. If you are using > PROCESS_ALL_ACCESS it will fail. > I had experienced the same problems and after changing the dwDesiredAccess > param it worked well. > > Umesh > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Running-a-custom-action-with-elevated-privileges-tp6041158p6042577.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users