My registry shows directx "version" as 4.09.00.0904, so I based my script-piddling around that.
Later there is a portion that has:
StrCpy $2 $0 8 4 ; get the alpha version : ie 9.0(c)
StrCpy $1 $0 5 5 ; get the minor version
StrCpy $0 $0 2 2 ; get the major version
StrCpy "$DirectXMajorVersion" $0
StrCpy "$DirectXMinorVersion" $1
StrCpy "$DirectXAlphaVersion" $2
IntOp $0 $0 * 100 ; $0 = major * 100 + minor
IntOp $0 $0 + $1
IntOp $0 $0 * 10000 ; $0 = major + minor * 10000 + alpha
IntOp $0 $0 + $2
However, I run the installation, it still attempts to install directx, no matter what. Before tinkering with things I don't understand fully (I can't bend me mind 'round the string calls), I thought to ask here.
# If version >= 9.0c, then we're golden.
IntCmp $DirectXVersionDetected 9000904 DXOK DXIsOld DXOK
Thanks in advance for anyone who can help this n00b out.