Windows Installer/RunAs 快捷方式

发布于 2024-08-22 02:53:32 字数 490 浏览 4 评论 0原文

我在我们域的服务器上有一个应用程序;它是用 C# 编写的并使用 Word API。 (该应用程序运行一个医疗报告列表,每个报告都是一个单独的 Word 文档,提取信息,用于按字母顺序排列报告所针对的患者,并将报告内容推送到 PDF 中。)该应用程序在以下情况下似乎运行良好:直接在服务器上运行。它还可以从我的计算机上的 Visual Studio 正确运行(使用服务器上的源代码)。但是,我不想允许用户直接访问服务器。我找到的解决方案是创建一个有权访问服务器的用户,然后在桌面上放置一个指向“runas $username $programname”的快捷方式。弹出身份验证窗口,要求输入适当的密码。当提供这个时,程序会正确执行,直到调用 Word 为止;然后它启动 Windows Installer。我不确定它试图安装什么。如果取消此操作,我会收到以下错误:“由于以下错误,检索 CLSID 为 {000209FF-0000-0000-C000-000000000046} 的组件的 COM 类工厂失败:80080005。”我是否做了不该做的事?我错过了什么吗?

I have an application on a server in our domain; it's written in C# and uses the Word API. (The app runs through a list of medical reports, each a separate Word document, extracts information which it uses to alphabetize the patient on whom the report is made, and pushes the report content into a PDF.) The app appears to run fine when run directly on the server. It also runs correctly (using source code on the server) from Visual Studio on my machine. However, I don't want to allow the users direct access to the server. The solution I arrived at was to create a user with access to the server, then place a shortcut on the desktop which pointed to "runas $username $programname" . Up pops the authentication window, asking for the appropriate password. When this is supplied, the program executes correctly up until the point where Word is invoked; then it starts Windows Installer. I'm not sure what it's trying to install. If this is canceled, I get the following error: "Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80080005." Am I doing something I shouldn't? Am I missing something?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

辞慾 2024-08-29 02:53:32

我猜想 Word 正在尝试进行某种首次使用初始化或安装修复。

I guess Word is attempting to do some kind of first use initialization or install repair.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文