如何使用inno-setup将所有用户写入其HKEY_CURRENT_USER [英] How can I write to all users to their HKEY_CURRENT_USER using inno-setup

查看:174
本文介绍了如何使用inno-setup将所有用户写入其HKEY_CURRENT_USER的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在安装必须使用inno-setup从HKEY_CURRENT_USER \ SOFTWARE ...读取的第三方软件. 我需要将此值写入所有用户,该怎么办?

I'm installing third party software that must read from HKEY_CURRENT_USER\SOFTWARE... using inno-setup. I need to write this value to all users, how can I do it?

推荐答案

基本上,您无法做到这一点(以简单且受支持的方式).为此,将需要加载所有用户配置单元,而并非所有用户都必须如此.

Basically you can't do this (in a simple and supported manner). To do this, all user hives would need to be loaded and that is not necessarily the case for all users.

您可以在HKEY_USERS\.DEFAULT下写入默认配置文件,这会影响所有 new 用户配置文件,也可以在HKEY_LOCAL_MACHINE下写入计算机配置单元.

You can write to the default profile under HKEY_USERS\.DEFAULT which will affect all new user profiles, or you can write to the machine hive under HKEY_LOCAL_MACHINE.

可能的首选选项是为每个用户分别运行设置,例如作为登录脚本的一部分.

Probably the preferred option would be to run the setup separately for every user, e.g. as part of a logon script.

这篇关于如何使用inno-setup将所有用户写入其HKEY_CURRENT_USER的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