 by aker » 12.11.2011, 20:00
by aker » 12.11.2011, 20:00 
			
			Patch 2- Code: Select all
- -rem Versionsnummer an WSUS Offline Update angelehnt
 -set AKEROFFLINE_VERSION=1.1
 -set AKEROFFLINE_RELEASE=6
 set AKEROFFLINE_VERSION=1.1.1
 set AKEROFFLINE_RELEASE=8
 
- Code: Select all
- -::for %%d in (z y w v u t s r q p o n m l k j i h g f e d c) do if exist "%%d:\windows\win.ini" (
 -::      set ofwindrv=%%d:
 -::      set ofwindir=%%d:\Windows
 -::   )
 
- Code: Select all
- -for /f %%a in (%ofwindrv%\temp\ExcludeList-superseded.txt) do (
 -   echo %%a | find /I "Windows6" >nul 2>&1
 -   if not errorlevel 1 echo %%a>>%ofwindrv%\temp\supersededos.txt
 -)
 +findstr /I /C:"Windows6.%ofwinver_MINOR%" "%ofwindrv%\temp\ExcludeList-superseded.txt" >"%ofwindrv%\temp\supersededos-%OS_NAME%.txt"
 
- Code: Select all
- -for /f %%a in (%ofwindrv%\temp\supersededos.txt) do (
 -   echo %%a | find /I "-x86" >nul 2>&1
 -   if not errorlevel 1 echo %%a>>%ofwindrv%\temp\supersededosarch.txt
 -)
 +findstr /I /C:"-x86" "%ofwindrv%\temp\supersededos-%OS_NAME%.txt" >"%ofwindrv%\temp\supersededNames-%OS_NAME%-x86.txt"
 
- Code: Select all
- -del %ofwindrv%\temp\supersededos.txt > nul
 +del %ofwindrv%\temp\supersededos-%OS_NAME%.txt > nul
 
- Code: Select all
- -for /f %%g in (%ofwindrv%\temp\IdsToInstall-nonie.txt) do (
 -   for /f %%r in (%ofwindrv%\temp\UpdateNames-%OS_NAME%.txt) do (
 -      echo %%r | %SystemRoot%\system32\find.exe /I "%%g" >nul 2>&1
 -      if not errorlevel 1 echo %%r>>%ofwindrv%\temp\NamestoInstall-nonie.txt
 -   )
 -)
 +findstr /i /g:"%ofwindrv%\temp\IdsToInstall-nonie.txt" "%ofwindrv%\temp\UpdateNames-%OS_NAME%.txt" >%ofwindrv%\temp\NamestoInstall-nonie.txt
 
- Code: Select all
- -if "%OS_NAME%"=="w61" (
 -   for /f %%p in (%ofwindrv%\temp\IdsToInstall-ie.txt) do (
 -      for /f %%r in (%ofwindrv%\temp\allNames-%OS_NAME%.txt) do (
 -         if not "%%p"=="" (
 -            if not "%%r"=="" (
 -               echo %%r | %SystemRoot%\system32\find.exe /I "%%p" >nul 2>&1
 -               if not errorlevel 1 echo %%r>>%ofwindrv%\temp\NamestoInstall-ie-temp.txt
 -            )
 -         )
 -      )
 -      for /f %%f in (%ofwindrv%\temp\NamestoInstall-ie-temp.txt) do (
 -         if not "%%p"=="" (
 -            if not "%%f"=="" (
 -               echo %%f | find /I "IE9-"  >nul 2>&1
 -               if not errorlevel 1 (echo %%f>>%ofwindrv%\temp\NamestoInstall-ie9.txt) else (echo %%f>>%ofwindrv%\temp\NamestoInstall-ie8.txt)
 -               )
 -         )
 -      )
 -   )
 -)
 +if "%OS_NAME%"=="w61" (
 +   findstr /i /g:"%ofwindrv%\temp\IdsToInstall-ie.txt" "%ofwindrv%\temp\allNames-%OS_NAME%.txt" >%ofwindrv%\temp\NamestoInstall-ie-temp.txt
 +   for /f %%f in (%ofwindrv%\temp\NamestoInstall-ie-temp.txt) do (
 +      if not "%%p"=="" (
 +         if not "%%f"=="" (
 +            echo %%f | find /I "IE9-"  >nul 2>&1
 +            if not errorlevel 1 (echo %%f>>%ofwindrv%\temp\NamestoInstall-ie9.txt) else (echo %%f>>%ofwindrv%\temp\NamestoInstall-ie8.txt)
 +            )
 +      )
 +   )
 +)
 
- Code: Select all
- -if "%OS_NAME%"=="w60" (
 -   for /f %%p in (%ofwindrv%\temp\IdsToInstall-ie.txt) do (
 -      for /f %%r in (%ofwindrv%\temp\allNames-%OS_NAME%.txt) do (
 -         if not "%%r"=="" (
 -            if not "%%p"=="" (
 -               echo %%r | %SystemRoot%\system32\find.exe /I "%%p" >nul 2>&1
 -               if not errorlevel 1 echo %%r>>%ofwindrv%\temp\NamestoInstall-ie-temp.txt
 -            )
 -         )
 -      )
 -      for /f %%f in (%ofwindrv%\temp\NamestoInstall-ie-temp.txt) do (
 -         if not "%%p"=="" (
 -            if not "%%f"=="" (
 -               echo %%f | find /I "IE9-"  >nul 2>&1
 -               if not errorlevel 1 echo %%f>>%ofwindrv%\temp\NamestoInstall-ie9.txt
 -               echo %%f | find /I "IE8-"  >nul 2>&1
 -               if not errorlevel 1 echo %%f>>%ofwindrv%\temp\NamestoInstall-ie8.txt
 -               echo %%f | find /I "IE9-"  >nul 2>&1
 -               if errorlevel 1 (
 -                  echo %%f | find /I "IE8-"  >nul 2>&1
 -                  if errorlevel 1 echo %%f>>%ofwindrv%\temp\NamestoInstall-ie7.txt
 -               )
 -            )
 -         )
 -      )
 -   )
 -)
 +if "%OS_NAME%"=="w60" (
 +   findstr /i /g:"%ofwindrv%\temp\IdsToInstall-ie.txt" "%ofwindrv%\temp\allNames-%OS_NAME%.txt" >%ofwindrv%\temp\NamestoInstall-ie-temp.txt
 +   findstr /i /c:"IE9-" "%ofwindrv%\temp\NamestoInstall-ie-temp.txt" >%ofwindrv%\temp\NamestoInstall-ie9.txt
 +   findstr /i /c:"IE8-" "%ofwindrv%\temp\NamestoInstall-ie-temp.txt" >%ofwindrv%\temp\NamestoInstall-ie8.txt
 +   for /f %%f in (%ofwindrv%\temp\NamestoInstall-ie-temp.txt) do (
 +      if not "%%p"=="" (
 +         if not "%%f"=="" (
 +            echo %%f | find /I "IE9-"  >nul 2>&1
 +            if errorlevel 1 (
 +               echo %%f | find /I "IE8-"  >nul 2>&1
 +               if errorlevel 1 echo %%f>>%ofwindrv%\temp\NamestoInstall-ie7.txt
 +            )
 +         )
 +      )
 +   )
 +)
 
 
			Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to keep or sell it.
aker
WSUS Offline Update „Community Edition“
https://gitlab.com/wsusoffline/wsusoffline/-/releases