我正在做Wix Installer Burn Setup项目,AWS CLI是先决软件之一,我的问题是,如果AWS CLI已经安装,需要避免WIX Burn Setup中的Repair或Uninstall屏幕。
如何检查AWS CLI是否安装在Machine中,在Wix Burn Setup中指定安装条件.谢谢。
快速查看AWSCLIV2.msi,我没有看到任何注册表条目。(这是一个真正的耻辱。 没有什么比Version=X.X.X更能让这个问题变得简单了。)
我看到一堆文件被安装到[ProgramFiles64Folder]\Amazon\AWSCLIV2,尽管用户可以在用户界面中选择更改这个文件。
升级代码是{E1C1971C-384E-4D6D-8D02-F1AC48281CF8}。 我们从这里开始。
看看这些页面上变量和InstallConditions的概念。
https:/wixtoolset.orgdocumentationmanualv3bundlebundle_define_searches.html。
https:/wixtoolset.orgdocumentationmanualv3xsdutilproductsearch.html。
https:/wixtoolset.orgdocumentationmanualv3xsdwixmsipackage.html。
这应该能给你足够的信息,让你继续往前走。