Batch Processing enables silent batch installation of software and silent Batch Processing

Source: Internet
Author: User

Batch Processing enables silent batch installation of software and silent Batch Processing

Reference: the following links are in no particular order.

Http://www.cnblogs.com/toor/p/4198061.html

Http://www.autoitx.com/viewthread.php? Tid = 31956 & extra = & page = 1

Http://m.blog.csdn.net/article/details? Id = 8348301

Http://wangpai.2345.cn/thread.php? Fid = 12 & pid = 3830327

Https://www.idiannaomi.com/thread-5053-1-1.html

Http://blog.csdn.net/zhaobangyu/article/details/18406957

Bytes -------------------------------------------------------------------------------------------------------------------------

This time I had a computer in the school room and encountered the problem of installing software in batches. I thought of Windows batch processing.

In this case, each software to be installed is placed in their respective folders. Each folder contains a batch of processing scripts to silently install the software in the directory, finally, write a batch script to call the software folders to be installed. In this way, both independent installation and batch installation are required. (PS: not all software can be installed in batches. If not, you can try AU3)

 

 

7zip (Save the script as install_7zip.bat ):

1 @ echo off 2 title automatically install 7zip ---- by yllinux blog: http://www.cnblogs.com/yllinux/ 3 color 3f 4 echo is installing 7zip 5 echo. 6 echo. 7. Please do not close this window for echo. Please wait !!! 8 start/wait/min 7zip.exe/S/D = D: \ software \ 7zip 9 echo.10 echo.11 echo 7zip has been installed successfully
Silent Installation 7zip

Export bat_xi_pro (the script is saved as install_export bat_xi_pro.bat ):Decompress the installation package to obtain the MSI.

1 @ echo off 2 title automatically install unzip bat_xi_pro ---- by yllinux blog: http://www.cnblogs.com/yllinux/ 3 color 2f 4 echo is installing unzip bat_xi_pro 5 echo. 6 echo. 7. Please do not close this window for echo. Please wait !!! 8 start/wait/min msiexec.exe/I release pro. msi/quiet/norestart INSTALLDIR = "D: \ software \ release bat_xi_pro" 9 echo.10 echo.11 echo has successfully installed mongobat_xi_pro
Silent Installation of acrobat_xi_pro

Notepad ++ (Save the script as install_notepad ++. bat ):

1 @ echo off 2 title automatically install notepad ++ ---- by yllinux blog: http://www.cnblogs.com/yllinux/ 3 color 5f 4 echo is installing notepad ++ 5 echo. 6 echo. 7. Please do not close this window for echo. Please wait !!! 8 start/wait/min notepad+cmd.exe/S/D = D: \ software \ notepad ++ 9 echo.10 echo.11 echo notepad ++ has been successfully installed
Silent notepad ++ Installation

Office2007 (the script is saved as install_office2007.bat ):Run start, wait, and admin in the console to bring up the office2007 Configuration window. You must set the key and display level to "NONE". Specify other installation locations and components as required. Save it as office2007_config.MSP

1 @ echo off 2 title automatically install office2007 ---- by yllinux blog: http://www.cnblogs.com/yllinux/ 3 color 3f 4 echo is installing office2007 5 echo. 6 echo. 7. Please do not close this window for echo. Please wait !!! 8 start/wait/min setup.exe/adminfile office2007_config.MSP 9 echo.10 echo.11 echo has successfully installed office2007
Silent Installation of office2007

Potplayer (Save the script as install_potplayer.bat ):

1 @ echo off 2 title Automatic Installation of potplayer ---- by yllinux blog: http://www.cnblogs.com/yllinux/ 3 color 1f 4 echo is installing potplayer 5 echo. 6 echo. 7. Please do not close this window for echo. Please wait !!! 8 start/wait/min potplayer.exe/S/D = D: \ software \ potplayer 9: Close the IE pop-up window 10 taskkill/im iexplore.exe/f11 echo.12 echo.13 echo has successfully installed potplayer
Silent Installation of potplayer

Sogou_input (the script is saved as install_sogou_input.bat ):

