Wix修改现有的Ini文件 [英] Wix modify an existing ini file

查看:68
本文介绍了Wix修改现有的Ini文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Wix中修改.ini文件

I was trying to modify an .ini file in Wix

如果不存在,则msi不会完成....

If it does not exists, the msi does not complete....

  1. 我该如何检查
  2. 我真的很想修改它

是的,我在Google上查看了其他stackoverflow问题/答案

Yes I looked at other stackoverflow questions/answers and on google

我正在尝试...

      <Component Id="TestIni" Guid="*">
        <CreateFolder />

        <IniFile Id="Ini1"
                 Action="createLine"
                 Directory="INSTALLLOCATION"
                 Section="Test"
                 Name="Minimal.ini"
                 Key="TestKey"
                 Value="TestValue" />

        <IniFile Id="Ini2"
                 Action="createLine"
                 Directory="WindowsFolder"
                 Section="Test"
                 Name="Minimal.ini"
                 Key="TestKey"
                 Value="WindowsFolder TestValue" />

      </Component>

推荐答案

如果要修改现有值,请使用Action="addLine"Action="addTag".

Use Action="addLine" or Action="addTag" if you want to modify an existing value.

这篇关于Wix修改现有的Ini文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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