Using Internet Explorer Batch-Mode Setup
The Internet Explorer Customization wizard enables you to control functionality and user experience during setup. You can further control the setup process by using a batch file. You can use this method whether Internet Explorer is installed alone or with Microsoft Office.
When installing Internet Explorer 4.0, you can further control the setup process with command-line switches. This method is also supported in Internet Explorer 5, and some new switches are available. To use command-line switches, you typically use the IExpress wizard or another program to package your setup files.
You can also use a combination of the batch file and the command-line switches.
In most cases, the batch-file method gives you more control over the installation of individual components and involves fewer steps. The command-line switches are provided for backward compatibility and to support custom solutions.
Creating a Batch File
To create a batch file, use a text editor such as Microsoft Notepad, and name the file IEBatch.txt.
You can use a batch file in two ways:
Include it with the setup program. You can use it with or without creating a custom Internet Explorer Administration Kit (IEAK) package.
Include it in your IEAK package.
You create the batch file the same way for both methods.
Using a Batch File to Modify the Setup Program
After you create the batch file, you can use it in two ways to modify the setup process.
To include the batch file as part of your IEAK package, place it in the \Iebin\ <Language> \Optional folder. <Language> represents the language of the version you create; for example, English-language versions are created in the En folder.
If you distribute Internet Explorer over the Internet or an intranet, you can post the batch file to the site where users download Internet Explorer. If you distribute Internet Explorer on other media, such as a compact disc or floppy disk, you can add the batch file to the disk. Place it in the same folder as the IE5Setup.exe file.
Batch-File Syntax
The following table shows the sections and entries for the batch file.
Batch file entry |
Description |
---|---|
[Options] |
|
SaveUninstallInfo=[0,1] |
Determines whether or not information about removing components is stored. |
ExtraSection= |
Runs the sections specified in the IESetup.inf file. Separate sections with commas; for example, section1,section2,section3 . |
Quiet=[A,C,U] |
Represents quiet mode, in which the installation runs with little or no input from the user. |
ShowErrors=[0,1] |
Determines whether or not setup errors are displayed to the user. |
[Welcome] |
|
Display=[0,1] |
Determines whether or not the initial setup screen is displayed on the user's computer. |
[SetupChoice] |
|
Display=[0,1] |
Determines whether the screen on which users can choose to customize the setup program is displayed on the user's computer. |
SetupChoice=[0,1] |
Determines which setup option is chosen. |
[Custom] |
|
Display=[0,1] |
Determines whether or not the Component Options screen, in which users can select components and click Advanced to specify more options, is displayed on the user's computer. |
InstallDir=foldername |
Specifies the folder for installing files. If you do not include this setting, the setup program uses the current settings in the IESetup.inf file. If you have installed an earlier version of Internet Explorer, the setup program installs into the same directory as the earlier version. |
InstallDirRO=[0,1] |
Specifies whether or not the user can change the installation folder. |
UseInfInstallDir=[0,1] |
Specifies the folder into which Internet Explorer is installed. |
SetupMode=[0,1,2] |
Specifies what kind of installation will be performed. |
SetupModeRO=[0,1] |
Determines whether or not the user can change the setup type. |
Component=[Comma-separated list of component IDs] |
Specifies that only the components specified in the Component= setting will be installed. The ComponentID is a string that uniquely identifies a component; you can find the corresponding string in the component sections of the IESetup.cif file. |
ComponentListRO=[0,1] |
Determines whether or not the user can specify which components are installed (in addition to the components in the setup type). |
DownloadOnly=[0,1] |
Determines whether or not Internet Explorer is just downloaded, or downloaded and installed. |
DownloadOnlyRO=[0,1] |
Determines whether or not the user can specify that files are downloaded or downloaded and installed. |
IECompat=[0,1] |
Determines whether or not Internet Explorer 5 is installed on the same computer as Internet Explorer 4.0, so that functionality from both programs is available. |
IECompatRO=[0,1] |
Determines whether or not the user can specify if Internet Explorer 5 will be installed with Internet Explorer 4.0. |
IECompatShow=[0,1] |
Determines whether or not the Compatibility check box, which enables users to run Internet Explorer side-by-side with Internet Explorer 4.0, is displayed. |
ShowAdvanced=[0,1] |
Determines whether or not the Advanced button is displayed on the Component Options screen in the Windows Update Setup wizard. Clicking the Advanced button displays the Download only , Compatibility , and Don't associate file types options. |
IEDefault=[0,1] |
Determines whether or not Internet Explorer is the default browser. |
IEDefaultRO=[0,1] |
Specifies whether or not users can determine if Internet Explorer is their default browser. |
[Download] |
|
Display=[0,1] |
Determines whether or not the option to download or install files is displayed on the user's computer. |
DownloadDir= foldername |
Specifies the folder for downloading files. If you do not include this setting, the setup program creates a folder named Windows Update Setup Files on the drive that has the most disk space. |
DownloadDirRO=[0,1] |
Specifies whether or not users can change the folder where their files are downloaded. |
DownloadOS=[0,1,2,3] |
Specifies that files for a specific operating system are downloaded; this setting is valid only if you are downloading but not installing files (DownloadOnly=1). |
DownloadOSRO=[0,1] |
Determines whether or not users can specify the operating system of the files that are downloaded to their computer. |
[DownloadSite] |
|
Display=[0,1] |
Determines whether or not the download sites are displayed to the user. |
DownloadLocation= URL |
Specifies the address of the Web site that users download cabinet (.cab) files from, if you are distributing from the Web. If you used Display=0 for this section, or any switch that would result in this page not being displayed, you should enter a download site. |
DownloadSiteList= URL |
Specifies the location for the list of download sites; by default, this list is the IE5Sites.dat file. If you do not include this setting, the setup program uses the current settings in the IESetup.inf file. |
[PrepareSetup] |
|
Display=[0,1] |
Determines whether or not the Preparing Setup screen is displayed on the user's computer. |
[Diskspace] |
|
Display=[0,1] |
Specifies whether or not to display the amount of disk space needed on the user's computer. |
[Progress] |
|
Display=[0,1] |
Specifies whether or not to display the installation progress to the user. |
[RebootPartial] |
|
Display=[0,1] |
Determines whether or not the Installation Incomplete screen appears if a component fails to install. |
[Finish] |
|
Display=[0,1] |
Specifies whether or not to display the message that the computer is restarting after setup is complete. |
[Reboot] |
|
Reboot=[0,1] |
Specifies whether or not to restart the computer after the setup is complete. |
[Upgrade] |
|
ReinstallAll=[0,1] |
Specifies whether or not to reinstall all components if the setup program is run a second time. |
Sample Batch File
The following is an sample batch file that shows installation directory choices, performs the first listed installation option, and automatically restarts the computer.
[Welcome] Display=0 [SetupChoice] Display=0 [Custom] Display=0 Mode=0 InstallDir=c:\ie\en\ [Download] Display=0 DownloadDir=c:\iedown\ [Finish] Display=0 [Reboot] Reboot=1
.