home *** CD-ROM | disk | FTP | other *** search
/ 100 Great Kid's Games 2 / 100gamesII.iso / CPatrol / install.cfg < prev    next >
Text File  |  1998-04-28  |  2KB  |  82 lines

  1. //
  2. // Post-Install Glue (PIG) Script
  3. //
  4. // Desktop Cyber-Patrol Setup Link for TLC Products
  5. //
  6. // 16/32-bit installer chain
  7. //
  8.  
  9. //embed-head//
  10.  
  11. // get location of cyber-patrol directory
  12. set $3 to drive {$0}
  13. set $3 to {$3}"\CPatrol\"
  14. // program group name for 3.1 install
  15. set $4 to "Online Services"
  16. // desktop icon name for win95 install
  17. set $5 to "Cyber Patrol - FREE Trial!"
  18.  
  19. // get config data from: 1-{$0}.ini, 2-path($0)cdlink.ini, 3-\autorun.inf
  20. set $6 to pathname {$0}
  21. set $2 to filebase {$0}
  22. set $2 to {$6}{$2}".ini"
  23. set $6 to inifile {$2} "Tlccp" "Desc"
  24. set $7 to inifile {$2} "Tlccp" "Link"
  25. set $2 to pathname {$0}
  26. set $2 to {$2}cdlink.ini
  27. set $6 to inifile {$2} "Default" "Desc" {$6}
  28. set $6 to inifile {$2} "Tlccp" "Desc" {$6}
  29. set $7 to inifile {$2} "Tlccp" "Link" {$7}
  30. set $2 to drive {$0}
  31. set $2 to {$2}\autorun.inf
  32. set $6 to inifile {$2} "Tlccp" "Desc" {$6}
  33. set $7 to inifile {$2} "Tlccp" "Link" {$7}
  34. goto @configok if not equal {$6} ""
  35. message "Error" "No TLC-CP config info"
  36. stop
  37. @configok
  38.  
  39. // make sure cyber patrol is present on source disk
  40. goto @link if not exists {$3}"CP-SETUP.EXE"
  41.  
  42. // if we have already done link before, then skip, else mark and continue
  43. set $8 to inifile {%windir}Tlcpromo.ini "CyberPatrol" {$6}
  44. goto @link if not equal {$8} ""
  45. inifile {%windir}Tlcpromo.ini "CyberPatrol" {$6} "1"
  46.  
  47. // if there is an aol link already on desktop, then skip
  48. goto @nodesk if true {%win16}
  49. goto @link if exists {%windir}Desktop\{$5}.lnk
  50. @nodesk
  51.  
  52. // install the runlink client
  53. goto @runlink if exists {$3}"tlclink.exe"
  54. message "Error" "Unable to locate TLCLINK file"
  55. stop
  56. @runlink
  57. run {$3}"tlclink.exe"
  58.  
  59. // try to copy over the icon
  60. copy {$3}"CP-Setup.ICO" {%windir}Tlccp.ico
  61.  
  62. // create the desktop/program group link
  63. goto @icon2 if true {%pig16}
  64. // create desktop alias to link app for 32-bit
  65. shortcut {%windir}Desktop\{$5}.lnk {%windir}Tlclink.exe {%windir}Tlccp.ico "" {$3}cp-setup.exe|{$6}
  66. goto @icon3
  67. @icon2
  68. // create program group for 16-bit pig (cannot use shortcut)
  69. set $2 to '[CreateGroup("'{$4}'")][ShowGroup("'{$4}'",1)][AddItem("'{%windir}Tlclink.exe' '{$3}'cp-setup.exe|'{$6}'","'{$5}'","'{%windir}Tlccp.ico'")]'
  70. //message "dde" {$2}
  71. dde PROGMAN {$2}
  72. @icon3
  73.  
  74. // link to next application
  75. @link
  76. goto @link2 if equal {$7} ""
  77. shell {$7} ""
  78. @link2
  79. stop
  80.  
  81. //embed-tail//
  82.