卸载并仅删除使用MSI C#.net指定的 [英] Uninstalling and remove only specified using MSI C#.net

查看:152
本文介绍了卸载并仅删除使用MSI C#.net指定的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的应用程序是使用通过Dot Net创建的msi安装程序安装的.当我尝试通过cmd行卸载时

C:\ Users \ vr> msiexec.exe/x产生代码/被动

它会删除在安装过程中创建的所有文件和文件夹.

在这里,我做了一些自定义操作,例如卸载并仅删除已安装文件中的指定文件.

我该怎么做.

请给我提供实现此目标的线索

谢谢
Vijay r

Hi,

My application is installed using an msi installer which was created using Dot Net.When i try to uninstall via cmd line

C:\Users\vr>msiexec.exe /x producecode /passive

it''s removing all the files and folder which was created during the installation.

here i have do some customization like "uninstalled and removing only specified file in the installed one.

how i can do this.

kindly give me the clue to achieve this

Thanks
Vijay r

推荐答案

您无法使用MSI上的/X选项来执行此操作.它将删除它放下的所有文件和文件夹(如果它们为空!).您必须编写一些自定义卸载程序(而不是.MSI)才能删除所需的内容.这包括注销任何控件,删除文件和文件夹,从注册表中删除卸载程序信息,...
You cannot do it with the /X option on your MSI. It''ll remove all the files and folders (provided they are empty!) that it put down. You''ll have to write some custom uninstaller (not an .MSI) to remove just what you want. This includes unregistering any controls, removing files and folders, removing the uninstaller information from the Registry, ...


这篇关于卸载并仅删除使用MSI C#.net指定的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