|
| |||||||||
| Tags: batch file, software |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| ||||
| ||||
| 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
| ||||
| ||||
| 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. |
|
#3
| ||||
| ||||
| 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------ |
|
#4
| ||||
| ||||
| 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.
__________________ Education, Career and Job Discussions |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Is there a batch file to install software" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 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 | Steve Cummings | Windows XP Support | 3 | 08-11-2008 02:12 AM |
| How to install Atl service program using batch file on vista | rajendersaini@gmail.com | Vista Help | 1 | 23-07-2007 06:50 PM |