1 ; Code taken from https://nsis.sourceforge.io/VersionCompleteXXXX
2 ; See http://nsis.sourceforge.net/VersionCompleteXXXX for documentation
3 !macro VersionCompleteXXXRevision _INPUT_VALUE _OUTPUT_SYMBOL _REVISION
4 !searchparse /noerrors
${_INPUT_VALUE} "" _VERSION_1
"." _VERSION_2
"." _VERSION_3
"." _VERSION_4
7 !else if
`${_VERSION_1}` ==
``
8 !define /redef _VERSION_1
0
12 !else if
`${_VERSION_2}` ==
``
13 !define /redef _VERSION_2
0
17 !else if
`${_VERSION_3}` ==
``
18 !define /redef _VERSION_3
0
22 !else if
`${_VERSION_4}` ==
``
23 !define /redef _VERSION_4
0
25 !define ${_OUTPUT_SYMBOL} ${_VERSION_1}.${_VERSION_2}.${_VERSION_3}.${_REVISION}
32 !define VersionCompleteXXXRevision
`!insertmacro VersionCompleteXXXRevision`
33 !macro VersionCompleteXXXX _INPUT_VALUE _OUTPUT_SYMBOL
34 !searchparse /noerrors
${_INPUT_VALUE} "" _VERSION_1
"." _VERSION_2
"." _VERSION_3
"." _VERSION_4
37 !else if
`${_VERSION_1}` ==
``
38 !define /redef _VERSION_1
0
42 !else if
`${_VERSION_2}` ==
``
43 !define /redef _VERSION_2
0
47 !else if
`${_VERSION_3}` ==
``
48 !define /redef _VERSION_3
0
52 !else if
`${_VERSION_4}` ==
``
53 !define /redef _VERSION_4
0
55 !define ${_OUTPUT_SYMBOL} ${_VERSION_1}.${_VERSION_2}.${_VERSION_3}.${_VERSION_4}
61 !define VersionCompleteXXXX
`!insertmacro VersionCompleteXXXX`