Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


VBScript to get Installed application information

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,252
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VBScript to get Installed application information
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 VBScript to get Installed application information - 7/6/2001 8:50:44 PM   
  cruiser

 

Posts: 25
Score: 0
Joined: 6/4/2001
From: USA
Status: offline
Does anyone know how I would use VBScript to determine what
applications are installed on a system? Any help would be greatly
appreciated.
 
 
Post #: 1
 
 Re: VBScript to get Installed application information - 7/6/2001 8:52:10 PM   
  nukeboy

 

Posts: 10
Score: 0
Joined: 5/22/2001
From: USA
Status: offline
Here's some code I put together to do something similar. I have a
page where the user can click a link (which has an id="startapp") and
launch a local application. This may be different than what you're
after since I'm looking for a specific app and not polling all installed
apps.


Sub startapp_OnClick
Dim strAppPath, strTestPath
Dim MyObj
Dim fso, drives, drive

strTestPath = ":\PROGRA~1\AppName\AppName.exe"
Set fso =
CreateObject("Scripting.FileSystemObject")
Set drives = fso.Drives

For Each drive In drives
If Drive.DriveLetter <> "A" Then
If
fso.FileExists(Drive.DriveLetter&strTestPath) Then
strAppPath = Drive.DriveLetter&strTestPath
End If
Next

Set MyObj = CreateObject("WScript.Shell")

If strAppPath <> "" Then
MyObj.Run strAppPath
Else
MsgBox "Application could not be found on
your system"
End If

Set MyObj = Nothing
Set fso = Nothing
End Sub


Hope this helps.

(in reply to cruiser)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> VBScript to get Installed application information Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts