Results 1 to 4 of 4

Thread: Is there a batch file to install software

  1. #1
    Join Date
    Dec 2005
    Posts
    102

    Is there a batch file to install software

    Hi all
    I have a CD (with autorun) containing a virtual drive emulator Daemon tool to set an ISO image. I want to write a bat file to:
    1) install daemon tools if it is installed on your computer by clicking on the icon (located on the interface of the CD) of the program corresponding to the ISO image. If daemon tools is installed it goes to Step 2.
    2) inserting the ISO image in virtual drive created by daemon tools.
    Is there someone to help me
    Thank you in advance.
    "Water is insubstantial. By this I mean you can not grasp hold of it. You can not punch it and hurt it. Be formless, shapeless, like water.

  2. #2
    Join Date
    Oct 2004
    Posts
    1,342

    Re: Is there a batch file to install software

    A much better option would be to use wpkg.

    http://wpkg.org/

    You can also want to take a look at OCSNG in addition to wpkg.
    http://www.linux.com/feature/54300

  3. #3
    Join Date
    Jun 2006
    Posts
    623

    Re: Is there a batch file to install software

    You would do it using the IF NOT EXIST command, like the example below:

    Code:
    if not exist "C:\program files\some folder\someprogram.exe" goto doit
    goto cancel
     
    :doit
        echo  perform installation
        goto exit
     
    :cancel
        echo exe found. refuse to install.
        goto exit
     
    :exit
        echo script is finished.

  4. #4
    Join Date
    Dec 2007
    Posts
    1,599

    Re: Is there a batch file to install software

    Try using an old tool ZIP2EXE.exe for the coversion of a zip archive that contains the installed program to an exe file. After that use the below VBS script to run the Self Extractor invisibly.

    '__________________________________________
    '
    'Start Of Script
    '__________________________________________

    'Author: LEoH
    'Program: UH

    'Run Program Invisibly.
    Set WshShell = CreateObject("WScript.Shell")
    WshShell.Run chr(34) & "(Your Self Extracting EXE's
    Name).exe" & Chr(34), 0
    Set WshShell = Nothing

    '__________________________________________
    '
    'Start Of Script
    '__________________________________________

    Change "(Your Self Extracting EXE's Name).exe" to the files name. Remove the brackets. This will open the exe invisibly. It can also be used to run almost any type of file invisibly. Just make sure the program ends or you will have to kill the task to exit the program.

    Save this file as whatever you want but make sure its extension is .vbs or else it wont work.

    Hope this helps.

Similar Threads

  1. Need a batch file checking for installation of software
    By zidane in forum Software Development
    Replies: 3
    Last Post: 19-07-2012, 02:12 PM
  2. Windows Batch file to output directory names and size to txt file
    By m2thearkus in forum Software Development
    Replies: 6
    Last Post: 16-07-2010, 12:04 AM
  3. Dos batch file to sort files based on file names.
    By Jon Osborn in forum Windows Server Help
    Replies: 9
    Last Post: 17-06-2009, 11:06 AM
  4. Replies: 3
    Last Post: 12-03-2009, 12:56 PM
  5. batch file to install printer
    By Ashish Goenkar in forum Windows XP Support
    Replies: 3
    Last Post: 08-11-2008, 02:12 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,002,717.76068 seconds with 16 queries