Running installers as Admin

Posted: 10-04-2006, 04:33 AM
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.


Reply With Quote

Responses to "Running installers as Admin"

Ron Rector
Guest
Posts: n/a
 
RE: Running installers as Admin
Posted: 10-04-2006, 09:17 AM
Maybe right click on the msi installer and go to the compatibility tab. There
may be an option to run as Administrator there.

"John Dough" wrote:
> 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.
>
>
>
Reply With Quote
John Dough
Guest
Posts: n/a
 
Re: Running installers as Admin
Posted: 10-04-2006, 03:42 PM

"Ron Rector" <RonRector@discussions.microsoft.com> wrote
> 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!




Reply With Quote
Tyler Hunt [MS]
Guest
Posts: n/a
 
Re: Running installers as Admin
Posted: 10-04-2006, 06:04 PM
Custom actions have this magical bit that says whether or not the custom
action runs as the service or as the invoking user.

This might help clear things up:
http://blogs.msdn.com/rflaming/archi...23/768248.aspx
http://blogs.msdn.com/heaths/

You should be able to run an MSI without requiring it to be pre-elevated.

"John Dough" <nope@spamme.biz> wrote in message
news:JLPUg.93829$R63.11730@pd7urf1no...
>
> "Ron Rector" <RonRector@discussions.microsoft.com> wrote
>> 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!
>
>
>
>

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
How good is Vista about automatically running installers as administrator? Milhouse Van Houten Windows Vista Security 11 05-10-2007 04:49 AM
Cant open IE7 without running as admin on Vista SweetTater4Matthew Windows Vista Administration 2 03-11-2007 02:50 PM
Running as an Admin with prompts vs Standard? Grant Windows Vista Administration 2 07-16-2006 10:22 PM
running batch files as admin Gary Customize Windows XP 2 02-08-2004 08:56 PM
Running a program with admin rights by itself Jace Schivins Windows XP 0 07-15-2003 05:15 PM