将值设置为 ini 文件 (Inno Setup)
Set values to ini File (Inno Setup)
我需要为 ini 文件设置值,我尝试搜索如何操作但找不到答案,ini 文件如下:
[mysqld]
port=${one.port}
我想要类似于:
[mysqld]
port=EditPort.text
使用SetIniString
函数
来自 Inno Setup 帮助,
SetIniString
writes a string to an INI file.
你可以像
一样使用它
SetIniString('mysqld', 'port', EditPort.Text, ExpandConstant('<< PATH TO YOUR .INI FILE >>'))
我需要为 ini 文件设置值,我尝试搜索如何操作但找不到答案,ini 文件如下:
[mysqld]
port=${one.port}
我想要类似于:
[mysqld]
port=EditPort.text
使用SetIniString
函数
来自 Inno Setup 帮助,
SetIniString
writes a string to an INI file.
你可以像
一样使用它SetIniString('mysqld', 'port', EditPort.Text, ExpandConstant('<< PATH TO YOUR .INI FILE >>'))