Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Running installers as Admin

Reply
Thread Tools Display Modes

Running installers as Admin

 
 
John Dough
Guest
Posts: n/a

 
      10-04-2006
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
 
 
 
 
Ron Rector
Guest
Posts: n/a

 
      10-04-2006
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

 
      10-04-2006

"Ron Rector" <> 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

 
      10-04-2006
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" <> wrote in message
news:JLPUg.93829$R63.11730@pd7urf1no...
>
> "Ron Rector" <> 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
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not 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 Off


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 03:49 AM
Cant open IE7 without running as admin on Vista SweetTater4Matthew Windows Vista Administration 2 03-11-2007 12:50 PM
Is it possible for a service to start a user app running with admin privilege? Polaris Windows Vista General Discussion 9 02-16-2007 12:30 PM
Is it possible for a service to start a user app running with admin privilege? Polaris Windows Vista Security 9 02-16-2007 12:30 PM
Running as an Admin with prompts vs Standard? Grant Windows Vista Administration 2 07-16-2006 09:22 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59