设置后通知图标并不总是出现在系统托盘中,但仍然有效

发布于 2024-09-16 04:05:02 字数 776 浏览 2 评论 0原文

首先,当我正常启动应用程序(双击exe)时,它运行良好:通知图标始终出现在系统托盘中。当应用程序在 msi 安装结束时启动时,它也能正常工作(在 msi 安装后运行 exe ?)。

但是,当从以安静模式运行的 msi 启动应用程序时,我的通知图标并不总是出现,但应用程序可以正常运行:我可以使用键盘快捷键访问上下文菜单。我在三台运行Windows XP的计算机上进行了测试,成功率在50%左右。我也在Windows7上测试过:完美运行。

我知道Windows XP启动时通知图标存在一些问题,但不知道是否相关(http://www.google.ca/ search?hl=fr&q=notify+icon+not+appearing+Windows+XP&aq=f&aqi=&aql=&oq=&gs_rfai=

所以,我想知道是否有你们是否遇到过这个问题?或者它与启动应用程序的人有关(msiexec 与 .exe)吗?我不认为这可能是我的代码中的错误,因为它正在运行。好吧,当我直接启动它时。

First of all, when I start the application normally (double-clicking on the exe), it works perfectly: the notify icon is always appearing in the system tray. It also works well when the application is launched at the end of an msi Setup (Run exe after msi installation?).

However, when the application is launched from an msi running in quiet mode, my notify icon isn’t always appearing, but the application is functional: I can access the contextual menu with a keyboard shortcut. I tested on three computers running under Windows XP and the success rate is around 50%. I also tested on Windows7: it works perfectly.

I know that there are some issues with the notify icons during the startup in Windows XP, but I don’t know if it is related (http://www.google.ca/search?hl=fr&q=notify+icon+not+appearing+Windows+XP&aq=f&aqi=&aql=&oq=&gs_rfai=

So, I was wondering if any of you guys ever experienced this problem. Do you think it’s a Windows XP bug? Or is it related to who is launching the application (msiexec vs .exe)? I don’t think it could be an error in my code, since it’s working well when I start it directly.

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

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

发布评论

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

评论(1

农村范ル 2024-09-23 04:05:02

您必须意识到,当您以静默方式运行 ( /quiet /qn UILevel=3 ) 时,InstallUISequence 不会运行,只有 InstallExecuteSequence 会运行。因此,您需要安排您的自定义操作在静默运行时在 InstallExecuteSequence 末尾运行,以便您的 C# 程序能够运行并将其自身放入托盘中。

对于那些质疑这一要求的人来说,这样做是相当正常的。作为 SMS 管理员,我会默默地推出软件包,这将关闭托盘应用程序,卸载旧版本,安装新版本,然后将尝试应用程序放回去。所有这一切,特工几乎都没有注意到它曾经失踪过。

You must realize that when you run silent ( /quiet /qn UILevel=3 ) that the InstallUISequence doesn't run, only the InstallExecuteSequence does. Therefore you need to schedule your custom action to run at the end of the InstallExecuteSequence when running silently so that your C# program will run and place itself in the tray.

For those that question this requirement, it's fairly normal to do this. As an SMS Admin I would push out packages silently that would shut down a tray app, uninstall the old version, install the new version and put the try app back. All this without the agent barely notice it was ever missing.

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