I want to get a full version number from the registry...
a value like 6.5.2
this code below gives 6.5
IntFmt $R1 "0x%08X" $R0
IntOp $R2 $R1 / 0x01000000 ; Major ver
IntOp $R3 $R1 & 0x00FF0000
IntOp $R4 $R3 / 0x00100000 ; Minor version
the apps registry's REG_DWORD hex value is:
0x06528000 (106070016)
how would I modify the above?
maybe there is a tutorial on this somewhere
many thanks
getting a full reg key like 6.5.2
3 posts
This should get you started.
StrCpy $0 0x06528000
IntOp $1 $0 & 0x0F000000
IntOp $1 $1 >> 24
IntOp $2 $0 & 0x00F00000
IntOp $2 $2 >> 20
IntOp $3 $0 & 0x000F0000
IntOp $3 $3 >> 16
IntOp $4 $0 & 0x0000F000
IntOp $4 $4 >> 12
DetailPrint $1.$2.$3.$4
thanks 🙂
I'll start doing my homework 😉
I'll start doing my homework 😉