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.

68 lines
1.9 KiB

  1. @Echo Off
  2. Rem
  3. Rem Create directories for application specific data in the
  4. Rem user's home directory.
  5. Rem
  6. Rem Initialize COfficeLoc
  7. Set COffice7Loc=#
  8. If Exist "%RootDrive%\%MY_DOCUMENTS%\iBases\Personal" goto cont1
  9. call TsMkUDir "%RootDrive%\%MY_DOCUMENTS%\iBases\Personal"
  10. Rem
  11. Rem Copy of iBases\Personal files from hardcoded "C:\Corel" changed to %COffice7Loc%
  12. Rem
  13. Rem First, Retrieve Corel install path from the registry
  14. ..\ACRegL %Temp%\COffice7.Cmd COffice7Loc "HKLM\Software\PerfectOffice\Products\InfoCentral\7" "ExeLocation" "StripChar\2"
  15. If ErrorLevel 1 Goto InstallError
  16. Call %Temp%\COffice7.Cmd
  17. Del %Temp%\COffice7.Cmd >Nul: 2>&1
  18. Rem Now copy the files
  19. copy "%COffice7Loc%\ICWin7\Local\iBases\Personal.*" "%RootDrive%\%MY_DOCUMENTS%\iBases\Personal\." >Nul: 2>&1
  20. :cont1
  21. Rem Create needed dirs in user profile
  22. call TsMkUDir "%RootDrive%\COffice7\Backup"
  23. call TsMkUDir "%RootDrive%\Coffice7\Working"
  24. call TsMkUDir "%RootDrive%\Coffice7\Private"
  25. Rem Copy Custom dictionary to user profile
  26. if Exist "%RootDrive%\COffice7\WT61US.UWL" Goto Cont2
  27. copy "%SystemRoot%\WT61US.UWL" "%RootDrive%\COffice7"
  28. :Cont2
  29. Rem Copy Custom formats to user profile
  30. If Exist "%RootDrive%\COffice7\Formats.inf" Goto Cont3
  31. Rem If COffice7Loc not set, retrieve it now
  32. If Not %COffice7Loc% == # Goto Cont4
  33. ..\ACRegL %Temp%\COffice7.Cmd COffice7Loc "HKLM\Software\PerfectOffice\Products\InfoCentral\7" "ExeLocation" "StripChar\2"
  34. If ErrorLevel 1 Goto InstallError
  35. Call %Temp%\COffice7.Cmd
  36. Del %Temp%\COffice7.Cmd >Nul: 2>&1
  37. :Cont4
  38. Copy "%Coffice7Loc%\Quattro7\formats.inf" "%RootDrive%\Coffice7" >Nul: 2>&1
  39. :Cont3
  40. Goto Done
  41. :InstallError
  42. Echo.
  43. Echo Unable to retrieve Corel Office 7 installation location from the registry.
  44. Echo Verify that Corel Office 7 has already been installed and run this script
  45. Echo again.
  46. Echo.
  47. Pause
  48. Goto Done
  49. :Done