BAT batch processing method for fully automated (silent) Software Installation

Source: Internet
Author: User

BAT batch processing method for fully automated (silent) Software Installation

This article describes how to install software in full automatic (silent) BAT batch processing (including four common installation package formats ), this article describes the packaging type, testing method and installation Type Analysis of Common application software, and requirements in the batch processing file. For more information, see

To install common software using batch processing, we need to master the following knowledge points:

I. encapsulation types of common application software:

1. installshield:

Installshield is a commercial-level installer packaging tool, which is used by many large commercial software, such as macromedia flash. pgtoshop.

Installation parameters:-R is used to record the installation process

-S is used for automatic installation of software

-F1 specifies the path of the setup. iss response File

Usage:

1 ). install the software by using the-R parameter in the command line. There is no essential difference between the installation process and normal installation: \ windows (winxp system) or c: \ winnt (win2k System) Find a directory named setup. iss file, which is an important response file for automatic installation.

2) Put the preceding setup. iss file and your installer in the same directory and use the-s parameter for automatic installation.

Example: start/wait x: \ phtoshop \ setup.exe-s-f1 "y: \ setup. iss "(if setup. the iss file is in the same directory as the installer, and the-f1 parameter can be omitted)

2. Inno setup type:

Inno setup is a completely free installer packaging tool, which features and stability comparable to commercial packaging tools.

Installation parameters:/silent (/verysilent) for automatic software installation

Sp-used to skip the confirmation interface of the installer

Usage: start/wait x: \ thunder5.exe/verysilent sp-

Note: This installation parameter is easy to use. However, if we write it to a batch file for a large number of software installations, some software will be started after the installation is complete, for example, in order not to affect the system performance, we can use other commands to terminate the process. For example:

Copy the Code as follows:

@ Echo off

Start/wait x: \ thunder5.exe/verysilent sp-

Echo.

Taskkill.exe/F/IM Thunder5.exe

3. Microsoft Windows Installer package

Microsoft's own products, many software manufacturers now choose this encapsulation method based on Microsoft's Development

Parameter: // QB (/QN) for automatic software installation

/REBOOT = suppress is not restarted after installation

Usage: start/wait x: \ setup.exe/qb reboot = Suppress

4. Nullsoft SuperRMP Install System (NSIS) type, for example, winamp

Use parameters:/S for automatic software installation

Example: x: \ winamp \ setup.exe/S

Note: after the software is installed, a file association Confirmation window will be provided, which cannot be skipped at present, but I can give you a thought, it is to use the Doskey command in the VBS script to simulate the keyboard action to implement the confirmation process. So far, I have not personally written it yet. Hope you can help improve it.

Ii. Test Method and installation type analysis:

1. Test method: You can use a popular virtual machine for testing.

2. Installation Type Analysis: For most installers, right-click the installer and select ________ to view the package class.

Iii. Requirements in batch processing files

If you want to re-encapsulate the installation disc with the WINXP tool and install the application software using the winxp response file, you must understand that the location of the batch file should be protected, you can read this 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.