Leaked source code of windows server 2003
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.

39 lines
828 B

  1. Function InstallCab()
  2. dim hcu
  3. dim nBuild
  4. dim strCab
  5. dim strSource
  6. dim strWindows
  7. on error resume next
  8. strSource = Session.Property( "SourceDir" )
  9. nBuild = Session.Property( "WindowsBuild" )
  10. strWindows = Session.Property( "WindowsFolder" )
  11. strTargetPath = strWindows & "pchealth\helpctr\batch\"
  12. if IsEmpty( nBuild ) then
  13. InstallCab = 0
  14. elseif nBuild = 2600 then
  15. strCab = strSource & "sup_pro.cab"
  16. else
  17. strCab = strSource & "sup_srv.cab"
  18. end if
  19. set fso = createobject( "scripting.filesystemobject" )
  20. if not fso is nothing then
  21. fso.CopyFile strCab, strTargetPath
  22. set fso = nothing
  23. end if
  24. ' set hcu = CreateObject( "hcu.pchupdate" )
  25. ' if not hcu is nothing then
  26. ' hcu.UpdatePkg strCab, true
  27. ' set hcu = Nothing
  28. ' end if
  29. InstallCab = 1
  30. End Function