This method looks to see if QuickTime is present in the registry. It isn’t foolproof but offers a simple test


	//--------------------------------------
	//----- CHECK QUICKTIME IS PRESENT -----
	//--------------------------------------
	bool QuicktimePresent = false;
	try
	{
		//This is the registry path we're interested in: HKEY_LOCAL_MACHINE\Software\Apple Computer, Inc.\QuickTime
		RegistryKey ^rkey = Registry::LocalMachine;
		rkey = rkey->OpenSubKey(L"Software\\Apple Computer, Inc.");
		array<String^>^names = rkey->GetSubKeyNames();
		rkey->Close();

		for each (String^ name in names)
		{
			name = name->ToLower();
			if (name->Contains("quicktime"))
			{
				QuicktimePresent = true;
				break;
			}
		}
	}
	catch (Exception ^)
	{
	}

	if (!QuicktimePresent)
	{
		MessageBox::Show(L"QuickTime is required but has not been found on this machine.\n Please visit http://www.apple.com/quicktime and download the free QuickTime Player",
			L"Quicktime Required",
			MessageBoxButtons::OK,
			MessageBoxIcon::Information);
			Close();
			return;
	}
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published.