代码改变世界

HOWTO: InstallShield中如何实现MSI包的权限提升

2010-12-06 10:36  Kevin.Wan  阅读(3865)  评论(4编辑  收藏  举报

大家都清楚Vista和Windows 7的UAC问题,安装包中我们可以通过权限提提升获得系统操作权限。

如果是Setup.exe形式的安装包,我们在InstallShield工程中是通过如下方式实现安装包权限提升的:

Release视图 -> Setup.exe选项卡 -> 将 Required Execution Level 属性设为Administrator

如果是单个MSI包,我们如何实现权限提升呢? 

Installation Information -> General Information -> Summary Information Stream, 将 Require Administrative Privileges 属性设为Yes

但要注意,上述方法只限于Windows Installer 4.0和更高版本,Windows Vista,Server 2008 R1/R2和Windows 7系统。Windows Installer版本与Windows系统对应关系见Wikipedia中的介绍:http://en.wikipedia.org/wiki/Windows_Installer

版权声明: 转载时请务必以超链接形式标明文章原始出处和作者信息。