为每个用户设置 RunOnce

Set RunOnce for every user

我有一个包含一些 dll 和 3 个 exe 的应用程序。我需要为每个用户设置一个 exe 作为 RunOnce。如果创建了一个新用户,那么 exe 也应该在该用户首次登录时 运行。如何为每个用户设置 RunOnce。我正在使用 VS2015 和 Wix 3.10.3

无法帮助您了解如何使用 Wix 设置注册表值,...

但要确保每个新用户都能获得您的 RunOnce,您需要将其设置为默认用户。请参阅 Win32 installers: is there a way to write to HKU startup for each user?. And How do you get the Default Users folder (e.g. c:\users\Default)

中的链接