Is the purpose of the CA simply to ensure that elevation is happening or is it because you intend to make some changes to the system? If you simply want set the package to always require elevation then include the Package\@InstallScope set to "perMachine" and remove the Package\@InstallPrivileges attribute. If you want to fully ensure that the package will be elevated then additionally add a launch condition of "ALLUSERS=1". If you need the CA to run elevated look for in MSDN for "deferred custom action". There are package/session and scheduling restrictions and the CustomAction\@Execute attribute needs to be set to either "deferred", "commit", or "rollback" (as appropriate) and the CustomAction\@Impersonate attribute needs to be set to "no" (it will then run as the "LocalSystem" (aka SYSTEM) account, where it may or may not have access to the users desktop, meaning MessageBox may open on a desktop you cannot access). If what you are manipulating is either the registry or if you are copying/moving/deleting files/folders you should instead consider "semi-custom actions" (google/bing it) instead. Blair > Date: Tue, 25 Jun 2013 09:25:29 +0200 > From: lukasha...@gmx.at > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] Custom Action ALWAYS with admin rights > > On 2013-06-25 5:23, Bob Arnson wrote: > > On 24-Jun-13 14:17, Lukas Haase wrote: > >> <Custom Action='UpdateInstall' After='InstallFinalize'> > > Custom actions after InstallFinalize cannot run elevated. > > Thank you. What would be the best place to include this CA and ensure > that it runs elevated? > > Luke > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows:
Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users