在安装过程中创建新用户帐户

发布于 2024-09-18 19:42:18 字数 179 浏览 2 评论 0原文

我需要安装一个在给定用户下运行的 Windows 服务。它正在与现有用户(ServiceProcessInstaller = User)一起使用,但是当用户不存在时,应该在服务安装发生之前创建它。用户必须是管理员之一。

我该怎么做呢?

(VS2008,C#)

谢谢。

——哈吉

I need to install a windows service running under a given user. It is working with an existing user (ServiceProcessInstaller = User) but when the user does not exist then it should be created before the service install happens. The user must be a mamber of administrators.

How should I do it?

(VS2008, C#)

Thank You.

-- Hudgi

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文