简体   繁体   English

如何在WIX安装程序中设置卸载(InstallLocation)注册表项值

[英]How to Set Uninstall (InstallLocation) Registry Key Value in WIX Installer

I am writing a utility for our lab that checks the installed software on the local machine against a collection of installers (msi files) on a NAS. 我正在为我们的实验室编写实用程序,用于根据NAS上的一组安装程序(msi文件)检查本地计算机上已安装的软件。 From a bit of web searching, it seemed like the preferred approach for determining what packages are installed on a Windows based machine from within code is to iterate over the HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall keys. 通过一点网络搜索,似乎似乎可以从代码中确定在Windows机器上安装哪些程序包的首选方法是遍历HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall键。 The installers that I am interested in are namespaced ( and created by me) so picking the registry keys that I am interested in is easy, but I have noticed the installers that I have created using wix are not setting the InstallLocation key like most of the other installers are doing. 我感兴趣的安装程序具有名称空间(并由我创建),因此选择我感兴趣的注册表项很容易,但是我注意到使用wix创建的安装程序没有像大多数安装程序那样设置InstallLocation项。其他安装程序正在做。

在此处输入图片说明

Since I am not specifically setting any of these keys (within the Uninstall\\XYZ section) within the wix installer specifically, I am assuming there are some installer attributes that are being used to populate the existing keys. 由于我没有在wix安装程序中专门设置任何这些键(在Uninstall \\ XYZ部分内),因此我假设有一些安装程序属性用于填充现有键。 Does anyone know the proper way to have the InstallLocation filled out by the wix installer? 有谁知道由wix安装程序填写InstallLocation的正确方法? I am currently using WIX 3.8 at the moment. 我目前正在使用WIX 3.8。

This would be a place to look if you are creating the MSI files: 如果要创建MSI文件,可以在这里查看:

http://robmensching.com/blog/posts/2011/1/14/arpinstalllocation-and-how-to-set-it-with-the-wix-toolset/ http://robmensching.com/blog/posts/2011/1/14/arpinstalllocation-and-how-to-set-it-with-the-wix-toolset/

If they belong to other companies there's not much you can so. 如果他们属于其他公司,那么您将无能为力。

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

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