How to retrieve the MSI installation package Win7/Win8 administrator identity function

  

Starting with Vista, the system introduces the UAC user control function, that is, the ordinary user runs the exe software installation program, and supports the installation using the normal account/administrator identity. However, the msi installation package only supports the default account for installation. It does not support running the installation package as an administrator. How do you give the msi package greater permissions?



At this point, we can use the registry to add an "msi installation package" to the "run as administrator" function.

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, type regedit


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 entry, change the default String, as “run as administrator value



5, under the shell, continue to create a new “command” item, change the default string For 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 normal use, ordinary users can use the default account to install the msi format installation package. If you encounter an individual msi package, you need an administrator. This little trick can be used when installing account permissions.

Copyright © Windows knowledge All Rights Reserved