The MSI I'm working has an immediate custom action (after InstallFinalize) which writes to HKLM. On Win7 etc it fails even if the logged-on user is an admin unless it's run from an Admin Command Prompt (msiexec /i ...). How can I check for FULL admin privileges? Can it be done with "Windows Installer functions"?
Launch Condition "Privileged" is not sufficient, as it allows install started by double-click in Explorer to proceed for admin users -- the UAC prompt comes up then the install fails at the HKLM write. Unfortunately the custom action is in a module shared with other packages, so I can't change it to run deferred/no-impersonate. The fall-back position is adding a DLL to get a SID and check that for membership in the Administrators group, but a native Windows Installer or WiX solution would be much preferable. Thanks ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users