1 @ echo off 2 title automatically install sogou_input ---- by yllinux blog: http://www.cnblogs.com/yllinux/ 3 color 2f 4 echo is installing sogou_input 5 echo. 6 echo. 7. Please do not close this window for echo. Please wait !!! 8 start/wait/min sogou_input.exe/S/D = D: \ software \ sogou_input 9 echo.10 echo.11 echo has successfully installed sogou_input
Silent Installation of sogou_input

Thunder_9 (Save the script as install_thunder_9.bat ):

1 @ echo off 2 title Automatic Installation of Thunder_9 ---- by yllinux blog: http://www.cnblogs.com/yllinux/ 3 color 1f 4 echo is installing Thunder_9 5 echo. 6 echo. 7. Please do not close this window for echo. Please wait !!! 8 start/wait/min Thunder_9.exe/S/D = D: \ software \ Thunder_9 9 echo.10 echo.11 echo has successfully installed Thunder_9
Silent Installation of thunder_9

Ultraiso (Save the script as shortcut_ultraiso.bat ):This is a green software without installation. Copy it to the specified location and then send the shortcut to the desktop.

1 @ echo off 2 title automatically add shortcuts ultraiso ---- by yllinux blog: http://www.cnblogs.com/yllinux/ 3 color 0f 4: Change the following three lines 5 xcopy % cd % D: \ software \ ultraiso \/e/h 6 set Program = D: \ software \ ultraiso \ UltraISO.exe 7 set LnkName = UltraISO 8 9 set WorkDir = 10 if not defined WorkDir call: getWorkDir "% Program %" 11 (echo Set WshShell = CreateObject ("WScript. shell "^) 12 echo strDesKtop = WshShell. specialFolders ("DesKtop" ^) 13 ech O Set oShellLink = WshShell. createShortcut (strDesKtop ^ & "\ % LnkName %. lnk "^) 14 echo oShellLink. targetPath = "% Program %" 15 echo oShellLink. workingDirectory = "% WorkDir %" 16 echo oShellLink. windowStyle = 117 echo oShellLink. description = "% Desc %" 18 echo oShellLink. save)> makelnk. vbs19 echo desktop shortcut created successfully! 20 makelnk. vbs21 del/f/q makelnk. vbs
Add shortcuts to ultraiso

Batch batch processing script (Save As install_all.bat ):Double-click to run only one console window. Do not close the console window; otherwise, the installation will exit. (You can also write all the separate scripts to one script without calling it)

 1 cd .\7zip 2 call install_7zip.bat 3 cd .. 4  5 cd .\notepad++ 6 call install_notepad++.bat 7 cd .. 8  9 cd .\potplayer10 call install_potplayer.bat11 cd ..12 13 cd .\Thunder_914 call install_thunder_9.bat15 cd ..16 17 cd .\acrobat_xi_pro18 call install_acrobat_xi_pro.bat19 cd ..20 21 cd .\sogou_input22 call install_sogou_input.bat23 cd ..24 25 cd .\ultraiso26 call shortcut_ultraiso.bat27 cd ..28 29 cd .\office200730 call install_office2007.bat31 cd ..
Install_all

Completely Silent VBS script (Save As. vbs file ):Double-click to run nothing to play out, automatically install

1 Set install = CreateObject("WScript.Shell")2 install.Run "install_all.bat",0, True
VBScript

 

Bytes ------------------------------------------------------------------------------------------------------------

To know the silent installation parameters of the software, run the following command on the console:

[Installer name]/? ----- For example, setup.exe /?

PS: Try to use the official installation package. The silent parameters that have been processed may be lost or changed.

Bytes ------------------------------------------------------------------------------------------------------------

If you do not know the role of the batch processing keyword, run the following command in the console:

Help [batch processing keywords] ---- help for displaying keywords, such as help color

[Batch processing keyword]/? ---- Display keyword explanation help, such as color /?

 

Bytes ------------------------------------------------------------------------------------------------------------

 

 

In case of any errors, please point out that if there is any infringement, please inform us. If you need to reprint it, please indicate the source!

My blog: http://www.cnblogs.com/yllinux/

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.