Running installers as Admin

  • Thread starter Thread starter John Dough
  • Start date Start date
J

John Dough

Is there a way I can re-design my installer (MSI) to always require the user
to run it in as an administrator? As in "In administrator compatability
mode".

My installer already cheks if the user is an admin, but as you know in
Vista, this is not the same as in XP - the admin may not be running the
installer with "admin priviledges". So when I download my installer to
Vista and run it - it executes, but silently fails to perform some key
operations during the install. If I use the Vista compatability wizard, and
set the installer to run as an admin - everything is OK.

TIA
Z.
 
Maybe right click on the msi installer and go to the compatibility tab. There
may be an option to run as Administrator there.
 
Ron Rector said:
Maybe right click on the msi installer and go to the compatibility tab.
There
may be an option to run as Administrator there.

Or the user can explicitly "Run Elevated...". I understand this. That is
not what I am after.

What I want to know is how to I program my MSI so that it can detect that
the user is not already "running elevated" and warn them with explict
instructions on what to do and stop the installation.

Help!
 
Back
Top