如何“刷新” NSIS 安装程序中的 Windows 7 开始菜单?

发布于 2024-07-20 03:15:08 字数 237 浏览 7 评论 0原文

我有一个安装程序(NSIS),可以在开始菜单中创建快捷方式。 当我删除程序时,卸载会从以下位置删除该文件夹:

C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\

不幸的是,该文件夹仍在开始菜单中。 也许这只是刷新开始菜单的问题 - 但如何从 NSIS 卸载程序中做到这一点?

I have an installer (NSIS) that creates shortcuts in start menu. When I remove the program uninstall removes the folder from:

C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\

unfortunately the folder is still in start menu. Maybe it's just a matter of refreshing the start menu - but how to do it from NSIS uninstaller?

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

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

发布评论

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

评论(2

丶视觉 2024-07-27 03:15:09

Win7可能会做与Vista相同的操作,在不告诉你的情况下将快捷方式复制/移动到所有用户的开始菜单。 通过在脚本中使用 RequestExecutionLevel 来停止此操作。

请参阅http://nsis.sourceforge.net/Shortcuts_removal_fails_on_Windows_Vista

Win7 is probably doing the same as Vista, and copies/moves the shortcuts to the all users start menu without telling you. Stop this by using RequestExecutionLevel in your script.

See http://nsis.sourceforge.net/Shortcuts_removal_fails_on_Windows_Vista

清眉祭 2024-07-27 03:15:09

我没有 Windows 7 的副本,所以我不能确定,但​​是您是否确认您删除的文件夹是开始菜单中的实际文件夹(我假设它是您最初创建的)。

您可以转到开始菜单中的文件夹,右键单击,然后将其打开。

但可能是一个愚蠢的建议。 :)

I don't have a copy of Windows 7 so I couldn't say for sure, but have you confirmed the folder you removed is the actual one from the start menu (I'm assuming it is since you created it initially).

You could go to the folder in the start menu, right-click, and open it.

Could be a dumb suggestion though. :)

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