list of installed software 
Author Message
 list of installed software

Hi,

Does anyone know how to retrieve the list of installed software (like
the list in the "Add/Remove program" applet with a simple script ?

Bruno

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Mon, 27 Jan 2003 03:00:00 GMT  
 list of installed software

Hi,
You could make a recursive reg query on the uninstall key in HKLM / Software
/ microsoft / windows / current version /uninstall


Quote:
> Hi,

> Does anyone know how to retrieve the list of installed software (like
> the list in the "Add/Remove program" applet with a simple script ?

> Bruno

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Mon, 27 Jan 2003 03:00:00 GMT  
 list of installed software

This script (a .WSF file) will do what you want. It ultimately
generates a variable named Software which happens to be a sorted
JScript array containing a list of all applications listed under the
Control Panel's Add-Remove Applet.

<?XML version="1.0" standalone="yes" ?>
<job id="software">
  <object progid="Scripting.FileSystemObject"
          id="System" reference="true"/>
  <object id="Shell" progid="WScript.Shell"/>
  <script language="JScript">
  <![CDATA[
    var WinDir = System.GetSpecialFolder(WindowsFolder);
    var RegFile = WinDir + '\\#uninstallkey#.608';
    Shell.Run('regedit /e "' + RegFile + '" HKEY_LOCAL_MACHINE' +
              '\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion' +
              '\\Uninstall',0,true);
    var text = System.OpenTextFile(RegFile,ForReading);
    var filter = text.ReadAll().match(/DisplayName"=".[^"]+"/ig);
    text.close();
    var Software = filter.join("\r").replace(
            /DisplayName"="(.[^"]+)"/ig,"$1").split("\r").sort();
    System.DeleteFile(RegFile);
    WScript.echo(Software.join("\r"));
  ]]>
  </script>
</job>


: Hi,
:
: Does anyone know how to retrieve the list of installed software
(like
: the list in the "Add/Remove program" applet with a simple script ?
:
: Bruno
:
:
: Sent via Deja.com http://www.deja.com/
: Before you buy.



Mon, 27 Jan 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Getting List of Installed Software REMOTELY from NT systems without using WMI

2. list of installed software

3. get list of software installed in a computer

4. To find if a software is installed on my computer

5. installing software from a web site.

6. To find if a software is installed on my computer

7. Enumarete all installed software

8. Software installed output

9. reporting on installed software

10. Install software using WMI Win32_Process

11. REGREAD: Detecting installed software through the Registry

12. !!!!!! Enumerate installed software into W2000 !!!!!

 

 
Powered by phpBB® Forum Software