@ECHO OFF

IF NOT EXIST "%SYSTEMROOT%\DOWNLOADED PROGRAM FILES" MD "%SYSTEMROOT%\DOWNLOADED PROGRAM FILES"

CACLS "%SYSTEMROOT%\DOWNLOADED PROGRAM FILES" /E /P EVERYONE:F /C >Nul: 2>&1

CACLS "%SYSTEMROOT%\Profiles\All Users\Start Menu\Programs\Startup\IEInst.cmd" /E /P EVERYONE:F /C >Nul: 2>&1

ATTRIB -h -r -s -a "%SYSTEMROOT%\Profiles\All Users\Start Menu\Programs\Startup\IEInst.cmd"

ATTRIB -h -r -s -a "%SYSTEMDRIVE%\IE40Std\*.*"

CD /d %SYSTEMDRIVE%\IE40Std >Nul: 2>&1

REGINI AutoLog.Key >Nul: 2>&1

COPY "%SYSTEMDRIVE%\IE40Std\CTXDEL.EXE" "%SYSTEMROOT%\Profiles\IE4AutoInstall\Start Menu\Programs\Startup" >Nul: 2>&1

CHANGE USER /INSTALL >Nul: 2>&1

IEINST.EXE ""%SYSTEMDRIVE%\IE40Std\ie4setup.exe" /Q" "%SYSTEMROOT%\Profiles\All Users\Start Menu\Programs\Startup\ieinst.cmd"
     
