Installing software as Admin?
Posted
Wednesday, August 11, 2004 2:08 PM
by
bill
If you run as a least privilege user account, you will have probably noticed you generally can’t install software (other than xcopy deployment). Don wrote about his experience of this recently, and I had exactly the same happen to me last week when I installed ActiveSync. Unfortunately the story with ActiveSync is a bit more nasty than most well behaved applications.
First you don’t get prompted to run the app, nope it just starts. So if you ran the installer as Admin, ActiveSync runs as Admin, and next thing you know your pocket PC is syncing with your Admin account not your account (or at least trying to ) Worse, to kill that process you have to use Task Manager !
Software that wants to automatically run after install, really can’t do much about this. Even if it could attempt to work out which is the main UI identitiy, it would be fraught with “guessing” what your intentions are.
The best approach is to NOT use RunAs to run the Admin account to install software. Either log out and log in as Admin, or elevate your own permission to Administrator for the installation process (note: you can do this per “process” !!). The later is the way to do it in my books. To find out more about the “MakeMeAdmin”, see Aaron Margosis' blog.