Powershell卸载产品(MSI安装程序) [英] Powershell to uninstall the product(MSI installer)

查看:108
本文介绍了Powershell卸载产品(MSI安装程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我需要使用PowerShell脚本卸载MSI的方法。


我的要求是我需要在注册表配置单元下的注册表配置单元(在valuename中,即显示名称)中搜索特定字符串,例如,如下所示


HKEY_LOCAL_MACHINE\SOFTWARE \ Microsoft \\ windows \ CurrentVersion \Uninstall\


在卸载配置单元下,我们有不同的GUID 我们需要递归GUID然后找到字符串..找到字符串后(即Displayname) )我们需要返回安装Product的GUID,然后使用此GUID卸载
产品。


感谢您的早期响应。




Umeed4u

解决方案

重复发帖:
https://social.technet.microsoft.com/Forums/en-US/a59fce67-d167-477f-9e33-d54a5ffee9c3/powershell-to-uninstall-the-productmsi-installer?forum=winserverpowershell



Hi Everyone,

I require method by which we can use the PowerShell script to uninstall the MSI.

My requirement is that i need to search for the specific string in the registry hive (in valuename i.e  displayname) under the registry hive say for example given below

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\

Under uninstall hive we have different GUID and we need to recurse the GUID and then locate the string ..After finding the String(i.e Displayname) we need to go back that GUID under which Product is installed and then use this GUID to uninstall the Product .

Appreciate your early response.


Umeed4u

解决方案

Duplicate post: https://social.technet.microsoft.com/Forums/en-US/a59fce67-d167-477f-9e33-d54a5ffee9c3/powershell-to-uninstall-the-productmsi-installer?forum=winserverpowershell


这篇关于Powershell卸载产品(MSI安装程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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