I need to give the install exe elevated administrator privileges when initially loading. If the user’s windows has UAC mode enabled under Vista and Windows 7, the install fails because these privileges are not set. My install has dll functions that are performed in the “Begin” in the “InstallUISequence” under “Custom Actions” that need these elevated privileges.
I have checked the box “Run only if user has administrator privileges” under “Launch Conditions”. This does not elevate it to the level I need.
My dll functions have to be run before the install begins, so I can’t use the “…with no impersonation” because it is not available in that early in the “Begin” sequence.
Therefore, how can I add elevated administrator privileges to the exe upon loading the install? I need to embed a manifest somehow in Advanced Installer and I’m not sure how to do it. Or is there another way to accomplish these elevated privileges from the beginning of the install?
I would appreciate any help.
Thanks,
Ron
FOLLOW US
Get the latest news in Application Packaging