Tuesday, December 1, 2009

How to install an application on Windows without admin privilege

How to install an application on Windows without admin privilege?

In a corporate or university or school environment, it will be many times the case that users don't have admin access. And there are lot of application (mostly free and/or open-source) which are "just" applications and don't need admin privilege, but when you click on the setup file (exe or msi), it will pop up UAC dialog. I remember I was able to install these applications in Windows XP without admin privilege.

I noticed that when I try to install Microsoft Live Mesh or Google Chrome Browser, they don't pop-up UAC.

Here is my conclusion based on these observations:
The installer for Microsoft Live Mesh and Google Chrome Browser were updated for Windows 7 (or may be Vista) and the installer for other "non-admin" applications were not. Windows 7 detects that these installers were written for Windows XP and older, so it pops up UAC. Although Microsoft implemented a feature but it is broken. In a nutshell, a user should be able to do non-admin stuffs from non-admin account if she was able to do in Windows XP.

Update:

I found it:

"Local Policies -> Security Options -> User Account Control: Detect application installations and prompt for elevation" -> Disabled

Now it will not prompt UAC for installers. So when installing application if you want to give admin access to an installer, right click and select "Run as administrator."

No comments:

Post a Comment