Introduction to Silent Installation of Common Software

Source: Internet
Author: User

Sometimes, when installing the program, we hope to install the program silently without showing the next step. This part of the access will teach you how to operate the program. Currently, the commonly used software for creating the installation program is, microsoft Windows Installer, Windows Patch pack, InstallShield, InstallShield with MSI, WISE Installer, Inno Setup, NullSoft Installation System, etc.

The software installation is automated or semi-automatic.

 1. Microsoft Windows Installer

If a software is packaged with Windows Installer, you should be able to see the *. msi file in the folder. This is the most typical feature. These files can be automatically installed using/QB and/QN parameters.

/Qb displays a basic installation process in the window.
The/qn parameter does not display any windows and is automatically installed in the background.

To Prevent Automatic Restart of some programs (such as Kerio Personal Firewall 4) after successful installation, you can use the REBOOT = Suppress flag after the/qn or/qb parameters.

For example, install the virtual optical drive DaemonTools: msiexec/I dtools. msi/qb REBOOT = SUPPRESS

  Ii. Windows Patch pack

There are two situations: one is the installation file similar to the IE incremental patch package. to install it silently, you only need to add the/q: a/r: n parameter after the execution file; one is a common patch file for Windows. Generally, you can install it silently by adding/U/N/Z. (For new system patches, you can also use/passive/norestart ). This is common in most cases, but some specific patches cannot be installed silently using this method.

  Iii. InstallShield

1. to install a program packaged With InstallShield technology through Silent Installation, you must first create a setup. iss file in the existing operating system. Run the installer using the-R parameter (case sensitive) in the command line window.

Example: Setup.exe-R

2. A common installation screen is displayed, and you are asked some questions, such as the Directory to be installed, after the installation is complete, you cannot select the "Restart computer now" option. If you select this option, other commands in the batch file cannot be executed because the computer restarts.

3. After the installation is completed, open your C: \ Windows (or C: \ WINNT) directory and find setup. the iss file. Save the file and the program setup.exe you are about to silently install in the same directory.

4. Run the following command for Silent Installation: setup.exe-s [-sms]

Note: How do I know which program is packaged Using InstallShield technology?

Most of the installation files of such programs can be decompressed by the compressed software. The Property dialog box of the setup.exe installation file should contain "InstallShield (R) Setup Launcher" or other similar words.

Finally, if you see a setup. iss file in the folder that saves the installation file, you can use InstallShield to package it!

  Iv. InstallShield with MSI

To install the installation file prepared by InstallShield with MSI, use the following command: setup.exe/s/v "/qb.

 V. WISE Installer

When installing software packaged with WISE technology, you can use the/s parameter for automatic installation.

  6. Inno Setup

For installation files created by Inno Setup, use setup.exe/sp-/silent/norestart.

Note: How do I know which installer is packaged with Inno technology?

The first interface that appears when the software is installed, click the left mouse button on the icon on the left side of the window title bar, and then click "About Setup" on the menu to view the installation type.

  VII. NullSoft Installation System

The Installation File Created using NullSoft Installation System can be installed silently ("S" is case-sensitive) by/S (uppercase ).

Example: Setup.exe/S

You can also use the/D parameter to select the target partition and folder to be installed:

Example: Setup.exe/S/D = E: \ Software \ QQ2007

Software such as Winamp and CDex will display a confirmation screen (CDex) or end installation screen (Winamp) after the installation is completed)

Note: How do I know which program is packaged using NSIS technology?

Many programs packaged with NSIS have similar windows during installation, such as Winamp and CDex.

  8. Wise Installation Professional

The installation file can be installed silently with the/silent parameter.

One of the most attractive aspects of unattended CD installation
It means that some common software with pre-design integration can be installed silently during the installation process. After the installation is complete, the software can be used.
However, many of my friends found that the silent installation parameters of each software and system patch are different.
In this article, I will study several common methods of Silent Installation of software packages with the majority of enthusiasts.
If you have any omissions or errors, please point out that you can communicate with each other!

Common software packages include the following forms:
Inno Setup
InstallShield
NSIS
Microsoft Windows Installer
WISE

QUOTE:

I. Inno Setup

