【问题标题】:WIX 3.10: How to remove environment variables on uninstall?WIX 3.10:如何在卸载时删除环境变量?
【发布时间】:2016-04-12 00:00:15
【问题描述】:

我正在使用 WIX 安装一些环境变量。他们似乎没有卸载。

如何在功能卸载时删除环境变量?

以下是用于创建环境变量的代码:

<DirectoryRef Id="TARGETDIR">
  <Component Id="create.APACHE.ENV.VARS" Guid="{169CCBDA-23BE-4DC6-8497-BA522DB555C9}" KeyPath="yes">
    <Environment Id="create.ApacheHome"    Name="APACHE_HOME"      Value="[APACHE_INSTALL_DIR]"     Permanent="yes" Part="all" Action="set" System="yes" />
    <Environment Id="create.ApacheConfig"  Name="APACHE_CONFIG"    Value="[INSTALL_DIR]\$(var.APACHE.SVR.CONF.FILE)"     Permanent="yes" Part="all" Action="set" System="yes" />
    <Environment Id="create.ApacheLogs"    Name="APACHE_LOGS"      Value="[APACHE.LOG.DIR]"     Permanent="yes" Part="all" Action="set" System="yes" />
  </Component> 
</DirectoryRef>

【问题讨论】:

标签: wix environment-variables uninstallation wix3


【解决方案1】:

设置permanent="no"。文档详细here

【讨论】:

    猜你喜欢
    • 2010-09-16
    • 2011-11-23
    • 2015-10-10
    • 2011-05-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-14
    相关资源
    最近更新 更多