escaping - 如何在 Inno Setup 中转义 "{"和 "}"

标签 escaping registry inno-setup

如何转义字符 {}在 Inno Setup 中,字符用于 [Registry]部分?
{ , "{"不编译。
%7d , "%7d" , {%7d}所有编译,但不工作,它们导致注册表中的错误值。

此致。

最佳答案

你可以逃脱{通过加倍。没有必要逃避}因为它仅在常量内部使用。

来自 help file :

A "{" character is treated as the start of the constant. If you want to use that actual character in a place where constants are supported, you must use two consecutive "{" characters. (You do not need to double "}" characters.)

关于escaping - 如何在 Inno Setup 中转义 "{"和 "}",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12800425/

相关文章:

javascript - 当用户通过设置运行键登录时在后台运行 Windows Node.js 脚本

parameters - 如何在 Inno Setup 中通过 "Run-->Parameters"传递参数?

sql - 通过命令行安装 SQL Server(适用于 Inno Setup)

javascript - 在 Javascript 中转义两次单引号

python - JSON 中的 HTML 标签(在 Python 中)

java - RMI 中命名和注册表的区别

windows-installer - 使用 Inno Setup 有条件地安装 x64 驱动程序

bash - 引用 shell 变量的打印

php - MySQL 转义反斜杠

c# - 在 C# 2.0(Windows 窗体)中使用注册表