Uninstal 开始菜单项消失
Start menu item of Uninstal disappears
我在 CMakeLists.txt 中使用 CPack 为我的测试应用程序创建安装程序。
这是我生成开始菜单条目的代码
set(CPACK_GENERATOR "NSIS")
set(CPACK_START_MENU_SHORTCUTS "${PROJECT_NAME}")
set(CPACK_PACKAGE_EXECUTABLES "${PROJECT_NAME}" "${PROJECT_NAME}.exe")
include(CPack)
安装后我看到我的开始菜单文件夹,打开它时有我的应用程序 .exe 和卸载程序。 ~15 秒后,卸载程序神奇地消失了。
有人知道为什么会这样吗?应用程序 .exe 保留。
@RaymondChen has the answer 你的问题:
A customer reported that their installer creates a shortcut on the Start menu called Uninstall Contoso Deluxe, but a few seconds after their installer completes, the Uninstall Contoso Deluxe icon disappears from the Start menu. The main Contoso Deluxe shortcut is still there. What’s going on?
The uninstaller shortcut is removed from the Start menu to reduce clutter. You can uninstall apps from the Apps page in Settings, or from the Programs and Features control panel (formerly known as Add or Remove Programs). You can also get to the uninstaller by right-clicking Contoso Deluxe and selecting Uninstall.
这是设计使然,Windows 8 及更高版本将隐藏 "useless" 快捷方式。
Why does my app’s uninstaller disappear from the Start menu?
The uninstaller shortcut is removed from the Start menu to reduce clutter. You can uninstall apps from the Apps page in Settings, or from the Programs and Features control panel (formerly known as Add or Remove Programs). You can also get to the uninstaller by right-clicking Contoso Deluxe and selecting Uninstall.
Adding an uninstaller icon to Start menu is triply redundant, and it puts uninstallers in a high-traffic area of the user interface, when users are mostly looking for apps to run, not apps to uninstall.
The uninstaller shortcut is still there, so your uninstaller won’t get confused when it tries to delete the uninstaller shortcut. But the Start menu doesn’t show it.
我在 CMakeLists.txt 中使用 CPack 为我的测试应用程序创建安装程序。 这是我生成开始菜单条目的代码
set(CPACK_GENERATOR "NSIS")
set(CPACK_START_MENU_SHORTCUTS "${PROJECT_NAME}")
set(CPACK_PACKAGE_EXECUTABLES "${PROJECT_NAME}" "${PROJECT_NAME}.exe")
include(CPack)
安装后我看到我的开始菜单文件夹,打开它时有我的应用程序 .exe 和卸载程序。 ~15 秒后,卸载程序神奇地消失了。
有人知道为什么会这样吗?应用程序 .exe 保留。
@RaymondChen has the answer 你的问题:
A customer reported that their installer creates a shortcut on the Start menu called Uninstall Contoso Deluxe, but a few seconds after their installer completes, the Uninstall Contoso Deluxe icon disappears from the Start menu. The main Contoso Deluxe shortcut is still there. What’s going on?
The uninstaller shortcut is removed from the Start menu to reduce clutter. You can uninstall apps from the Apps page in Settings, or from the Programs and Features control panel (formerly known as Add or Remove Programs). You can also get to the uninstaller by right-clicking Contoso Deluxe and selecting Uninstall.
这是设计使然,Windows 8 及更高版本将隐藏 "useless" 快捷方式。
Why does my app’s uninstaller disappear from the Start menu?
The uninstaller shortcut is removed from the Start menu to reduce clutter. You can uninstall apps from the Apps page in Settings, or from the Programs and Features control panel (formerly known as Add or Remove Programs). You can also get to the uninstaller by right-clicking Contoso Deluxe and selecting Uninstall.
Adding an uninstaller icon to Start menu is triply redundant, and it puts uninstallers in a high-traffic area of the user interface, when users are mostly looking for apps to run, not apps to uninstall.
The uninstaller shortcut is still there, so your uninstaller won’t get confused when it tries to delete the uninstaller shortcut. But the Start menu doesn’t show it.