简体   繁体   English

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

[英]How to “refresh” Windows 7 start menu from NSIS installer?

I have an installer (NSIS) that creates shortcuts in start menu. 我有一个在开始菜单中创建快捷方式的安装程序(NSIS)。 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? 也许只是刷新开始菜单的问题-但是如何从NSIS卸载程序执行此操作?

Win7 is probably doing the same as Vista, and copies/moves the shortcuts to the all users start menu without telling you. Win7可能与Vista一样,并且将快捷方式复制/移动到所有用户的开始菜单,而不会告诉您。 Stop this by using RequestExecutionLevel in your script. 通过在脚本中使用RequestExecutionLevel来停止此操作。

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

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). 我没有Windows 7的副本,所以不能肯定地说,但是您是否已确认从开始菜单中删除的文件夹是实际的文件夹(我假设这是自从您最初创建它以来)。

You could go to the folder in the start menu, right-click, and open it. 您可以转到开始菜单中的文件夹,右键单击并打开它。

Could be a dumb suggestion though. 可能是一个愚蠢的建议。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM