FeatureEvents.rul 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. //#include "IpAddress.rul"
  2. //---------------------------------------------------------------------------
  3. // The Installed event is sent after the feature 服务端
  4. // is installed.
  5. //---------------------------------------------------------------------------
  6. export prototype Feature_Installed();
  7. function Feature_Installed()
  8. string filename1;
  9. string filename2;
  10. string szHostName;
  11. string szHostIP;
  12. BOOL bResult;
  13. begin
  14. filename1 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\背景-red.jpg";
  15. filename2 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\背景.jpg";
  16. CopyFile(filename1,filename2);
  17. DeleteFile(filename1);
  18. filename1 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\标题-red.jpg";
  19. filename2 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\标题.jpg";
  20. CopyFile(filename1,filename2);
  21. DeleteFile(filename1);
  22. filename1 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\标题-red.psd";
  23. filename2 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\标题.psd";
  24. CopyFile(filename1,filename2);
  25. DeleteFile(filename1);
  26. filename1 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\欢迎-red.jpg";
  27. filename2 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\欢迎.jpg";
  28. CopyFile(filename1,filename2);
  29. DeleteFile(filename1);
  30. filename1 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\欢迎-red.psd";
  31. filename2 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\欢迎.psd";
  32. CopyFile(filename1,filename2);
  33. DeleteFile(filename1);
  34. filename1 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\连接-red.jpg";
  35. filename2 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\连接.jpg";
  36. CopyFile(filename1,filename2);
  37. DeleteFile(filename1);
  38. filename1 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\连接-red.psd";
  39. filename2 = TARGETDIR + "\\服务端\\系统文件\\图片-红色风格\\连接.psd";
  40. CopyFile(filename1,filename2);
  41. DeleteFile(filename1);
  42. // 获取计算机名;
  43. bResult = fGetIpAddress(szHostName, szHostIP);
  44. if ( bResult == FALSE ) then
  45. return;
  46. endif;
  47. // 修改配置文件;
  48. filename1 = TARGETDIR + "\\服务端\\ServiceInfo.ini";
  49. filename2 = szHostName + "\\SQLEXPRESS";
  50. WriteProfString(filename1,"DatabaseInfo","dbSource", filename2);
  51. end;
  52. //---------------------------------------------------------------------------
  53. // The Installed event is sent after the feature 客户端
  54. // is installed.
  55. //---------------------------------------------------------------------------
  56. export prototype Feature1_Installed();
  57. function Feature1_Installed()
  58. string filename1;
  59. string filename2;
  60. begin
  61. filename1 = TARGETDIR + "\\客户端\\图片-红色风格\\背景-red.jpg";
  62. filename2 = TARGETDIR + "\\客户端\\图片-红色风格\\背景.jpg";
  63. CopyFile(filename1,filename2);
  64. DeleteFile(filename1);
  65. filename1 = TARGETDIR + "\\客户端\\图片-红色风格\\标题-red.jpg";
  66. filename2 = TARGETDIR + "\\客户端\\图片-红色风格\\标题.jpg";
  67. CopyFile(filename1,filename2);
  68. DeleteFile(filename1);
  69. filename1 = TARGETDIR + "\\客户端\\图片-红色风格\\标题-red.psd";
  70. filename2 = TARGETDIR + "\\客户端\\图片-红色风格\\标题.psd";
  71. CopyFile(filename1,filename2);
  72. DeleteFile(filename1);
  73. filename1 = TARGETDIR + "\\客户端\\图片-红色风格\\欢迎-red.jpg";
  74. filename2 = TARGETDIR + "\\客户端\\图片-红色风格\\欢迎.jpg";
  75. CopyFile(filename1,filename2);
  76. DeleteFile(filename1);
  77. filename1 = TARGETDIR + "\\客户端\\图片-红色风格\\欢迎-red.psd";
  78. filename2 = TARGETDIR + "\\客户端\\图片-红色风格\\欢迎.psd";
  79. CopyFile(filename1,filename2);
  80. DeleteFile(filename1);
  81. filename1 = TARGETDIR + "\\客户端\\图片-红色风格\\连接-red.jpg";
  82. filename2 = TARGETDIR + "\\客户端\\图片-红色风格\\连接.jpg";
  83. CopyFile(filename1,filename2);
  84. DeleteFile(filename1);
  85. filename1 = TARGETDIR + "\\客户端\\图片-红色风格\\连接-red.psd";
  86. filename2 = TARGETDIR + "\\客户端\\图片-红色风格\\连接.psd";
  87. CopyFile(filename1,filename2);
  88. DeleteFile(filename1);
  89. end;