<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; VBScript: получение списка установленного софта на компьютере]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=707</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=707&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VBScript: получение списка установленного софта на компьютере».]]></description>
		<lastBuildDate>Sat, 22 Sep 2007 07:29:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[VBScript: получение списка установленного софта на компьютере]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=4995#p4995</link>
			<description><![CDATA[<p>Скрипт читает соответствующую ветвь реестра и выводит названия всех установленных продуктов, а также командные строки их деинсталляции.<br />Автор скрипта - <strong>mozers</strong>.<br /></p><div class="codebox"><pre><code>Const HKEY_LOCAL_MACHINE = &amp;H80000002
strComputer = &quot;.&quot;

Set oReg = GetObject(&quot;winmgmts:{impersonationLevel=impersonate}!\\&quot; &amp; _
    strComputer &amp; &quot;\root\default:StdRegProv&quot;)

strKeyPath = &quot;SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall&quot;
oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys

For Each subkey In arrSubKeys
    EnumerateValues (strKeyPath &amp; &quot;\&quot; &amp; subkey)
Next

Sub EnumerateValues(strSubKey)
    Dim DisplayName, UninstallString
    oReg.EnumValues HKEY_LOCAL_MACHINE, strSubKey, arrValueNames, arrValueTypes
On Error Resume Next
    For Each strValueName In arrValueNames
        oReg.GetStringValue HKEY_LOCAL_MACHINE, strSubKey, strValueName, strValue
        If UCase(strValueName) = &quot;DISPLAYNAME&quot; Then DisplayName = strValue
        If UCase(strValueName) = &quot;UNINSTALLSTRING&quot; Then UninstallString = strValue
    Next
    If DisplayName &lt;&gt; &quot;&quot; Then
    WScript.Echo (DisplayName &amp; vbNewLine &amp; &quot;&gt;  &quot; &amp; UninstallString)
    End If
End Sub</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (The gray Cardinal)]]></author>
			<pubDate>Sat, 22 Sep 2007 07:29:13 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=4995#p4995</guid>
		</item>
	</channel>
</rss>
