View Full Version : Detecting if logged on user is admin when running install 'run as'

12-03-2003, 08:51 AM

The problem is that I want to check if the installation is being run using 'run as administrator' in order to have a special installation flow. Does anyone know how to do this?

12-03-2003, 09:15 AM
For a Basic MSI project use the property AdminUser

For a InstallScript project use the function Is()

12-03-2003, 09:59 AM
The problem is that AdminUser and Is returns TRUE since the installations is started 'run as' administrator. But I want to know if the user originally logged into the OS (who is simple user not allowed to start installation by himself) is simple user or admin.