Joel
29th March 2003 05:23 UTC
About a string help
I reading a string from the registry.
For example:
A.1.B.002
My question is: How can I detect or read the number "1" of the
string?
The thing is that the string isn't the same for each Windows OS.
Like Windows Media for example.
PS: I *tried* String functions from Nsis Archive and no luck.
Thanks
kichik
29th March 2003 11:53 UTC
Do you want to find out if 1 appears as the third char, if it appears at all or if it appears after a dot?
Joel
29th March 2003 14:45 UTC
after the dot
kichik
29th March 2003 14:55 UTC
Hendri's Dotted Comparison Script will help you write this script:
http://nsis.sourceforge.net/archive/...instances=0,11
Joel
29th March 2003 15:20 UTC
Ok. I'm also trying to detect the version of DirectX.
This is how it works.
When you read the string from the Registry you get a string
like this: 4.xx.0000, where xx is the correct version.
I'm trying to read only the part of xx so the installer
display the DirectX version.
kichik
29th March 2003 15:25 UTC
That script does someone very similar, it can help you understand how to accomplish this.
Joel
29th March 2003 15:34 UTC
Ok, thanks ...
I'll try that