i need this information to install a version dependent component
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.
Version of Win98
Started by
Franky
, Mar 12 2001 13:11
3 replies to this topic
Posted 13 March 2001 - 13:11
I don't know if InstallShield 5 recognises the Windows 98 correctly. I always use Windows API function GetVersionEx to determine Windows version.
Good © example of using this function can be found from Microsoft's MSDN documentation:
http://msdn.microsof...ysinfo_92jy.htm
Posted 14 March 2001 - 23:55
You need to call the Windows API from a DLL and return the information to your setup application:
OSVERSIONINFO OsVer;
OsVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&OsVer);
Return the OsVer.dwBuildNumber into a LONG
// check for Version < WIN98 SE
if( OsVer.dwBuildNumber < 67766446 )
// check for Version > WIN98 SE
if( OsVer.dwBuildNumber > 67766446 )
Build number was 67766446 for Win98 SE.
I have not checked it for Windows ME yet...
Hope that gets you started!