Pages

Tuesday, April 25, 2006

IE 7 standalone scrpit launcher

@ECHO OFFTITLE IE7 Launcher 1.4ECHO IE7 STANDALONE LAUNCHER 1.4ECHO Updated for IE7 Beta 2 PreviewECHO.ECHO Do not close this window or it will not clean up after itself properly.ECHO You can pass a URL into this batch file, like this:ECHO ie7.bat www.microsoft.comECHO.ECHO More info here: http://weblogs.asp.net/jgalloway/archive/2005/12/28/434132.aspxECHO.ECHO When you close IE7, this will remove the registry key and shut itself down.ECHO.ECHO Setting up IE7 for standalone mode...PUSHD %~dp0ECHO Removing IE7 registry key and set the version vector to "7.0000".> %TEMP%.\IE7Fix.reg ECHO REGEDIT4>>%TEMP%.\IE7Fix.reg ECHO.>>%TEMP%.\IE7Fix.reg ECHO [-HKEY_CLASSES_ROOT\CLSID\{C90250F3-4D7D-4991-9B69-A5C5BC1C2AE6}]>>%TEMP%.\IE7Fix.reg ECHO [-HKEY_CLASSES_ROOT\Interface\{000214E5-0000-0000-C000-000000000046}]>>%TEMP%.\IE7Fix.reg ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Version Vector]>>%TEMP%.\IE7Fix.reg ECHO "IE"="7.0000">>%TEMP%.\IE7Fix.reg ECHO.:: Merge the REG file to delete the IE7 standalone entryREGEDIT /S %TEMP%.\IE7Fix.regREN SHLWAPI.DLL SHLWAPI.DLL.BAKTYPE NUL > IEXPLORE.exe.localECHO Running IE7...iexplore.exe "%1":: Merge the REG file to delete the IE7 standalone entryREGEDIT /S %TEMP%.\IE7Fix.reg:: Delete the temporary REG fileDEL %TEMP%.\IE7Fix.regECHO Removing IE7 standalone files...REN SHLWAPI.DLL.BAK SHLWAPI.DLLDEL IEXPLORE.exe.local:: Set the old version vector "6.0000".> %TEMP%.\IE7Fix.reg ECHO REGEDIT4>>%TEMP%.\IE7Fix.reg ECHO.>>%TEMP%.\IE7Fix.reg ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Version Vector]>>%TEMP%.\IE7Fix.reg ECHO "IE"="6.0000">>%TEMP%.\IE7Fix.reg ECHO.REGEDIT /S %TEMP%.\IE7Fix.regDEL %TEMP%.\IE7Fix.regPOPDECHO Complete, closing...