1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: VBScript to Check/Install Software

Discussion in 'Software Development' started by jo15765, Feb 3, 2013.

Thread Status:
Not open for further replies.
  1. jo15765

    jo15765 Thread Starter

    Joined:
    Oct 11, 2011
    Messages:
    307
    I am very new to VB scripts, but am needing one that will when executed 1st check to see if a program is installed, if it is skip the install path for the program (let's call it program 1) and then check program2, if it is installed skip the install for program 2.

    Then the flip side, check program 1, if it is not installed install it (the install would be coming from a network drive that the user would have access to) then check program 2 and so on and so forth.
     
  2. jo15765

    jo15765 Thread Starter

    Joined:
    Oct 11, 2011
    Messages:
    307
  3. Rollin_Again

    Rollin_Again

    Joined:
    Sep 4, 2003
    Messages:
    4,912
    You can either use code to check for existing registry keys that are created during the initial install process or use the DIR function in VB to check to see if a particular file/folder exists in the default installation path which is usually something like C:\Program Files\...\...

    This will vary a bit depending on which operating system is installed and keep in mind that Windows 7 has one program files directory for 64bit applications and another for 32bit.

    Rollin
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1088074

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice