Jump to content

Recommended Posts

Posted

Usually when we get a new computer, we have to add some basic softwares to the computer, I thought of writing a script and make it install software from our network. However when I ran it, I got two command prompts popping up as shown:

2de.jpg

ebc.jpg

Nothing happens after those.

This is the code of Install.CMD

CLS

@Echo Off

@Echo Installing Basic Applications

@Echo Installing Acrobat Reader 6.02...

start /wait "\\nas1\IT SPACE\User Software\Adobe Reader\acroreader602.exe"

@Echo Done

@Echo Installing Winzip

start /wait "\\nas1\IT SPACE\User Software\WinZip\setup.exe /autoinstall /noqp"

@Echo Done

@Echo Installing Norton Anti Virus

start /wait "\\vscopics_svr1\VPHOME\CLT-INST\9.0.1.1000\setup.exe /qn /Reboot=Suppress"

@Echo Done

@Echo Installing Microsoft Firewall Client

start /wait "\\vs_gateway\mspclnt\setup.exe /v " /qn ""

@Echo Done

Did I do something wrong? (note its W2K workstation and I do have full admin rights) Think vbscript is better way to go?

Thanks


Posted (edited)

It has to do with this error I believe .

This is the error I get when I try to use Cmd

Threw My Network Places

If I map the drive then the error does not occur.

Edited by gunsmokingman
Posted

I ran into sim problem... it's the space in your UNC.

You'll need to change your START /WAIT "<path>" to START "Title" /WAIT "<path>"

If you see a cmd window open that has a title of you exe then you know this is the problem.

e.g.:

@Echo Installing Acrobat Reader 6.02...
start "acrobat install" /wait "\\nas1\IT SPACE\User Software\Adobe Reader\acroreader602.exe"
@Echo Done

@Echo Installing Winzip
start "Winzip install" /wait "\\nas1\IT SPACE\User Software\WinZip\setup.exe /autoinstall /noqp"
@Echo Done

Posted

Thanks Bek, your solution helped out a lot. :) I had to modify the code little bit as well with the quotes and switches....

CLS
@Echo Off
@Echo Installing Basic Applications

@Echo Installing Acrobat Reader 6.02...
start "Adobe" /wait "\\nas1\IT SPACE\User Software\Adobe Reader\acroread602.exe"
@Echo Done

@Echo Installing Winzip
start "WinZip" /wait "\\nas1\IT SPACE\User Software\WinZip2\Winzip32.EXE" /noqp /autoinstall
@Echo Done

@Echo Installing Norton Anti Virus
start "Anti-Virus" /wait "\\vscopics_svr1\VPHOME\CLT-INST\9.0.1.1000\setup.exe" /S /v/qn
@Echo Done

@Echo Installing Microsoft Firewall Client
start "Firewall" /wait "\\vs_gateway\mspclnt\SETUP.EXE" /S /v/qn
@Echo Done

Posted

not perfect.. and some are wrong or missing (like Avast), but the gist is there

start /wait "" 7z313.exe -y /q /r:n

start /wait "" AdbeRdr60_enu_full.exe -p"-s /v\"/qb\""
start /wait "" Acro-Reader_6.0.2_Update.exe -p /S /v/qn
 rd  "%allusersprofile%\Start Menu\Programs\PrintMe Internet Printing" /s /q

start /wait "" AvastAV\setupeng.exe

start /wait "" CDBurnerXP\CDBurnerXP_Pro_3.msi /qb-!

start /wait "" DaemonTools\daemon.msi /quiet /passive /qn /norestart REBOOT=ReallySuppress
start /wait "" DaemonTools\awxDTools.exe /S
 rd  "%userprofile%\Start Menu\Programs\arniWORX" /s /q

start /wait "" Flash\Shockwave10.exe
start /wait "" Flash\Flash7.exe

start /wait "" Gimp\gtk+-2.4.10-20041001-setup.exe /S
start /wait "" Gimp\gimp-2.0.5-i586-setup.exe /S

start /wait "" KLMCodecs\klmcodec116.exe /verysilent /noicons

start /wait "" Leechget\LeechGet_2004_RC5Ver1001520.exe /VERYSILENT /SP-
 TASKKILL /F /IM leechget.exe
 Del "%allusersprofile%\Start Menu\Programs\LeechGet 2004.lnk"

start /wait "" MBSA\MBSASetup-en.msi /qb-!

start /wait "" MSNMessenger\MsnMsgs.msi /qb-!
start /wait "" MSNMessenger\MsgPlus-325.exe /SilentInstallNoSponsor
 TASKKILL /F /IM msnmsgr.exe

start /wait "" msreader\setup.exe /s /sms

start /wait "" MSUSBDriveMgr\UFDSetupWizard.msi /qb-!

start /wait "" OpenOffice\OpenOffice113.exe
 reg /s openoffice\ooorg.reg

start /wait "" PDFCreator\PDFCreator.exe

start /wait "" Secretmaker\secretmakersetup.exe /S /N
 TASKKILL /F /IM secretmakersetup.exe

start /wait "" SpywareBlaster\spywareblastersetup32.exe /SILENT /NOCANCEL /SP- /NORESTART
 TASKKILL /F /IM  spywareblaster.exe
start /wait "" SpywareBlaster\spywareguardsetup.exe /SILENT /NOCANCEL /SP- /NORESTART
 TASKKILL /F /IM spywareguard.exe

Posted

You missed the point of this thread, this script is for installing softwares FROM the network.

but thanks for your input and code. I didnt miss out anything, it meets my requirements. As for the adobe, i got this custom self extracting from RyanVM's website that does everything for me from installing it and deleting unnecessary links.

Posted

if you map a drive...

change to that drive

and run the batch, it can install whatever you have in the bat.

this is very similar to a multi CD install, so you only need to get your CD to run the batch, then at your leisure modify the batch and add whatever apps you want

Posted

Here I am, again.

Had lil problem with my bat command. for some reason the norton client security won't install along with other programs. when i tested the bat by removing other programs and make it solo installation for norton...it worked. do i have to add another bat so it would call norton to install separately from the other programs? :blink:

Thanks for any inputs

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...