如何获取安装目录? [英] How to get the installation directory?

查看:177
本文介绍了如何获取安装目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MSI存储未来卸载任务的安装目录。

The MSI stores the installation directory for the future uninstall tasks.

使用 INSTALLPROPERTY_INSTALLLOCATION 属性(即InstallLocation)仅在安装过程中只安装程序设置了 ARPINSTALLLOCATION 属性。但是这个属性是可选的,几乎没有人使用它。

Using the INSTALLPROPERTY_INSTALLLOCATION property (that is "InstallLocation") works only the installer has set the ARPINSTALLLOCATION property during the installation. But this property is optional and almost nobody uses it.

我如何检索安装目录?

推荐答案

使用注册表项来跟踪您的安装目录,这样可以在升级和删除产品时参考。

Use a registry key to keep track of your install directory, that way you can reference it when upgrading and removing the product.

使用WIX我将创建一个创建密钥的组件,就在安装目录的Directy标签之后,声明

Using WIX I would create a Component that creates the key, right after the Directy tag of the install directory, declaration

这篇关于如何获取安装目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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