C# 安装项目 - 错误应用程序 msiexec.exe、错误模块 kernel32.dll

发布于 2024-12-29 07:30:32 字数 557 浏览 0 评论 0原文

我用 C#、.Net 3.5 开发了一个(Windows 服务)应用程序以及一个安装项目。我的安装程序第一次工作得很好,我可以将它安装在我的机器上,并且应用程序正常运行。然后我卸载了它一段时间,现在,当我不得不再次重建我的安装项目时 - 没有 incode 修改 - 我在安装时收到一条消息,上面写着

应用程序遇到了问题,需要关闭”。然而,安装似乎仍在继续,最后显示“应用程序已成功安装”。我注意到安装文件夹中没有*.Install 文件。

我检查了事件日志,错误消息吓坏了我:

故障应用程序 msiexec.exe,版本 4.5.6001.22159,标记 480573de,故障模块 kernel32.dll,版本 5.1.2600.5781,标记 49c4f482,调试? 0,故障地址0x00012afb。

我必须说,卸载时也会发生完全相同的情况,应用程序被错误删除,因为它“遇到问题需要关闭”。尽管如此,它还是从安装文件夹中卸载。

我一直在互联网上寻找解决方案,但仍然不知道如何解决这个问题。它是否与注册表有关,我可以采取什么措施来防止这种情况发生?

I have developped a (Windows Service) application in C#, .Net 3.5 and altogether with it a setup project. My installer worked perfectly fine for the first time, I could install it on my machine and the application was running as it should. Then I uninstalled it for a while and now, when I had to rebuild my setup project again - no incode modifications -I am given a message at install time which says

"The application has encountered a problem and needs to close". However, it seems that the installation continues and in the end it says that "The application was successfully installed". I noticed that in the installation folder there is no *.Install file.

I checked the event log and the error message scares me off:

Faulting application msiexec.exe, version 4.5.6001.22159, stamp 480573de, faulting module kernel32.dll, version 5.1.2600.5781, stamp 49c4f482, debug? 0, fault address 0x00012afb.

I must say that exactly the same thing also happens on uninstall, and the application is removed with errors because it "encounters a problem and needs to close". Nonetheless, it uninstalls from the installation folder.

I've been looking all over on the Internet for a solution and still no idea how to overcome this issue. Is it somehow registry related, is there anything I can do to prevent this from happening?

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

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

发布评论

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

评论(1

三生池水覆流年 2025-01-05 07:30:32

听起来这可能与您的服务的安装程序代码有关。我有一篇旧博客文章,展示了如何附加到安装程序逐步完成它。

Sounds like it might be something with your service's installer code. I have an old blog post that shows how to attach to an installer to step through it.

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