Jump to content


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.
Photo

Version of Win98


3 replies to this topic

Franky

Franky
  • Members
  • 18 posts

Posted 12 March 2001 - 13:11

i need this information to install a version dependent component

Torgui

Torgui
  • Members
  • 27 posts

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



Blake Miller Wonder

Blake Miller Wonder
  • Members
  • 121 posts

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!