简体   繁体   English

注册表中UnistallString的用途是什么

[英]What's the purpose of UnistallString in the registry

Does anyone know the purpose of HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall{xxxx}-->UninstallString in the registry? 有没有人知道注册表中HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Microsoft \\ Windows \\ CurrentVersion \\ Uninstall {xxxx} - > UninstallString的用途?

I had the impression that Add/Remove Program uses it to uninstall any application by using MsiExec. 我的印象是,添加/删除程序使用它来使用MsiExec卸载任何应用程序。 But that's not the case, Add/Remove programs doesn't use it. 但事实并非如此,添加/删除程序不会使用它。 Is there any other registry value similar to this that is using by Add/Remove programs? 是否有任何其他与添加/删除程序使用的注册表值类似?

Windows Installer packages are a special case that is ignored. Windows Installer程序包是一种被忽略的特殊情况。 For all other package types, the UninstallString is the command used to perform an uninstall. 对于所有其他包类型, UninstallString是用于执行卸载的命令。 For the Windows Installer package, the default command will uninstall the MSI package, but is presumably only for backwards compatibility of other applications that read the Uninstall key, as Add/Remove Programs ignores it. 对于Windows Installer程序包,默认命令将卸载MSI程序包,但可能仅用于读取卸载程序键的其他应用程序的向后兼容性,因为“添加/删除程序”会忽略它。 See Custom uninstaller for a WIX generated MSI for some background on workarounds. 有关WIX生成的MSI ,请参阅自定义卸载程序,以获取有关解决方法的一些背景信息。

根据MSDN (以及另一篇更现代的文章 ),这些注册表项完全用于“添加/删除程序”功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM