Click here to Skip to main content
12,075,066 members (65,269 online)
Click here to Skip to main content
Articles » Languages » C++ / CLI » General » Downloads

Stats

524.5K views
7.1K downloads
134 bookmarked
Posted

Enhanced .NET Bootstrap Setup

, 24 Nov 2005
Modified Microsoft Setup program to install required IE6, MSI 2.0 and .NET.
dotnetsetup_exe.zip
setup.exe
settings.ini
dotnetsetup_src.zip
CSingleInstance.hxx
settings.ini
// includes
#include <windows.h>

#include "OSDetector.h"

PLATFORM getPlatform()
{
	OSVERSIONINFO OSversion;

	OSversion.dwOSVersionInfoSize=sizeof(OSVERSIONINFO);
	::GetVersionEx(&OSversion);

	switch(OSversion.dwPlatformId)
	{
		case VER_PLATFORM_WIN32s: 
			return PLATFORM_WIN32;
		case VER_PLATFORM_WIN32_WINDOWS:
			return PLATFORM_WIN32;
		case VER_PLATFORM_WIN32_NT:
			if(OSversion.dwMajorVersion==5 && OSversion.dwMinorVersion==0)
				return PLATFORM_WIN32_2000;
			else	
				if(OSversion.dwMajorVersion==5 &&   OSversion.dwMinorVersion==1)
					return PLATFORM_WIN32_XP;
				else	
					if (OSversion.dwMajorVersion<=4)
						return PLATFORM_WIN32_NT;
					else	
						//for unknown windows/newest windows version
						return PLATFORM_WIN32_NT;
			break;
	}
	return PLATFORM_WIN32;
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Kevin Moore
Web Developer
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.160208.1 | Last Updated 24 Nov 2005
Article Copyright 2003 by Kevin Moore
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid