Microsoft .NET is a collection of technologies that allow developers to build, deploy, and maintain applications using a standard set of classes. The .NET framework is the common language runtime and set of classes required to run any application built in .NET. To automate a silent installation of the .NET framework, proceed as follows :
Create a new directory to store all files included in this example.
Download the .NET framework redistributable from http://www.microsoft.com to the new directory.
Start the command prompt and enter the following:
" new directory path \dotnetfx.exe" /q:a /c:"install /l /q"
Here, new directory path is the complete path of the new folder created in step 1.
MDAC (Microsoft Data Access Components) is a set of drivers used to communicate with databases. While Windows 2000/XP comes with a version of MDAC, updating your version will provide improved performance and stability, as well as provide access to new data sources. To automate a silent installation of MDACS, proceed as follows:
Create a new directory to store all files included in this example.
Download the MDACS installer from http://www.microsoft.com to the new directory.
Start the command prompt and enter the following:
new directory path \ executable /q /C:"setup /QN1"
Here, new directory path is the complete path of the new folder created in step 1, and executable is the name of the MDACS executable downloaded in step 2.
The Windows 2000/XP service packs allow you to script an install without forcing you to extract the files first. To automate a silent installation of a Windows 2000/XP service pack, proceed as follows:
Create a new directory to store all files included in this example.
Download the latest service pack, from http://www.microsoft.com, to the new directory.
Start the command prompt and enter the following:
new directory path\executable -F -N -O -Q
Here, new directory path is the complete path of the new folder created in step 1, and executable is the name of the service pack executable downloaded in step 2.
Windows Management Instrumentation (WMI) is a management service that provides scriptable interfaces to the objects on your network. To automate a silent installation of WMI, proceed as follows:
Create a new directory to store all files included in this example.
Download the latest version of Windows Management Instrumentation, from http://www.microsoft.com, to the new directory.
Start the command prompt and enter the following:
new directory path\file /s
Here, new directory path is the complete path of the new folder created in step 1, and file is the name of the WMI installation executable.
Active Directory Services Interfaces (ADSI) is a directory service that allows you to identify users and resources in a tree-like structure. To automate a silent installation of ADSI, proceed as follows:
Create a new directory to store all files included in this example.
Download the latest version of Active Directory Directory Services, from http://www.microsoft.com, to the new directory.
Start the command prompt and enter the following:
new directory path\file /Q:A /R:A
Here, new directory path is the complete path of the new folder created in step 1, and file is the name of the ADSI installation executable.
The Internet Explorer setup utility is a 479kb file that downloads only the files needed for your operating system. If you need to install Internet Explorer on fifty systems, you'll have to sit and wait for it to download fifty times. To automate the download of Microsoft Internet Explorer 6.x, proceed as follows:
Create a new directory to store all files included in this example.
Download the Internet Explorer setup file (ie6setup.exe) from http://www.microsoft.com and store it in the new directory.
Start the command prompt and enter the following:
new directory path\ ie6setup.exe /c:"ie6wzd.exe /d /s:""#E"
Here, new directory path is the complete path of the new folder created in step 1.
Microsoft Internet Explorer is the most widely used Web browser for Windows and comes included with every Windows operating system (for now). To automate the installation of Microsoft Internet Explorer 6.x, proceed as follows:
Create a new directory to store all files included in this example.
Download the Internet Explorer setup file (ie6setup.exe) from http://www.microsoft.com and store it in the new directory.
Start the command prompt and enter the following:
new directory path\ ie6setup.exe /Q:A /R:N
Here, new directory path is the complete path of the new folder created in step 1.
Related solution: | Found on page: |
---|---|
Using Microsoft Internet Explorer as a Display Tool | 100 |
LiveUpdate is a free Symantec application used to automatically update its other software applications. To automate a silent installation of LiveUpdate, proceed as follows.
Start the command prompt and enter the following:
file path \LUSETUP -S
Here, file path is the complete path of the LiveUpdate installation files.
WinZip is the most popular Windows compression utility for the ZIP format. To automate the installation of WinZip 8.1 SR-1 proceed as follows:
Create a new directory to store all files included in this example.
Download the WinZip 8.1 SR-1 installation executable (WINZIP81.EXE), from http://www.winzip.com, to the new directory.
Download and install AutoIt, from http://www.hiddensoft.com/ autoit , to the new directory.
Double click on the scriptfile.
Here, scriptfile is a text file that contains the following:
;REM To automate the installation of WinZip 8.1 SR-1 RUN, WINZIP81.EXE WinWaitActive, WinZip 8.1 SR-1 Setup SEND, !S WinWaitActive, WinZip Setup, Setup will install SEND, {ENTER} WinWaitActive, License Agreement SEND, !Y WinWaitActive, WinZip Setup, WinZip Quick Start SEND, !N WinWaitActive, WinZip Setup, Select SEND, !C!N WinWaitActive, WinZip Setup, Click SEND, !N WinWaitActive, WinZip Setup, WinZip needs to associate SEND, !N WinWaitActive, WinZip Setup, Installation is complete., 5 SEND, {ENTER} [ADLIB] ;Used to close license agreement WinZip, Contents, SEND, !FX ;Used for the evaluation installation WinZip Setup, Thank you for installing, SEND, {ENTER} ;Used to prevent installation from unexpectedly ending WinZip Self-Extractor, Abort unzip operation?, SEND, !N WinZip, Setup is not complete., SEND, !N WinZip Self-Extractor, This self-extracting Zip file, SEND, {ENTER} ;Used for upgrading from older version Setup Complete 1, ,SEND, {ENTER} Setup Complete message 2, , SEND, {ENTER} ;Used to exit script if still running WinZip Tip of the Day, , SEND, Exit
The Windows Installer replaces the ACME installer, adding more features and functionality. This new installer provides a standard method for application installations and an easy way for administrators to script installations.
Norton AntiVirus 2003 is the latest version of antivirus protection from Symantec (http://www.symantec.com). To automate a silent installation of Norton AntiVirus 2003, proceed as follows.
Start the command prompt and enter the following:
file path\ SETUP /QN
Here, file path is the complete path of the Norton AntiVirus 2003 installation files.
PcANYWHERE 11.0 is the latest version of remote control from Symantec (http://www.symantec.com). To automate a silent installation of pcANYWHERE 11.0, start the command prompt and enter the following:
MSIEXEC /I filepath \ Symantec pcAnywhere.msi /QN
Here, file path is the complete path of the pcANYWHERE 11.0 installation files.
The Windows 2000 resource kit provides many tools and utilities that allow you to perform powerful administrative and system tasks . To automate a silent installation of a Windows 2000 resource kit, start the command prompt and enter the following:
MSIEXEC /I DRIVE :\W2000RKPRO.MSI /QN
Note | Using the /QB switch may cause the installer to prompt that it is uninstalling the resource kit when in fact it is installing it. |
Here, DRIVE is the CD-ROM drive letter containing the Windows 2000 resource kit CD.
Tip | You can script a silent Microsoft TechNet installation using the same install syntax and replacing the name of the msi file. |
Although the Windows Installer redistributable files usually come packaged with a program that uses the Windows Installer, they can be downloaded and installed individually. To automate the installation of the Windows Installer, proceed as follows:
Create a new directory to store all files included in this example.
Download the Windows Installer redistributable from http://www.microsoft.com/msdownload.platformsdk/instmsi.htm.
Select StartRun and enter " new directory path \ wiexe /Q:A / R:A."
Here, new directory path is the complete path of the new folder created in step 1, and wiexe is the name of the Windows Installer redistributable executable.
Microsoft Office 2000 was one of the first applications released by Microsoft to utilize the new Windows Installer. Although the following examples are focused toward Microsoft Office 2000 and Office XP, they can be applied to any application that utilizes the new Windows Installer.
The Microsoft Office Removal Wizard can be used to remove older versions of Microsoft Office before installing Microsoft Office 2000/ XP. To automate the removal of older versions of Microsoft Office, start the command prompt and enter the following:
SETUP /S /Q /R /L log file
Here, log file records all activity of the removal process.
Note | The Microsoft Office Removal Wizard is included in the Microsoft Office 2000/XP Resource Kit. |
To automate the installation of Microsoft Office 2000/XP, start the command prompt and enter the following:
file path\ SETUP /QN /L*V install log COMPANYNAME=" company "
Here, file path is the complete path of the Office installation files, install log is the file to store all errors and output, and company is the name of the company registered for Office.
Tip | For more information about Office 2000/XP command-line switches, see the Microsoft TechNet Article Q202946 (Office 2000) and Q283686 (Office XP). |
To automate the uninstallation of Microsoft Office 2000/XP, start the command prompt and enter the following:
file path\ SETUP /QN /X msifile
Here, file path is the complete path of the Office installation files originally used to install Office, and msifile is the name of the msi package to uninstall.
To automate the repair of a Microsoft Office 2000/XP installation, start the command prompt and enter the following:
file path\ SETUP /FOCUMS msifile
Here, file path is the complete path of the Office installation files originally used to install Office, and msifile is the name of the msi package to repair.
To automate the reinstallation of Microsoft Office 2000/XP, start the command prompt and enter the following:
file path\ SETUP /FECUMS msifile
Here, file path is the complete path of the Office installation files originally used to install Office, and msifile is the name of the msi package to reinstall.
Instead of installing an application, you can simply set up the Start menu shortcuts that, when activated, will install the application on first use. This setup method is called advertising. To advertise Microsoft Office 2000/XP, start the command prompt and enter the following:
file path\ SETUP /QN /JU msifile
Here, file path is the complete path of the Office installation files originally used to install Office, and msifile is the name of the msi package to advertise.
To disable the Windows Installer Rollback feature during an installation, start the command prompt and enter the following:
file path\ SETUP DISABLEROLLBACK=1
Here, file path is the complete path of the installation files used in the original installation.
Microsoft has created a utility that allows you to delete Windows Installer registry entries from a system. This is useful when you have corrupted installations that are preventing you from successfully installing a program. Although the utility's installer states that it supports the standard Microsoft installation switches, they do not work. To automate the installation of the Windows Installer Clean Up Utility, proceed as follows:
Create a new directory to store all files included in this example.
Download the Windows Installer Clean Up Utility from Microsoft.
For Windows 9 x :
download.microsoft.com/download/office2000pro/util22/1/W9X/ EN-US/msicu.exe
Note | The code above is one continuous statement. |
For Windows 2000:
download.microsoft.com/download/office2000pro/util20/1/NT4/ EN-US/msicuu.exe
Note | The code above is one continuous statement. |
Download and extract Microsoft AutoIt, from http://www.microsoft.com, to the new directory.
Select StartRun and enter " new directory path \AutoIt scriptfile. "
Here, new directory path is the complete path of the new folder created in step 1, and scriptfile is a text file that contains the following:
[SCRIPT] RUN= executable Windows Installer+It is strongly=~WINWAITACTIVE#!N Windows Installer+License=~WINWAITACTIVE#!A!N Windows Installer+Start=~WINWAITACTIVE#!N REM The two lines below should be one continuous line Windows Installer+Windows Installer Clean Up has been successfully installed=~WINWAITACTIVE#!F [ADLIB] REM Used to prevent installation from unexpectedly ending Windows Installer+Setup is not complete=!R REM The two lines below should be one continuous line Windows Installer+Windows Installer Clean Up was interrupted={ENTER} REM Used for uninstallation Windows Installer+This will remove=!N REM The two lines below should be one continuous line Windows Installer+Windows Installer Clean Up has been successfully uninstalled=!F#~EXIT REM Used if wrong version installation is attempted Installer Information=!0 Fatal Error={ENTER}#~EXIT
Here, executable is the name of the Windows Installer Clean Up executable.
Note | For more information about the Windows Installer Clean Up utility, see the Microsoft TechNet article Q238413 (Office 2000) and Q290301 (Office XP). |