Installation 使用NSIS数学库:如何执行';电源至';

Installation 使用NSIS数学库:如何执行';电源至';,installation,nsis,Installation,Nsis,我正试图使用执行功率计算。我在计算数学库语法时遇到了很多困难 如何在NSIS中执行此计算:h^=g Var h # example variables Var g Var a # I am attempting to perform the following calculations in NSIS. # I'm not sure how exactly to do it using the math library syntax? # Do I need to include the Ma

我正试图使用执行功率计算。我在计算数学库语法时遇到了很多困难

如何在NSIS中执行此计算:
h^=g

Var h # example variables
Var g
Var a

# I am attempting to perform the following calculations in NSIS.
# I'm not sure how exactly to do it using the math library syntax?
# Do I need to include the Math.nsh library to use it?
# h ^= g;

# My attempt:
Math::Script "a = $h; b = $g; c = ?? a = Power(a,b,c); R0 = a"

它非常类似于C/C++,要定义一个计算XOR并返回结果的函数,请尝试

Math::Script 'myxor(h,g) (h^g);'

在那之后,黏液(3,2)将给你
3xor 2
=1

只是为了确定,
^=
来自哪种语言?在C/C++中代码> ^ < /COD>是XOR,而 ^=/COD>是一个带有赋值的异或。@ JoachimIsaksson的C++。我以为这是一种力量,但你是对的,它是一个异或。如何在NSIS中执行XOR?