You can use the/SILENT and/VERYSILENT parameters for the installation package of programs made using Inno Technology for SILENT Installation.
I don't know what are the differences between the two parameters, because they provide the same functions.

Setup.exe/VERYSILENT

You will see a dialog box asking if you want to continue the installation:

You can skip this dialog box by using a parameter:

Setup.exe/VERYSILENT/SP-

Some installation packages that use Inno technology will automatically run the installed program after the program is installed, such as ISOBuster
However, we can use a built-in tool called Taskkill to kill related processes.

The following is an example of a command that can be used to install software packaged by Inno in a batch file:

ECHO.
ECHO is installing ISOBuster 1.4
ECHO please wait...
Start/wait restart systemdriveappsinstallapplicationsisobusterisobuster14.exe/VERYSILENT/SP-
ECHO.
ECHO Killing ISOBuster.exe process
Taskkill.exe/F/IM isobuster.exe
ECHO.

How do I know which installer is packaged with Inno technology?

Shows the first interface for installing the software.
Click the left mouse button on the icon on the left of the title bar of the window.
Click "About Setup" on the menu to view the installation type.

For more available software parameters packaged using Inno technology, you can see below:
Good E-paper friends can study it carefully
With the Inno Setup Extentions in use the following command line switches become available:

SP-
Disables the This will install... Do you wish to continue? Prompt at the beginning of Setup. Of course, this will have no

Effect if the DisableStartupPrompt [Setup] section directive was set to yes.

/SILENT,/VERYSILENT
Instructs Setup to be silent or very silent. When Setup is silent the wizard and the background window are not displayed

The installation progress window is. When a setup is very silent this installation progress window is not displayed.

Everything else is normal so for example error messages during installation are displayed and the startup prompt is (if you

Haven'tdisabled it with DisableStartupPrompt or the ''/SP-''' command line option explained above)

If a restart is necessary and the ''/NORESTART'' command isn' t used (see below) and Setup is silent, it will display

Reboot now? Messagebox. If it's very silent it will reboot without asking.

/NORESTART
Instructs Setup not to reboot even if it's necessary.
/LOADINF = "filename"
Instructs Setup to load the settings from the specified file after having checked the command line. This file can be prepared

Using the ''/SAVEINF ='' command as explained below.

/SAVEINF = "filename"
Instructs Setup to save installation settings to the specified file.

/DIR = "x: dirname"
Overrides the default directory name displayed on the Select Destination Directory wizard page. A fully qualified pathname

Must be specified. If the [Setup] section directive DisableDirPage was set to yes, this command line parameter is ignored.

/GROUP = "folder name"
Overrides the default folder name displayed on the Select Start Menu Folder wizard page. If the [Setup] section directive

DisableProgramGroupPage was set to yes, this command line parameter is ignored.

/NOICONS
Instructs Setup to initially disable the Don't create any icons check box on the Select Start Menu Folder wizard page.

/COMPONENTS = "comma separated list of component names"
Overrides the default components settings. Using this command line parameter causes Setup to automatically select a custom

Type.

QUOTE:

Ii. InstallShield

Install the program packaged With InstallShield Technology in silent installation mode
First, you must create a setup. iss file in the existing operating system.

1. Run the installer using the-R parameter (case sensitive) in the command line window.

For example:
Setup.exe-R

2. A common installation screen is displayed, and you are asked some questions, such as the Directory to be installed.
One thing is very important. After installation, you cannot select the "Restart computer now" option.
If you select this option, other commands in the batch files cannot be executed because the computer restarts.

3. After the installation is completed, open your C: Windows (or C: WINNT) directory.
Find the setup.iss file, and save the file and the installation program setup.exe in the same directory.

4. Run the following command to perform silent installation:

Start/wait restart systemdriveappsinstallapplicationapplication_namesetup.exe-s

5. Perform Silent Installation on all preparations and repeat the steps above for programs that use the InstallShield technology package.

Technical difficulty: Install the program packaged With Installshield technology from RunOnceEx on the CD
If you run RunOnceEx directly from the CD, installation of the application packaged With Installshield will fail.
Unless you specify a location for saving the day to the file
Here is an example. You can use this example to install your own program (the bold part is carefully described ):

