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

Tags: ,

Is there a batch file to install software

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 06-05-2009
bigboy's Avatar
Member
 
Join Date: Dec 2005
Posts: 93
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
Viceman's Avatar
Member
 
Join Date: Oct 2005
Posts: 727
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
__________________
Stress is when you wake up screaming, only to realize you were never asleep.
Reply With Quote
  #3  
Old 06-05-2009
Gusgr8's Avatar
Member
 
Join Date: Jun 2006
Posts: 459
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.

__________________
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/CC/E/S d- s++:++ a-- C+++>$ !UL--@ P+ L- E-- W+++>$ N- o+++++ K--- w++
O--- M-- V-- PS+ PE Y+ PGP- t-- 5? X R- tv++ b DI++ D++ G e++>++++>$ h!>++
r--- y?
------END GEEK CODE BLOCK------
Reply With Quote
  #4  
Old 06-05-2009
Expertz's Avatar
Member
 
Join Date: Dec 2007
Posts: 947
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


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
Dos batch file to sort files based on file names. Jon Osborn Server Scripting 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 Steve Cummings XP Print Fax 3 08-11-2008 01:12 AM
Rinominare File con data attraverso un file Batch Daytan Server Networking 1 18-09-2007 11:10 PM
How to install Atl service program using batch file on vista rajendersaini@gmail.com Vista Security 1 23-07-2007 06:50 PM


All times are GMT +5.5. The time now is 09:41 PM.