I found this in samples...
if (GetSystemInfo( OS, nvResult, svResult ) = 0) then
switch (nvResult)
case IS_WINDOWS : svResult = "Windows";
case IS_WINDOWSNT : svResult = "Windows NT";
case IS_WINDOWS95 : svResult = "Windows 95";
default : svResult = "Fehler";
endswitch;
WriteLogLine( "OS: " + svResult );
endif;
However, what are the results for Windows 2000, 2000 Server, XP Home, XP Professional, Me, etc.?
Thanks,
Doug
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Windows version... 2000, XP, Me, etc.
Started by
douglaskarr
, Jul 26 2002 05:06
3 replies to this topic
Posted 26 July 2002 - 05:40
I'm not certain of the results you'd get for your function there, but I do some checking for OS in my installs... the way I do it is:
if (SYSINFO.WIN9X.bWinMe)
if (SYSINFO.WIN9X.bWinXP)
if (SYSINFO.WIN9X.bWin2000)
etc...
This probably isn't as pretty as a case logic, but it works and is very simple to deliver.
Straight from the IS 6 help files:
IS_WINDOWSNT = Operating system is Windows NT, 2000, or XP.
IS_WINDOWS9X = Operating system is Windows 95, 98, or Me.
Hope that helps some!
if (SYSINFO.WIN9X.bWinMe)
if (SYSINFO.WIN9X.bWinXP)
if (SYSINFO.WIN9X.bWin2000)
etc...
This probably isn't as pretty as a case logic, but it works and is very simple to deliver.
Straight from the IS 6 help files:
IS_WINDOWSNT = Operating system is Windows NT, 2000, or XP.
IS_WINDOWS9X = Operating system is Windows 95, 98, or Me.
Hope that helps some!
Posted 26 July 2002 - 11:51
That's exactly the way it should be done.
GetSystemInfo(OS, ...) stands for InstallShield versions 4 and 5. With IS 6, you are advised to use SYSINFO.WINxx.>member> to retrieve the exact version of the OS.
Though GetSYstemInfo(OS, ...) will continue working with IS 6, it gives you only poor results.
But I don't know how to distinguish W2K with W2K Server, or the XP variants.
Eberhard
GetSystemInfo(OS, ...) stands for InstallShield versions 4 and 5. With IS 6, you are advised to use SYSINFO.WINxx.>member> to retrieve the exact version of the OS.
Though GetSYstemInfo(OS, ...) will continue working with IS 6, it gives you only poor results.
But I don't know how to distinguish W2K with W2K Server, or the XP variants.
Eberhard