Win32 installers: is there a way to write to HKU startup for each user?

懵懂的女人 提交于 2019-12-06 04:27:04

Windows has a thing called Active Setup, it allows you to "runonce" something for each user on the machine.

NSIS has a helper script called EnumUsersReg, it does its best to give you access to all HKCUs on the local machine as long as you have administrator rights.

To set defaults for a new user, load and edit the correct ntuser.dat.

A setup can not reliably write to any other users profile.

Having said that, I beleive Windows installer and Windows 7 introduced a way to specify settings that are to be applied to all subsequant users.

This will NOT work in a non MSI based installer without something running for every user login from here to eternity.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!