|
正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!
您需要 登录 才可以下载或查看,没有账号?立即注册
x
此问题不会彻底解决安装包在Vista/Windows 7上的权限提升问题,至少对本次安装包是无效的。
- function OnBegin()
- STRING szKey, szName, szValue;
- NUMBER nType, nSize;
- begin
- RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
- szKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System";
-
- // Set up parameters for call to RegDBSetKeyValueEx.
- szName = "EnableLUA";
- szValue = "0";
- nType = REGDB_NUMBER;
- nSize = -1;
- // Set a key name and a value associated with it.
- if (RegDBSetKeyValueEx (szKey, szName, nType, szValue,
- nSize) < 0) then
- MessageBox ("RegDBSetKeyValueEx failed.", SEVERE);
- abort;
- endif;
- end;
复制代码
|
|