{"id":421,"date":"2010-12-21T15:46:04","date_gmt":"2010-12-21T15:46:04","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=421"},"modified":"2022-02-17T06:24:04","modified_gmt":"2022-02-17T06:24:04","slug":"is-quicktime-present","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/quicktime\/is-quicktime-present","title":{"rendered":"Is QuickTime Present"},"content":{"rendered":"<p>This method looks to see if QuickTime is present in the registry.  It isn&#8217;t foolproof but offers a simple test<\/p>\n<pre><code>\r\n\t\/\/--------------------------------------\r\n\t\/\/----- CHECK QUICKTIME IS PRESENT -----\r\n\t\/\/--------------------------------------\r\n\tbool QuicktimePresent = false;\r\n\ttry\r\n\t{\r\n\t\t\/\/This is the registry path we're interested in: HKEY_LOCAL_MACHINE\\Software\\Apple Computer, Inc.\\QuickTime\r\n\t\tRegistryKey ^rkey = Registry::LocalMachine;\r\n\t\trkey = rkey-&gt;OpenSubKey(L\"Software\\\\Apple Computer, Inc.\");\r\n\t\tarray&lt;String^&gt;^names = rkey-&gt;GetSubKeyNames();\r\n\t\trkey-&gt;Close();\r\n\r\n\t\tfor each (String^ name in names)\r\n\t\t{\r\n\t\t\tname = name-&gt;ToLower();\r\n\t\t\tif (name-&gt;Contains(\"quicktime\"))\r\n\t\t\t{\r\n\t\t\t\tQuicktimePresent = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tcatch (Exception ^)\r\n\t{\r\n\t}\r\n\r\n\tif (!QuicktimePresent)\r\n\t{\r\n\t\tMessageBox::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\",\r\n\t\t\tL\"Quicktime Required\",\r\n\t\t\tMessageBoxButtons::OK,\r\n\t\t\tMessageBoxIcon::Information);\r\n\t\t\tClose();\r\n\t\t\treturn;\r\n\t}\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This method looks to see if QuickTime is present in the registry. It isn&#8217;t foolproof but offers a simple test \/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; \/\/&#8212;&#8211; CHECK QUICKTIME IS PRESENT &#8212;&#8211; \/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; bool QuicktimePresent = false; try { \/\/This is the registry path we&#8217;re interested in: HKEY_LOCAL_MACHINE\\Software\\Apple Computer, Inc.\\QuickTime RegistryKey ^rkey = Registry::LocalMachine; rkey = rkey-&gt;OpenSubKey(L&#8221;Software\\\\Apple Computer, Inc.&#8221;); array&lt;String^&gt;^names [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[],"class_list":["post-421","post","type-post","status-publish","format-standard","hentry","category-quicktime"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/comments?post=421"}],"version-history":[{"count":4,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/421\/revisions"}],"predecessor-version":[{"id":1084,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/421\/revisions\/1084"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}