简体   繁体   English

NSIS安装程序:当值在下一行时,如何更改属性值

[英]NSIS installer: How to change a property value when value is in next line

I have a properties file (which I cannot change) where the syntax is: 我有一个语法为的属性文件(无法更改):

-key[ \r\n]
value

When I use 当我使用

${ConfigWrite} "my.properties" "-value $\r$\n" "newValue" $tmp

I get 我懂了

-key[ \r\n]
newValue
value

I want to have 我希望有

-key[ \r\n]
newValue

Does anyone have a solution? 有没有人有办法解决吗?

I could solve this issue because value was known and only newValue a variable. 我可以解决这个问题,因为value是已知的,只有newValue是变量。

I used a ReplaceInFile function to replace value with newValue . 我使用ReplaceInFile函数将value替换为newValue

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

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