Not sure if this is in the right forum or not but...
Ok so I'm writing this script to install a patch and the XP version of the patch has two different version; one for IE6 and one for IE7.... so I'm trying to make a part of the script search for the version number in the registry... this is what I have so far but I don't know how to actually look for a specific string....
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer
Now I want to tell it if version = 7 then go 'here' or if version = 6 then go 'there'...
Also I want it to just use the beginning version number, not the exact version number.... so instead of looking for 7.1.1.32 or 6.2.4.28 etc... I'd like it to just search for 7.* or 6.*
Can anyone provide any assistance with this? Thanks. :)
Question
mrt2
Not sure if this is in the right forum or not but...
Ok so I'm writing this script to install a patch and the XP version of the patch has two different version; one for IE6 and one for IE7.... so I'm trying to make a part of the script search for the version number in the registry... this is what I have so far but I don't know how to actually look for a specific string....
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer
Now I want to tell it if version = 7 then go 'here' or if version = 6 then go 'there'...
Also I want it to just use the beginning version number, not the exact version number.... so instead of looking for 7.1.1.32 or 6.2.4.28 etc... I'd like it to just search for 7.* or 6.*
Can anyone provide any assistance with this? Thanks. :)
Link to comment
Share on other sites
1 answer to this question
Recommended Posts