BAT batch processing Enables automatic software installation
This article mainly introduces the automatic installation of BAT batch processing software (taking sogou pinyin as an example). This article takes the installation of sogou pinyin as an example for a small experiment. The installation of other software can be implemented as a reference, for more information, see
The following describes how to install sogou pinyin in a small experiment. The installation of other software can be implemented as a reference.
Lab objectives:
Use batch processing to automatically install sogou pinyin
Tutorial steps:
1. Download the installation package for sogou pinyin. In this tutorial, use sogou_pinyin_50a.exe.
2. Create a new batch file sogou_install.bat in the directory where the installation package is located.
3. Edit the batch file sogou_install.bat, enter the following command, and save it.
The Code is as follows:
Start/wait. \ sogou_pinyin_50a.exe/S
4. Double-click the batch file for execution.
5. to execute this batch of files as an administrator, the system may prompt "file XXX not found ". In this case, you can slightly modify the batch processing file.
The Code is as follows:
Path of the cd Installation File
Start/wait. \ sogou_pinyin_50a.exe/S
6. After the batch processing is executed, the software will be automatically installed.
Experiment summary:
1. The Automatic Installation Method of other software is similar to that demonstrated in this experiment.
2. the Automatic Installation commands of various types of software are not necessarily the same. The installation commands of most software can be found on the Internet (for example, the article "batch processing files for Automatic Installation Software" summarizes a lot ).
3. for fully automated (silent) software installation knowledge, read the article "using batch processing to fully automated (silent) install common software".
4. In Windows, the system may prompt "whether to allow changes to the computer" when installing software. This will have a certain impact on the automatic installation of software for batch processing. In this case, you can use the Administrator to execute batch files. You can also set it in "Control Panel-operation center-Change User Account Control Settings.
That's it.