installation - NSIS 脚本可以添加 2 个整数和 'OR' 一个 StrCmp

标签 installation nsis

是否可以在 native NSIS 中将 2 个数字相加(不使用库)?

Var hasVersion9    # values will either be 0 or 1
Var hasVersion10
Var hasVersion9Or10

IntCpy $hasVersion9Or10 hasVersion9+hasVersion10
(IntCmp $hasVersion9Or10 1 OR IntCmp $hasVersion9Or10 2) doThis doThat

字符串比较中是否也可以执行“或”运算?

StrCmp $myVar ("1" OR "11") doThis doThat

最佳答案

使用IntOp用于数字运算和 logiclib对于 if/orif

关于installation - NSIS 脚本可以添加 2 个整数和 'OR' 一个 StrCmp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10490982/

相关文章:

mongodb - Windows 10 Pro 的 Cassandra 和 MongoDB 最低系统要求

installation - Imagick 被 WAMPServer 识别,但不被 PHP 识别

macos - numpy 未安装在 macOS 上

python - 如何使安装程序像在桌面上创建图标一样?

installation - 使快捷方式在 NSIS 中最小化

process - NSIS - 检查进程是否存在(nsProcess 不工作)

python - 如何为包含 Python 安装的 Python 项目制作独立安装程序

installation - 为什么 InstallShield 要求重新启动?

NSIS:将当前用户目录设置为nsis中的默认安装目录

nsis - 如何在安装时禁用 NSIS 中的按钮?