Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.0 KiB

  1. @echo Installing AppFix...
  2. set PATH=%PATH%;%windir%\system32
  3. REM Temporarily change to the AppPatch directory
  4. pushd %1%
  5. @echo Check OS version...
  6. ver | findstr /c:" 5.00." > nul
  7. IF errorlevel 1 goto TryWhistler
  8. IF errorlevel 0 goto Win2k
  9. goto AllDone
  10. :Win2k
  11. @echo Windows2000 detected. This package is for Whistler only !!!
  12. goto Cleanup
  13. :TryWhistler
  14. ver | findstr /c:" 5.1." > nul
  15. IF errorlevel 1 goto Cleanup
  16. IF errorlevel 0 goto Whistler
  17. goto AllDone
  18. :Whistler
  19. @echo Whistler detected
  20. @echo Replace AppHelp messages...
  21. copy apps.chm %windir%\help\apps.chm
  22. @echo Flush the shim cache...
  23. rundll32 apphelp.dll,ShimFlushCache >nul
  24. @echo Replace the shim databases
  25. chktrust -win2k -acl delta1.cat
  26. chktrust -win2k -acl delta2.cat
  27. fcopy drvmain.sd_ drvmain.sdb
  28. fcopy apphelp.sd_ apphelp.sdb
  29. :Cleanup
  30. @echo Cleanup...
  31. del /f apps.chm > nul
  32. del /f certmgr.exe >nul
  33. del /f testroot.cer >nul
  34. del /f fcopy.exe >nul
  35. del /f drvmain.sd_ >nul
  36. del /f apphelp.sd_ >nul
  37. del /f chktrust.exe >nul
  38. del /f delta*.* >nul
  39. REM Back to original directory
  40. popd
  41. pause