卸载EXE文件后,应用程序组件留在计算机开始菜单中 [英] Application components are left behind in computer start menu after uninstalling the EXE file
问题描述
大家好,
我需要在从控制面板卸载应用程序后删除所有应用程序组件。
I need to delete all the application components after the application is uninstalled from the control panel.
目前,我可以在开始菜单中看到项目文件夹。但是当我尝试打开它时,系统会说"找不到快捷方式"。应用程序是使用C#和XAML开发的
Currently, I can see the project folders in start menu. But when I try to open it, system says "Shortcut cannot be found". Application was developed using C# and XAML
请帮助。
非常感谢!
推荐答案
嗨Karthik,
Hi Karthik,
感谢您在这里发帖。
>>> 卸载EXE文件后,应用程序组件留在计算机开始菜单中
>>>Application components are left behind in computer start menu after uninstalling the EXE file
您是否为您的应用程序使用自定义安装?如果是,您应该使用
覆盖卸载方法来处理这种情况。因此,您需要覆盖由安装程序编写的注册表项来运行自定义可执行文件。然后,这将检查您的应用程序是否仍在运行,并删除您可能已存储在自定义应用程序文件夹中的
文件。然后你调用真正的卸载例程。
Do you use a custom installation for your application? If yes, you should overwrite the uninstall method to handle this situation. So you need to overwrite the registry entries, written by the setup, to run a custom executable. This will then check if your application is still running and remove the files that you might have stored in a custom application folder. Then you call the real uninstall routine.
你可以参考一个教程:
ClickOnce应用程序自动启动和清除卸载或自定义ClickOnce安装的方式
There is a tutorial you can refer to: ClickOnce application autostart and clean uninstall or the way to customize ClickOnce installation
希望这给予帮助。
这篇关于卸载EXE文件后,应用程序组件留在计算机开始菜单中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!