以不同的学分或 HKCU 和安装程序启动程序
我有一个安装程序,需要一个人成为管理员(至少将内容放在 c:\program files\app dir 中) 我还需要在 HKCU 中创建一堆条目 问题是,如果安装程序以管理员身份运行,HKCU 会去哪里,大概是管理员。
但我想要登录用户的 HKCU,所以我想启动一个应用程序,它将执行一系列操作,包括注册表项。
如果我从安装程序启动此应用程序,那么它将以管理员或登录用户身份运行。 如何从以管理员身份运行的进程中以登录用户身份启动应用程序
?我认为这一切都是错误的吗?我真正的要求是
我想部署一个应用程序来进入 HKCU
我的安装程序通常需要管理员权限(包括 Vista UAC 方案)
一旦提高,哪个 HKCU 将成为目标?
管理员或提升权限的用户
我如何确保条目最终位于用户的 HKCU 配置单元而不是管理员的配置单元中。
谢谢
I have an installer that needs to a person to be an admin ( well at least drop stuff in the c:\program files\app dir )
I also need to create a bunch of entries in HKCU
the thing is if if the installer is running as admin where will the HKCU go , presumably the admin.
But I want the HKCU of the logged in user, so I would like to launch an application which will do a bunch of stuff including the registry entries.
If I launch this application from the installer then will it run as admin or logged in user.
How can I launch the application as the logged in user from a process that is running as admin
Am I looking at this all wrong. My real requirement is
I want to deploy an application that makes entries to HKCU
my installer will typically need admin creds ( vista UAC scenarios included )
once elevated which HKCU will be targeted?
the admin or the user who elevated
how can i make sure it is the user's HKCU hive that the entries end up in and not the admin.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简单的。只需稍微重新设计您的应用程序...
如果需要按用户配置在您的应用程序启动之前放置并按照上面的建议更新应用程序是不合适的,然后考虑使用 ActiveSetup 并安排安装后重新启动。
Easy. Just redesign your application ever-so-slightly...
If per-user configuration needs to be in place before your app will even launch and updating the app as suggested above isn't suitable then look into using ActiveSetup and schedule a reboot post-install.