PDA

View Full Version : Detect all version of Windows Vista?


Solmos
02-20-2007, 01:26 PM
please one example for detect all version of the windows vista whit autoplay media studio 6.0.5.0?

:huh :huh

if (sOSName == "Windows Vista") then
Label.SetText("Label24", "S.O: "..sOSName.." "..sOSServicePack.."");
end

but detect if is:

Ultimate version
Home Basic
Home Premium
Business
or Enterprise

please one example thx!!!!!!!!!!!!!!!!!!!!!!!!!!

Solmos
02-21-2007, 01:17 PM
Please help!!!!!!!!!!!!!!!!!!!!!!!!! one exampleeeeeeeee!!!!!!!!!!!!

sOSName = System.GetOSName();
tOSVersionInfo = System.GetOSVersionInfo();
sOSServicePack = tOSVersionInfo.CSDVersion;

if (sOSName == "Windows Vista") then
Label.SetText("Label24", "S.O: "..sOSName.." "..sOSServicePack.."");

if tOSVersionInfo.żżż???? then
Label.SetText("Label24", "S.O: "..sOSName.." Ultimate "..sOSServicePack.."");

elseif tOSVersionInfo.żżż???? then
Label.SetText("Label24", "S.O: "..sOSName.." Home Basic "..sOSServicePack.."");

elseif tOSVersionInfo.żżż???? then
Label.SetText("Label24", "S.O: "..sOSName.." Home Premium "..sOSServicePack.."");

elseif tOSVersionInfo.żżż???? then
Label.SetText("Label24", "S.O: "..sOSName.." Business "..sOSServicePack.."");

elseif tOSVersionInfo.żżż???? then
Label.SetText("Label24", "S.O: "..sOSName.." Enterprise "..sOSServicePack.."");

end

end


but detect if is:

Ultimate
Home Basic
Home Premium
Business
Enterprise

bule
02-21-2007, 02:41 PM
Why do you yell so much?

It's obvious there is no such command as of yet. If I were you, I would
google for registry entries or some other logs on the system which could
be used to retrieve this information.

Buffman
02-21-2007, 03:17 PM
Yeah I agree with Bule. Yelling and/or demanding isn't going to help you get the information you need.

To answer your question, there isn't an AMS native command to get that info, but you can easily get the build info from other ways.

Run from the cmd line: wmic os get name

I'm sure there's plenty of other ways to get the info (registry, etc)...

bule
02-21-2007, 04:04 PM
Run from the cmd line: wmic os get name...
There you go...

Solmos
02-22-2007, 03:05 AM
one example

sOSName = System.GetOSName();
tOSVersionInfo = System.GetOSVersionInfo();
sOSServicePack = tOSVersionInfo.CSDVersion;

if (sOSName == "Windows Vista") then
Label.SetText("Label24", "S.O: "..sOSName.." "..sOSServicePack.."");


elseif tOSVersionInfo.Personal then
Label.SetText("Label24", "S.O: "..sOSName.." Home Basic "..sOSServicePack.."");

or??????????????????

elseif tOSVersionInfo.Personal then
Label.SetText("Label24", "S.O: "..sOSName.." Home Premium "..sOSServicePack.."");


I please need an example with others version Vista Windows...!

Solmos
02-23-2007, 09:56 AM
Heelllllllllllllllllllllllllllllpppp Please!!!!!!!!!!!!

TJ_Tigger
02-23-2007, 10:00 AM
Have you tried Buffmans help above?

hjortsune
02-24-2007, 01:30 AM
Check out HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionID