Archive: About a string help


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


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?


after the dot


Hendri's Dotted Comparison Script will help you write this script:

http://nsis.sourceforge.net/archive/...instances=0,11


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.


That script does someone very similar, it can help you understand how to accomplish this.


Ok, thanks ...
I'll try that