I have developed a wpf application and created setup for that. I am using windows installer for creating setup package. Now I want to include uninstall MyProgram.exe in start menu after installing my package.
I am able to add the exe to run my program after installation. I want to include uninstall MyProgram.exe, ReadMe file, Help File in start menu.
Any suggestions plz help me regarding this. Thanks in advance, Ibrahim.
我开发了一个wpf应用程序并为其创建了设置。我正在使用Windows安装程序来创建安装程序包。现在我想在安装我的软件包后在开始菜单中包含卸载MyProgram.exe。我可以在安装后添加exe来运行我的程序。我想在开始菜单中包含卸载MyProgram.exe,自述文件,帮助文件。任何建议PLZ帮助我这个。谢谢,易卜拉欣。
2 个解决方案
#1
did you have a look at this post? How to add uninstall option in .NET Setup Project?
你看过这篇文章吗?如何在.NET安装项目中添加卸载选项?
You can create an uninstall shortcut and then add this shortcut to your start menu. the post below explains how to add a shortcut to user's desktop, you can get the idea and apply the same things for the start menu. desktop shortcut icon not showing in web setup project
您可以创建卸载快捷方式,然后将此快捷方式添加到开始菜单。下面的帖子解释了如何添加用户桌面的快捷方式,你可以得到想法,并为开始菜单应用相同的东西。桌面快捷方式图标未显示在Web安装项目中
#2
When you create installation package, it is assigned unique id (Product Code, if i'm not forgetting). You can create a batch file with following line:
创建安装包时,会为其分配唯一ID(产品代码,如果我没有忘记)。您可以使用以下行创建批处理文件:
@echo off
start /b /l msiexec.exe /x {Product Code}
Now right click on file system tree (in files view of project) and include this batch file. Assign it a nice icon and create entry "Uninstall " to start menu folder for your application.
现在右键单击文件系统树(在项目的文件视图中)并包含此批处理文件。为它分配一个漂亮的图标并创建条目“卸载”以启动应用程序的菜单文件夹。
ps:- just type msiexec.exe in run or cmd window to get more options. pps:- Product Code is available in properties of your setup project. Select Setup Project in solution tree and open properties tab.
ps: - 只需在运行或cmd窗口中键入msiexec.exe即可获得更多选项。 pps: - 产品代码在您的安装项目的属性中可用。在解决方案树中选择Setup Project并打开属性选项卡。
#1
did you have a look at this post? How to add uninstall option in .NET Setup Project?
你看过这篇文章吗?如何在.NET安装项目中添加卸载选项?
You can create an uninstall shortcut and then add this shortcut to your start menu. the post below explains how to add a shortcut to user's desktop, you can get the idea and apply the same things for the start menu. desktop shortcut icon not showing in web setup project
您可以创建卸载快捷方式,然后将此快捷方式添加到开始菜单。下面的帖子解释了如何添加用户桌面的快捷方式,你可以得到想法,并为开始菜单应用相同的东西。桌面快捷方式图标未显示在Web安装项目中
#2
When you create installation package, it is assigned unique id (Product Code, if i'm not forgetting). You can create a batch file with following line:
创建安装包时,会为其分配唯一ID(产品代码,如果我没有忘记)。您可以使用以下行创建批处理文件:
@echo off
start /b /l msiexec.exe /x {Product Code}
Now right click on file system tree (in files view of project) and include this batch file. Assign it a nice icon and create entry "Uninstall " to start menu folder for your application.
现在右键单击文件系统树(在项目的文件视图中)并包含此批处理文件。为它分配一个漂亮的图标并创建条目“卸载”以启动应用程序的菜单文件夹。
ps:- just type msiexec.exe in run or cmd window to get more options. pps:- Product Code is available in properties of your setup project. Select Setup Project in solution tree and open properties tab.
ps: - 只需在运行或cmd窗口中键入msiexec.exe即可获得更多选项。 pps: - 产品代码在您的安装项目的属性中可用。在解决方案树中选择Setup Project并打开属性选项卡。