The following VBS script can be used to silently install and configure Internet Explorer 7, simpily include the iesetup.exe file in the same folder as the script and run the script.
To get the iesetup.exe file download the Microsoft update ‘IE7-WindowsXP-x86-enu.exe’ and use WinRar to extract it to a folder.
The script will-
- Temporarily clear the ‘Open File – Security Warning’
- Load the Internet Explorer install with the /Passive /update-no /norestart switches
- Configure Internet Explorer 7-
- Remove to ‘Run Once’ message for the current user and Default User profile
- Enable to ‘Open Home Page in new Tab’ setting for the current user and Default User profile
- Set Google as the default search provider in the search box for the current user and Default User profile
- Restore the ‘Open File – Security Warning’
on error resume next Dim WshSHell, oEnv Dim sAllUsersProfilePath, sLocaldirectory, strComputer set WshShell = CreateObject("WScript.Shell") sAllUsersProfilePath = WshShell.Environment("PROCESS").Item("ALLUSERSPROFILE") set objFSO = CreateObject("Scripting.FileSystemObject") sLocalDirectory = objFSO.GetFile(WScript.ScriptFullName).ParentFolder 'Removes "Open File - Security Warning" check set oEnv = WshShell.Environment("PROCESS") oEnv("SEE_MASK_NOZONECHECKS") = 1 'Install IE7 wshShell.Run sLocalDirectory & "\iesetup.exe /Passive /update-no /norestart",0,TRUE 'Stop The "Run Once" Settings for Current User WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\Main\RunOnceComplete", "1", "REG_DWORD" WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\Main\RunOnceHasShown", "1", "REG_DWORD" 'Open Home Page in new Tab for Current User' WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\TabbedBrowsing\ShowTabsWelcome", "0", "REG_DWORD" WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\TabbedBrowsing\UseHomepageForNewTab", "1", "REG_DWORD" 'Stop The "Run Once" Settings for Default User WSHShell.RegWrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\Main\RunOnceComplete", "1", "REG_DWORD" WSHShell.RegWrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\Main\RunOnceHasShown", "1", "REG_DWORD" 'Open Home Page in new Tab For Default User WSHShell.RegWrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\TabbedBrowsing\ShowTabsWelcome", "0", "REG_DWORD" WSHShell.RegWrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\TabbedBrowsing\UseHomepageForNewTab", "1", "REG_DWORD" 'set default search to google WSHShell.RegWrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\SearchScopes\{2004BBC7-415B-40EB-BE91-C3FED11FD317}\", "1", "REG_DWORD" WSHShell.RegWrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\SearchScopes\{2004BBC7-415B-40EB-BE91-C3FED11FD317}\Codepage", "65001", "REG_DWORD" WSHShell.RegWrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\SearchScopes\{2004BBC7-415B-40EB-BE91-C3FED11FD317}\DisplayName", "Google Search", "REG_SZ" WSHShell.RegWrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\SearchScopes\{2004BBC7-415B-40EB-BE91-C3FED11FD317}\URL", "http://www.google.com.au/search?hl=en&q={searchTerms}&meta=", "REG_SZ" WSHShell.RegWrite "HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\SearchScopes\DefaultScope", "{2004BBC7-415B-40EB-BE91-C3FED11FD317}", "REG_SZ" 'Restores "Open File - Security Warning" check oEnv.Remove("SEE_MASK_NOZONECHECKS") wscript.echo "Internet Explorer Install Complete - Please restart your computer"
For more information on creating SCCM packages see distribute software using SCCM.