Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Is there a batch file to install software

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 06-05-2009
Member
 
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.
Reply With Quote
  #2  
Old 06-05-2009
Member
 
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
Reply With Quote
  #3  
Old 06-05-2009
Member
 
Join Date: Jun 2006
Posts: 620
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.
Reply With Quote
  #4  
Old 06-05-2009
Member
 
Join Date: Dec 2007
Posts: 1,592
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.
Reply With Quote
Reply

  TechArena Community > Software > Windows Software
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Is there a batch file to install software"
Thread Thread Starter Forum Replies Last Post
Need a batch file checking for installation of software zidane Software Development 3 19-07-2012 02:12 PM
Windows Batch file to output directory names and size to txt file m2thearkus Software Development 6 16-07-2010 12:04 AM
Dos batch file to sort files based on file names. Jon Osborn Windows Server Help 9 17-06-2009 11:06 AM
Batch file to copy a file from the local drive to a computer on lan? dudelearn Tips & Tweaks 3 12-03-2009 12:56 PM
batch file to install printer Ashish Goenkar Windows XP Support 3 08-11-2008 02:12 AM


All times are GMT +5.5. The time now is 06:11 AM.