December 2, 200421 yr 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:Nothing happens after those.This is the code of Install.CMDCLS@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 Winzipstart /wait "\\nas1\IT SPACE\User Software\WinZip\setup.exe /autoinstall /noqp"@Echo Done@Echo Installing Norton Anti Virusstart /wait "\\vscopics_svr1\VPHOME\CLT-INST\9.0.1.1000\setup.exe /qn /Reboot=Suppress"@Echo Done@Echo Installing Microsoft Firewall Clientstart /wait "\\vs_gateway\mspclnt\setup.exe /v " /qn ""@Echo DoneDid I do something wrong? (note its W2K workstation and I do have full admin rights) Think vbscript is better way to go?Thanks
December 2, 200421 yr It has to do with this error I believe .This is the error I get when I try to use CmdThrew My Network PlacesIf I map the drive then the error does not occur. Edited October 26, 200520 yr by gunsmokingman
December 2, 200421 yr 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 Winzipstart "Winzip install" /wait "\\nas1\IT SPACE\User Software\WinZip\setup.exe /autoinstall /noqp"@Echo Done
December 3, 200421 yr Author 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 Winzipstart "WinZip" /wait "\\nas1\IT SPACE\User Software\WinZip2\Winzip32.EXE" /noqp /autoinstall@Echo Done@Echo Installing Norton Anti Virusstart "Anti-Virus" /wait "\\vscopics_svr1\VPHOME\CLT-INST\9.0.1.1000\setup.exe" /S /v/qn@Echo Done@Echo Installing Microsoft Firewall Clientstart "Firewall" /wait "\\vs_gateway\mspclnt\SETUP.EXE" /S /v/qn@Echo Done
December 3, 200421 yr not perfect.. and some are wrong or missing (like Avast), but the gist is therestart /wait "" 7z313.exe -y /q /r:nstart /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 /qstart /wait "" AvastAV\setupeng.exe start /wait "" CDBurnerXP\CDBurnerXP_Pro_3.msi /qb-!start /wait "" DaemonTools\daemon.msi /quiet /passive /qn /norestart REBOOT=ReallySuppressstart /wait "" DaemonTools\awxDTools.exe /S rd "%userprofile%\Start Menu\Programs\arniWORX" /s /qstart /wait "" Flash\Shockwave10.exestart /wait "" Flash\Flash7.exestart /wait "" Gimp\gtk+-2.4.10-20041001-setup.exe /Sstart /wait "" Gimp\gimp-2.0.5-i586-setup.exe /Sstart /wait "" KLMCodecs\klmcodec116.exe /verysilent /noiconsstart /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.exestart /wait "" msreader\setup.exe /s /smsstart /wait "" MSUSBDriveMgr\UFDSetupWizard.msi /qb-!start /wait "" OpenOffice\OpenOffice113.exe reg /s openoffice\ooorg.regstart /wait "" PDFCreator\PDFCreator.exestart /wait "" Secretmaker\secretmakersetup.exe /S /N TASKKILL /F /IM secretmakersetup.exestart /wait "" SpywareBlaster\spywareblastersetup32.exe /SILENT /NOCANCEL /SP- /NORESTART TASKKILL /F /IM spywareblaster.exestart /wait "" SpywareBlaster\spywareguardsetup.exe /SILENT /NOCANCEL /SP- /NORESTART TASKKILL /F /IM spywareguard.exe
December 3, 200421 yr Author 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.
December 3, 200421 yr if you map a drive... change to that driveand 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
December 6, 200421 yr Author 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? Thanks for any inputs
Create an account or sign in to comment