Well I think I have figured out why the issue is occurring. The call that is failing in the custom action is LoadUserProfile(). This needs the SeBackupPrivilege which the windows installers service *does not* have on a UAC-enabled system.
Some details: http://blogs.msdn.com/b/vistacompatteam/archive/2006/10/19/impact-of-least-privilege-in-system-services.aspx http://blogs.msdn.com/b/windows_installer_team/archive/2008/05/01/what-changed-in-windows-installer-4-5.aspx http://social.msdn.microsoft.com/Forums/en/windowssecurity/thread/b9ea2a0e-5a0e-4e07-92e2-4c7e1f2c5496 Any advice or known workarounds are welcome. :) On Thu, Jan 20, 2011 at 3:33 PM, Andy Clugston <clug...@gmail.com> wrote: > Hi Users, > > I am working on a product that needs to support Windows 7 w/ UAC enabled. > The MSI has a few custom actions that perform various configuration items > that I would like to keep contained within the MSI/product install. > > The custom actions are Execute='deferred' with Impersonate='no' and they > are scheduled Before='InstallFinalize'. One action is a vb script, and the > other calls a native C/C++ dll. They *both* contain configuration items that > require elevated privileges. Now, I have verified that the vb script action > works fine, however the dll custom action does not. I am getting a > permission error from the dll custom action when it runs. > > So, it appears to me that there is a difference in the two different types > of custom actions, and how the user/system privileges are propagated from > the msiexec process to these action processes. I've done some digging online > (and will continue to) regarding the issue, but have not run across this > particular case with the different action types acting differently. > > I am running the MSI on a Win7 x32 system with UAC using WiX 3.0.5419. > > As always, thanks for the help. > ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users