{"id":4878,"date":"2014-09-10T10:13:56","date_gmt":"2014-09-10T01:13:56","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=4878"},"modified":"2014-09-10T10:13:56","modified_gmt":"2014-09-10T01:13:56","slug":"%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%95%e3%82%8c%e3%81%a6%e3%81%84%e3%82%8b%e3%82%a2%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e4%b8%80%e8%a6%a7%e3%82%92","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=4878","title":{"rendered":"\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308bVBA\u30de\u30af\u30ed"},"content":{"rendered":"<p>\u7aef\u672b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d\u3092\u8abf\u3079\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u306e\u3067\u3001<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/aa393664.aspx\" title=\"StdRegProv class (Windows)\" target=\"_blank\">StdRegProv<\/a>\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u305f\u7c21\u5358\u306a\u30de\u30af\u30ed\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPublic Sub ListInstalledApplication()\r\n  Dim reg As Object\r\n  Dim keys As Variant\r\n  Dim key As Variant\r\n  Dim ret As Long\r\n  Dim display_name As String\r\n  Const HKEY_LOCAL_MACHINE = &amp;H80000002\r\n  Const SubKeyName = &quot;Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\&quot;\r\n  \r\n  Set reg = CreateObject(&quot;WbemScripting.SWbemLocator&quot;) _\r\n            .ConnectServer(, &quot;root\\default&quot;).Get(&quot;StdRegProv&quot;)\r\n  reg.EnumKey HKEY_LOCAL_MACHINE, SubKeyName, keys\r\n  On Error Resume Next\r\n  For Each key In keys\r\n    display_name = &quot;&quot;\r\n    ret = reg.GetStringValue(HKEY_LOCAL_MACHINE, SubKeyName &amp; key, &quot;DisplayName&quot;, display_name)\r\n    If ret &lt;&gt; 0 Then ret = reg.GetStringValue(HKEY_LOCAL_MACHINE, SubKeyName &amp; key, &quot;QuietDisplayName&quot;, display_name)\r\n    If (ret = 0) And (Len(Trim(display_name)) &gt; 0) Then\r\n      Debug.Print display_name\r\n    End If\r\n  Next\r\n  On Error GoTo 0\r\nEnd Sub<\/pre>\n<p><span style=\"color: #ff0000; font-weight: bold;\">HKEY_LOCAL_MACHINE\\Software\\Microsoft<br \/>\n\\Windows\\CurrentVersion\\Uninstall<\/span>\u306b\u3042\u308b\u30ad\u30fc\u304b\u3089<span style=\"color: #ff0000; font-weight: bold;\">DisplayName<\/span>(QuietDisplayName)\u3092\u629c\u304d\u51fa\u3059\u3060\u3051\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u30de\u30af\u30ed\u3067\u3059\u3002<\/p>\n<h4>\u25a0 \u95a2\u9023Web\u30da\u30fc\u30b8<\/h4>\n<p><strong>\u30fbEnumKey method of the StdRegProv class (Windows)<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/aa390387.aspx\" title=\"EnumKey method of the StdRegProv class (Windows)\" target=\"_blank\">http:\/\/msdn.microsoft.com\/en-us\/library\/aa390387.aspx<\/a><br \/>\n<strong>\u30fbUninstall Registry Key (Windows)<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/aa372105.aspx\" title=\"Uninstall Registry Key (Windows)\" target=\"_blank\">http:\/\/msdn.microsoft.com\/en-us\/library\/aa372105.aspx<\/a><br \/>\n<strong>\u30fb\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3067\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u88fd\u54c1\u3092\u5217\u6319\u3059\u308b\u65b9\u6cd5<\/strong><br \/>\n<a href=\"http:\/\/support.microsoft.com\/kb\/821775\/ja\" title=\"\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3067\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u88fd\u54c1\u3092\u5217\u6319\u3059\u308b\u65b9\u6cd5\" target=\"_blank\">http:\/\/support.microsoft.com\/kb\/821775\/ja<\/a><br \/>\n<strong>\u30fbITmedia \u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba\uff1aWindows Tips\u300c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4e00\u89a7\u3092\u78ba\u8a8d\u3057\u305f\u3044\u300d<\/strong><br \/>\n<a href=\"http:\/\/www.itmedia.co.jp\/help\/tips\/windows\/w0135.html\" title=\"ITmedia \u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba\uff1aWindows Tips\u300c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4e00\u89a7\u3092\u78ba\u8a8d\u3057\u305f\u3044\u300d\" target=\"_blank\">http:\/\/www.itmedia.co.jp\/help\/tips\/windows\/w0135.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u7aef\u672b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d\u3092\u8abf\u3079\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u306e\u3067\u3001StdRegProv\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u305f\u7c21\u5358\u306a\u30de\u30af\u30ed\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002 Option Explicit Public Sub ListInstalledA [&hellip;]","protected":false},"author":1,"featured_media":7111,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u30ec\u30b8\u30b9\u30c8\u30ea\u30fc\u304b\u3089\u306e\u30ad\u30fc\u629c\u304d\u51fa\u3057\u306b\u3088\u308b\u30b7\u30f3\u30d7\u30eb\u306a\u30de\u30af\u30ed\u3067\u3059\u3002 [\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308bVBA\u30de\u30af\u30ed]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,48,49,58],"tags":[],"class_list":["post-4878","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-excel-office","category-word-office","category-powerpoint"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-Excel.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1gG","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4878"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4878\/revisions"}],"predecessor-version":[{"id":4879,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4878\/revisions\/4879"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7111"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}