.bat files
Hey guys,
Could someone show me how to write a batch file to install software? I just need something very basic that, when run, will auto install the software.
I know it isn't that hard, but I don't know how. :(
thanks!
Duki
Nearly a Posting Virtuoso
1,475 posts since Jun 2006
Reputation Points: 817
Solved Threads: 32
well, considering it's more pertaining to DOS....
Duki
Nearly a Posting Virtuoso
1,475 posts since Jun 2006
Reputation Points: 817
Solved Threads: 32
installing windows software with a .bat? you would need to find the actual setup switches to make it a silent install, and those are product specific
DimaYasny
Posting Virtuoso
1,777 posts since Jan 2007
Reputation Points: 183
Solved Threads: 89
Why not you use Autorun.inf (Setup Information) it will Auto Execute the Setup.exe.
thunderstorm98
Veteran Poster
1,117 posts since Nov 2006
Reputation Points: 97
Solved Threads: 20
but that way unattended or scripted setup will not work
DimaYasny
Posting Virtuoso
1,777 posts since Jan 2007
Reputation Points: 183
Solved Threads: 89
For more Configuration also can setup a .ini file for it.
thunderstorm98
Veteran Poster
1,117 posts since Nov 2006
Reputation Points: 97
Solved Threads: 20
I have a .ini file setup that does a complete installation with no user intervention. I need a way to run the link through a script though.
Duki
Nearly a Posting Virtuoso
1,475 posts since Jun 2006
Reputation Points: 817
Solved Threads: 32
Agita
Junior Poster in Training
95 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
Also you can link .bat (MS-DOS Batch Script) through Autorun.inf File.
thunderstorm98
Veteran Poster
1,117 posts since Nov 2006
Reputation Points: 97
Solved Threads: 20
I understand how to make the script autorun, but I need help writing it.
Thanks though
Duki
Nearly a Posting Virtuoso
1,475 posts since Jun 2006
Reputation Points: 817
Solved Threads: 32
yep, that really depends on the program. Just a double click silent install?
Agita
Junior Poster in Training
95 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
Seriously, if you are using a big microsoft products i.e, office, outlook, autocad etc, just fire them off from the msi installers and call the relevant switches.
It really is that simple.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
? you would need to find the actual setup switches to make it a silent install, and those are product specific
Not really. Most MSI packages use a standard set of switches (i wrote a bat file to install all MS hotfixes post SP2)I understand how to make the script autorun, but I need help writing it.
Thanks though
you just write the DOS commands, one to a line (as if you were hitting enter. Thats it)
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
I don't know which DOS commands to use though :( i r newb, i know.
Duki
Nearly a Posting Virtuoso
1,475 posts since Jun 2006
Reputation Points: 817
Solved Threads: 32
c:/pathtoinstaller/setup.exe
c:/pathtoinstaller2/setup.exe
etc...
something like that
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
I've done that, and saved it as a .bat file. Didn't work though.
Duki
Nearly a Posting Virtuoso
1,475 posts since Jun 2006
Reputation Points: 817
Solved Threads: 32