Retrieve MSI installation package Win7/Win8 administrator identity running function

  
        Starting from Vista, the system introduced the UAC user control function, that is, the ordinary user runs the exe software installation program, which supports the installation using the normal account/administrator identity, but the msi installation package only supports the default account for installation, and does not support the administrator. How to run the installation package, how to give the msi package greater permissions?


At this point, we can use the registry to add a "run as administrator" function to the msi installation package.
Reference Tutorial: (With Win8.1 test environment, 7-zip.msi demo as an example, this method also supports Win7/Win8 platform)
1, Win+R, open the run, enter regedit
< Br> 2, open the registry editor (when user account control appears, select Yes)

3, locate the HKEY_CLASSES_ROOT\\Msi.Package\\shell path, right click on the shell, create a new "runas" item


4, on the right side of the runas item, change the default string, as "run as administrator" value


5, under the shell, continue to create a new "command" item, Change the default string to msIExec /i "%1"


6. Exit the registry editor and take effect.
At this time, the function of "Run as administrator" appears in the right-click menu of the 7-zip.msi installation package, and the administrator account permission can be called to run.


But in daily use, ordinary users can use the default account to install the msi format installation package. If you encounter an individual msi package, you need administrator account permissions to install it. Can be used for purposes.

Copyright © Windows knowledge All Rights Reserved