在 Windows 8 上安装时如何防止应用程序出现在 Metro 上?

发布于 2025-01-03 05:13:19 字数 199 浏览 4 评论 0原文

我有一个 NSIS 安装程序,可以在 Windows 8 上安装我的非 Metro 应用程序。

安装后,我的安装程序安装的所有可执行文件都将显示在 Metro 风格的“开始”屏幕上。有什么办法可以避免这种情况吗?甚至卸载程序 exe 也显示在列表中,在我看来这很糟糕。

避免已安装的 .exe 显示在 Metro 风格的“开始”屏幕上的最佳方法是什么?

I have a NSIS installer that installs my non-Metro application on Windows 8.

After installing, all the executables installed by my installer will show up on the Metro-style Start screen. Is there any way of avoiding that? Even the uninstaller exe is shown in the list, which is terrible in my opinion.

What's the best way to avoid installed .exe's from showing up on the Metro-style Start screen?

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

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

发布评论

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

评论(4

羁绊已千年 2025-01-10 05:13:19

Set the System.AppUserModel.StartPinOption property of your shortcut to APPUSERMODEL_STARTPINOPTION_NOPINONINSTALL.

握住你手 2025-01-10 05:13:19

据我所知,没有记录的方法可以从 Metro 开始屏幕中排除某些内容。我唯一能想到的就是设置 System.AppUserModel.PreventPinning 属性,但这似乎没有任何效果(除了从资源管理器的上下文菜单中删除 pin 之外)。

There is no documented way to exclude something from the Metro start screen AFAIK. The only thing I could think of was to set the System.AppUserModel.PreventPinning property on the shortcut but that does not seem to have any effect (Other than removing pin from the context menu in explorer).

迟到的我 2025-01-10 05:13:19

我认为这不是您正在寻找的答案,但是 Microsoft 建议您不要在开始菜单中包含卸载程序等内容;您应该只包含启动程序本身的快捷方式。如果你这样做了,那么你就不会有这个问题了。

I don't think this is quite the answer you were looking for, but Microsoft suggests you don't include things like uninstallers in the start menu; you should only include a shortcut to start the program itself. If you did this then you wouldn't have this issue.

梦醒时光 2025-01-10 05:13:19

Windows 8 开始页面相当于 Windows 7 及更低版本中的开始菜单。它们都是启动器,其中起始页具有更多数据和个性化、动态磁贴等,但它们的作用是相同的。

The Windows 8 Start page is the equivalent of the Start menu in Windows 7 and below. They are both launchers, where the Start page has more data and personalization, live tiles, etc., but their role is identical.

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