Skip to content
⌘ NSIS Forum Archive

About a string help

7 posts

Joel#

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#
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?
kichik#
Hendri's Dotted Comparison Script will help you write this script:

Joel#
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.