Reg add % KEY %/VE/D "Kerio Personal Firewall 2.1.5"/f
Reg add % KEY %/V 1/D "Maid appskpfsetup.exe-s-f2" % systemdrive % kerio. log ""/f

Then you can use a cleanup. cmd file to delete the kerio. log file.
DEL "% systemroot % kerio. log"

How do I know which program is packaged Using InstallShield technology?
The installation files of such programs can be decompressed by the compressed software. The "InstallShield (R) Setup Launcher" or

Other similar words.
Finally, if you see a setup. iss file in the folder that saves the installation file,
There is no doubt that this is packaged with InstallShield!

QUOTE:

Iii. Nullsoft SuperPiMP Install System (NSIS)

The NSIS package can be automatically installed with the/S parameter ("S" is case sensitive ):

Setup.exe/S

You can also use the/D parameter to select the target partition and folder to be installed:

Setup.exe/S/D = E: SoftwareCDex

Software such as Winamp and CDex will display a confirmation screen (CDex) after installation)
Or an end installation screen (Winamp) that sets the File Association Method)
I still don't know how to skip this step, but this screen will not affect the execution of batch files.

How do I know which program is packaged using NSIS technology?

Many programs packaged with NSIS have such windows during installation, such as Winamp and CDex:

4. Microsoft Windows Installer

The encapsulation form of Microsoft's boss!
If a software is packaged with Windows Installer, you should be able to see the *. msi file in the folder.
This is the most typical feature
These files can be automatically installed using/QB and/QN parameters.
Powertoys uses the/s/v/qn parameters. For these software, you can try the parameters mentioned above in sequence.
Check which one is valid.

/Qb displays a basic installation process in the window.
The/qn parameter does not display any windows and is automatically installed in the background.

After the program is installed, it is automatically restarted:
To Prevent Automatic Restart of some programs (such as Kerio Personal Firewall 4) after successful installation, you can use REBOOT = Suppress flag after/qn or/qb parameters. For example

For example:

Setup. msi "/qn REBOOT = Suppress"

Some installers use the/s/v/qn parameter for automatic installation, so to prevent them from restarting, they should use:

Setup.exe/s/v "/qn REBOOT = Suppress"

5. WISE Installer

When installing software packaged with WISE technology, you can use the/s parameter for automatic installation:

Setup.exe/s

Other parameters:
You can run Wise Installation. EXE with command line options to automate tasks of the tasks you wowould normally do in the User

Interface. The list of options is as follows.

/C file. wse -- creates executable file from wise script
/R -- opens Wise in SetupCapture window
/U -- runs the upgrade wizard that checks for any upgrades online
/D CompVar = Value -- defines a single compiler variable in Enterprise Edition. Multiple definitions require multiple/d
/D = filename -- uses filename to define compiler variables. Each line in file is CompVar = Value

Example: installbuilder.exe/c/d _ MYVAR _ = "Test" c: mysource ilessetup. wse

Wise Installations:

/T -- test mode
/X pathname -- extracts files into pathname
/Z pathname -- extracts files into pathname and reboots
/S -- silent install
/M -- prompts for windows, system, temp directories
/M = filename -- specifies a value file similar to/d above, but for standard variables (See NOTE below ).
/M1 -- same as/m plus it prompts before any file that is self-registered
/M2 -- reserved for internal use by Wise during debugger sessions

Example: setup.exe/T

Unwise:

/Z -- remove empty directories, including one with unwise itself in it.
/A -- automatic mode, no user choices other than cancel.
/S -- silent mode, automatic mode with no user choices
/R -- rollback mode, selects option to rollback on uninstall
/U -- like automatic mode, but gives all choices other than custom/automatic title window title can be at the end of

Command line

Example: unwise.exe/S c: myprogramdirectoryinstall. log

NOTE: The values file is a simple text file with variables listed, one per line, in VARIABLE = "VALUE" format. If the variable

Is found in the values file, the specified value is used; otherwise, its value is unchanged. The file containing

Variables can be up to 32 K.

How do I know which programs are packaged using Wise technology?

Most programs packaged using Wise technology will display a startup interface when they start running:

However, some will minimize this window, only display a dark blue background, and install the window in the center of the screen

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.