【发布时间】:2011-06-01 14:23:20
【问题描述】:
我正在尝试在 NSIS 中将两个字符串合并在一起。我有两个字符串 2.1.3.0 和 0.0.0.27269,我想从它们创建的字符串是 2.1.3.27269
到目前为止我的尝试都没有奏效,这是我尝试过的:
;;$VERSION is defined with 2.1.3.0
;;$FILEVERSION2 is defined with 0.0.0.27269
;;debug
DetailPrint ${VERSION}
DetailPrint ${FILEVERSION}
;;attempt, also it doesn't say what the variables $R0-$R2 are after values
;;copied into them, is that normal?
StrCpy $R0 ${FILEVERSION2} 5 -5
StrCpy $R1 ${VERSION} -2
StrCpy $R2 $R1"."$R0
DetailPrint $R2 ;;this doesn't print a value, only prints "$R2"
!define FILEVERSION3 $R2
任何帮助都会很棒。 猎人
也在这里发布:http://forums.winamp.com/showthread.php?p=2777308#post2777308
【问题讨论】:
标签: installation nsis nsis-mui