How to make "msiexec /x" shortcut ask for elevation on XP?

Posted by lonelyass on Stack Overflow See other posts from Stack Overflow or by lonelyass
Published on 2012-06-22T15:00:04Z Indexed on 2012/06/22 15:16 UTC
Read the original article Hit count: 223

Filed under:
|
|

On XP (user account) when running this shortcut:

<Shortcut Id="UninstallStartMenuShortcut" Advertise="no"
              Name="AppName" Description="Uninstalls AppName"
              Target="[SystemFolder]msiexec.exe" Arguments="/x [ProductCode]"/>

I'm getting an error "You must be an Administrator to remove this application. To remove this application, you can log on as an administrator, or contact your technical support group for assistance."

Why this happens instead of asking for elevation with admin password? How can I avoid this stupid error?

© Stack Overflow or respective owner

Related posts about windows-xp

Related posts about wix