想共同维护一个NSIS脚本文件的,不想搞两个版本的脚本文件了。开始想到了!if语句,没试过,不知道行不行得通。后来google了一下。可以用两个头文件搞定。参照下面链接
Reference:
http://stackoverflow.com/questions/11126629/use-one-nsis-installer-to-install-32-bit-binaries-on-32-bit-os-and-64-bit-binari
http://stackoverflow.com/questions/21822044/merge-32bit-and-64bit-installer-into-one-installer-using-nsis
http://stackoverflow.com/questions/7152689/problem-using-runningx64-in-nsis
http://www.cppblog.com/Mumoo/archive/2012/05/11/174542.aspx