Windows Batch: Automatic deployment of common software (silent installation)

Source: Internet
Author: User

First, Introduction

The recent test of automating software deployment using Domain Group Policy is not ideal. First, the host must be joined to a domain for the policy to take effect. In fact, Windows Server R2 only supports the. msi format of the installation package, so the software should be re-encapsulated before deployment, using the "Assigned" option, the software does not create a shortcut, can only be added in "Control Panel-Programs".

A silent installation, also known as an unattended installation, is installed automatically with the default values. put the package in the share, write batch processing can automatically install the software on the network, reinstall the system after a button installed! the principle of implementation is very simple, is the software packaging program reserved The installation parameters, installation can be added. When silent installation parameters are not found or reserved, only manually click Next to install. Check the installation parameters with the View DOS command help the same:/?.

Second, the configuration

@echo offtitle Auto installcolor 1F
:: WinRAREcho. Start/wait\\192.168.1.100\public\software\winrar_x64.exe/sif%errorlevel%==0(EchoWinRAR x64--OK)Else(EchoWinRAR x64--error)
:: Flash PlayerEcho. Start/wait\\192.168.1.100\public\software\flashplayer_ie.exe/Installif%errorlevel%==0(EchoFlash Player forIE--OK)Else(EchoFlash Player forIE--error)Echo. Start/wait\\192.168.1.100\public\software\flashplayer_nie.exe/Installif%errorlevel%==0(EchoFlash Player not forIE--OK)Else(EchoFlash Player not forIE--error)
:: Sogou Input MethodEcho. Start/wait\\192.168.1.100\public\software\sougoupinyin.exe/Sif%errorlevel%==0(EchoSougouinput--OK)Else(EchoSougouinput--error)
:: Foxit ReaderEcho. Start/wait\\192.168.1.100\public\software\foxitreader.exe/verysilentif%errorlevel%==0(EchoFoxit Reader--OK)Else(EchoFoxit Reader--error)
:: AVG, failed to find the silent installation parameters, need to manually clickEcho. Start/wait\\192.168.1.100\public\software\avg.exeif%errorlevel%==0(EchoAVG free--OK)Else(EchoAVG Free--error)
:: Original Office 2007, not set config.Echo. Start/wait\\192.168.1.100\public\software\office2007\setup.exeif%errorlevel%==0(EchoOffice Excel--OK)Else(EchoOffice Excel--error),Echo. Start/wait\\192.168.1.100\public\software\office2007\setup.exeif%errorlevel%==0(EchoOffice PowerPoint--OK)Else(EchoOffice PowerPoint--error)Echo. Start/wait\\192.168.1.100\public\software\office2007\setup.exeif%errorlevel%==0(EchoOffice Word--OK)Else(EchoOffice Word--error)Echo. Pause

Non-original Office 20,074 Unity

mkdir %systemdrive%"\\192.168.41.251\Public\Software\Office" " %systemdrive%\office2007 ">%temp%/wait %systemdrive%\office2007\install. cmdif %errorlevel%==0 (Echo  -Else (echo  Office2007-  %temp%\copy.tmp

This article is from "Operation and maintenance rookie. Log" blog, declined reprint!

Windows Batch: Automatic deployment of common software (silent installation)

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.