Re: [WiX-users] Running a custom action with elevated privileges

2011-02-23 Thread Umeshj
I faced an identical situation. New version application has a bootstrapper to upgrade to a higher DotNet version. Older app crashed as it could not handle the upgrade of dotnet. I wrote an unmanaged program which stopped older application process and then launched the installer (with its boot

Re: [WiX-users] Running a custom action with elevated privileges

2011-02-22 Thread Jeff Wisgo
ng.com] > Sent: Tuesday, February 22, 2011 7:54 AM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Running a custom action with elevated privileges > > IIRC, Windows Installer purposefully removes the Debug privilege from its > custom action

Re: [WiX-users] Running a custom action with elevated privileges

2011-02-22 Thread Wilson, Phil
? Phil Wilson -Original Message- From: Rob Mensching [mailto:r...@robmensching.com] Sent: Tuesday, February 22, 2011 7:54 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Running a custom action with elevated privileges IIRC, Windows Installer

Re: [WiX-users] Running a custom action with elevated privileges

2011-02-22 Thread Rob Mensching
e the one > required > > to terminate processes. > > > > Phil Wilson > > > > -Original Message- > > From: Jeff Wisgo [mailto:locksl...@gmail.com] > > Sent: Sunday, February 20, 2011 3:32 PM > > To: General discussion for Windows Installer XML tools

Re: [WiX-users] Running a custom action with elevated privileges

2011-02-22 Thread Jeff Wisgo
- > From: Jeff Wisgo [mailto:locksl...@gmail.com] > Sent: Sunday, February 20, 2011 3:32 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Running a custom action with elevated privileges > > Umesh, > > Thanks for responding to my q

Re: [WiX-users] Running a custom action with elevated privileges

2011-02-21 Thread Wilson, Phil
, February 20, 2011 3:32 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Running a custom action with elevated privileges Umesh, Thanks for responding to my question. I am using OpenProcess(PROCESS_TERMINATE, ...). When I execute the same exact code from a syst

Re: [WiX-users] Running a custom action with elevated privileges

2011-02-20 Thread Jeff Wisgo
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 als

Re: [WiX-users] Running a custom action with elevated privileges

2011-02-18 Thread Umeshj
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://window