解决方法
这通过
PrivilegesRequired
指令来控制.
When set to
admin
(the default) or
poweruser
,Setup will always run with
administrative privileges. If Setup
was started by an unprivileged user,
Windows will ask for the password to
an account that has administrative
privileges,and Setup will then run
under that account.
如果安装程序从[Run]
部分执行程序,则可以使用runascurrentuser和runasoriginaluser标志来控制产生的进程的权限.