Windows batch processing: automatically deploy common software (Silent Installation)

Source: Internet
Author: User

Windows batch processing: automatically deploy common software (Silent Installation)
I. Introduction software has been being tested to use domain group policies to automatically deploy software. The results are not satisfactory. First, the host must be added to the domain for the policy to take effect. In fact, Windows Server 2012 R2 only supports. the installation package in msi format, so you need to re-encapsulate the software before deployment; use the "allocated" option, the software does not create shortcuts, you can only add in the "control panel-program. Silent Installation is also called unattended installation. The software is automatically installed by default. Share the software package, write the batch processing software that can be automatically installed on the network in batches, reinstall the system and install it with one click! The implementation principle is very simple, that is, the installation parameters are reserved in the software package, and can be added during installation. When no silent installation parameters are found or are not reserved, you can only manually click Next for installation. View the installation parameters is the same as view the doscommand help :/? . Ii. Configuration

@ Echo offtitle Auto Installcolor 1F: WinRARecho. start/wait \ 192.168.1.100 \ Public \ Software \ WinRAR_x64.exe/sif % errorlevel % = 0 (echo WinRAR x64 -- OK) else (echo WinRAR x64 -- error): Flash Player echo. start/wait \ 192.168.1.100 \ Public \ Software \ flashplayer_IE.exe/installif % errorlevel % = 0 (echo Flash Player for IE -- OK) else (echo Flash Player for IE -- error) echo. start/wait \ 192.168.1.100 \ Public \ Software \ flashplayer_nIE.exe/installif % errorlevel % = 0 (echo Flash Player not for IE -- OK) else (echo Flash Player not for IE -- error): sogou input echo. start/wait \ 192.168.1.100 \ Public \ Software \ Sougoupinyin.exe/Sif % errorlevel % = 0 (echo SougouInput -- OK) else (echo SougouInput -- error): Foxit Readerecho. start/wait \ 192.168.1.100 \ Public \ Software \ FoxitReader.exe/VERYSILENTif % errorlevel % = 0 (echo Foxit Reader -- OK) else (echo Foxit Reader -- error): AVG, no silent installation parameters found. You need to manually click echo. start/wait \ 192.168.1.100 \ Public \ Software \ avg.exe if % errorlevel % = 0 (echo AVG Free -- OK) else (echo AVG Free -- error): original Office 2007, config. xml, You need to manually click echo. start/wait \ 192.168.1.100 \ Public \ Software \ Office2007 \ setup.exe if % errorlevel % = 0 (echo Office Excel -- OK) else (echo Office Excel -- error), echo. start/wait \ 192.168.1.100 \ Public \ Software \ Office2007 \ setup.exe if % errorlevel % = 0 (echo Office PowerPoint -- OK) else (echo Office PowerPoint -- error) echo. start/wait \ 192.168.1.100 \ Public \ Software \ Office2007 \ setup.exe if % errorlevel % = 0 (echo Office Word -- OK) else (echo Office Word -- error) echo. pause
Non-original Office 2007 in one
mkdir %systemdrive%\Office2007xcopy /s /q "\\192.168.1.100\Public\Software\Office 2007" "%systemdrive%\Office2007">%temp%\copy.tmpstart /wait %systemdrive%\Office2007\install.cmdif %errorlevel%==0 (echo  Office 2007 -- OK) else (echo  Office 2007 -- error)del %temp%\copy.tmp

 


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.