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.

74 lines
1.9 KiB

  1. @Echo Off
  2. Rem #########################################################################
  3. Rem
  4. Rem �ˬd %RootDrive% �O�_�w�]�w�A�ñN���]�w�����O�ɡC
  5. Rem
  6. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  7. If "%_CHKROOT%" == "FAIL" Goto Done
  8. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  9. If "%_SETPATHS%" == "FAIL" Goto Done
  10. Rem #########################################################################
  11. ..\ACRegL "%Temp%\PB6.Cmd" PB6INST "HKCU\Software\ODBC\ODBC.INI\Powersoft Demo DB V6" "DataBaseFile" "STRIPCHAR\1"
  12. If Not ErrorLevel 1 Goto Cont0
  13. Echo.
  14. Echo �L�k�q�n���ɧ��� PowerBuilder 6.0 ���O�C�C
  15. Echo ���ˬd PowerBuilder 6.0 �O�_�w�w�ˡA�í��s
  16. Echo �����o�ӫ��O�ɡC
  17. Echo.
  18. Pause
  19. Goto Done
  20. :Cont0
  21. Call "%Temp%\PB6.Cmd"
  22. Del "%Temp%\PB6.Cmd" >Nul: 2>&1
  23. Rem
  24. Rem �ܧ��n�����X�A�N���|���V�ϥΪ̫��w��
  25. Rem �ؿ��C
  26. Rem
  27. Rem �p�G�ثe���O�w�˼Ҧ��A�N�ܧ󦨦w�˼Ҧ��C
  28. Set __OrigMode=Install
  29. ChgUsr /query > Nul:
  30. if Not ErrorLevel 101 Goto Begin
  31. Set __OrigMode=Exec
  32. Change User /Install > Nul:
  33. :Begin
  34. ..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\pwrbldr6.Key pwrbldr6.key
  35. regini pwrbldr6.key > Nul:
  36. Rem �p�G���ӬO�����Ҧ��A�N�ܦ^�����Ҧ��C
  37. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  38. Set __OrigMode=
  39. Rem #########################################################################
  40. Rem
  41. Rem ���s PBld6Usr.Cmd �H�ϬM���ڦw�˥ؿ��A�ñN��
  42. Rem �[�J UsrLogn2.Cmd ���O�ɡC
  43. Rem
  44. ..\acsr "#INSTDIR#" "%PB6INST%" ..\Logon\Template\PBld6Usr.Cmd ..\Logon\PBld6Usr.cmd
  45. FindStr /I PBld6Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  46. If Not ErrorLevel 1 Goto Skip1
  47. Echo Call PBld6Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  48. :Skip1
  49. Rem #########################################################################
  50. Echo.
  51. Echo ���F�T�O PowerBuilder 6.0 ���A�������A�ثe�n�J��
  52. Echo �ϥΪ̥������n�X�A���s�n�J���A���� PowerBuilder 6.0�C
  53. Echo.
  54. Echo PowerBuilder 6.0 �h�ϥΪ����ε{���վ㧹���C
  55. Pause
  56. :done