Thanks for your replies. Yep, that was my confusion. I also thought Impersonate="no" was the correct way to set the msidbCustomActionTypeNoImpersonate flag and run as LocalSystem. However, the action type is 1025. The custom action still fails when an admin launches the installer elevated via the UAC prompt. It only works with Impersonate="yes" and the action type is 3073 with msidbCustomActionTypeNoImpersonate set.
>From: Bob Arnson <[EMAIL PROTECTED]> >To: Mike Poulson <[EMAIL PROTECTED]> >CC: WenWu Ru <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >Subject: Re: [WiX-users] How to set msidbCustomActionTypeNoImpersonate in >Wix? >Date: Fri, 13 Apr 2007 11:11:28 -0700 > >Mike Poulson wrote: >>With UAC on vista no user is an admin unless they approve an elevate (via >>the UAC prompt). If you need a custom action to run with elevated >>privileges (a real admin) then you need to do a deferred CA with >>Impersonate = yes. This is what you are doing in your sample and it is the >>correct way to do it. >> > >With Impersonate="yes" the CA runs as the user, which isn't elevated even >if the user accepted the UAC prompt. Instead it needs to be >Impersonate="no" to run as LocalSystem. > >-- >sig://boB >http://bobs.org > > _________________________________________________________________ Need a break? Find your escape route with Live Search Maps. http://maps.live.com/?icid=hmtag3 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wix-users