Launch app on startup for all users, but also allow per-user setting (Windows)

一个人想着一个人 提交于 2019-12-24 03:26:24

问题


I need my application installer set the program to auto-startup for all users. Then each individual user should be able to modify this option without affecting others.

Currently I write to HKLM/../Run with installer, which acomplishes the first task. But then I can't disable autorun for current user, because deleting th HKLM/../Run entry would disable it for everybody.

Is there a way to do that, without using shortcuts in Autostart folder?


回答1:


start it for all users always but check a configuration variable in HKLU to see if it should exit immediately




回答2:


Any reason not to use the HKCU Run key in the first place?

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]


来源:https://stackoverflow.com/questions/882123/launch-app-on-startup-for-all-users-but-also-allow-per-user-setting-windows

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