home *** CD-ROM | disk | FTP | other *** search
/ On Hand / On_Hand_From_Softbank_1994_Release_2_Disc_2_1994.iso / 00178 / s / stfsetup.inf < prev    next >
INI File  |  1992-03-18  |  12KB  |  344 lines

  1. [UI Localizable Vars]
  2. ; name of the ini file. Shouldn't need to be internationalized.
  3. IniFileName = "setup.ini"
  4.  
  5. ; date if the ini file. Used to see whether or not we have run setup before
  6. IniFileDate = "1992-03-12"
  7.  
  8. ; All files which do not explicitly have their dates set in the file lists
  9. ; will use this date.
  10. SHIPDATE = "1992-03-12"
  11.  
  12. NoRoomText = "There is not enough room on your hard disk to install "+
  13.     "Microsoft Productivity Pack.  Please cancel Setup and remove files to make more room on your "+
  14.     "hard disk. "
  15.  
  16. ; Appears to the right of the file group sizes in custom dialog (e.g. 23K)
  17. Ksym = K
  18.  
  19. ; Bad path entered in the path dialog
  20. BadPath = "The location you have chosen to install Microsoft Productivity Pack in is "+
  21.     "invalid or not allowed.  Please check the drive and/or directory name."
  22.  
  23. ; Two bottom lines in the custom dialog. Do NOT modify the $(DISK_NEEDED)
  24. ; or the $(DISK_EXIST) strings. The are replaced at run time with the
  25. ; proper values
  26. DiskNeededLine = "Space Required: $(DISK_NEEDED)K."
  27. DiskExistLine = "Space Available: $(DISK_EXIST)K."
  28.  
  29. ; Title of setup error messages
  30. ErrorTitle = "Setup Message"
  31.  
  32. ; Help text and title for the cutom dialog. \n's force line feeds
  33. CustomHelpTitle = "Setup Help"
  34. CustomHelpText = "Setup is telling you that there is not enough room "+
  35.     "on your hard disk.\n\nPlease cancel Setup and remove other "+
  36.     "files from your hard disk, then run Setup again to do a "+
  37.     "complete installation.\n\nSee your Windows or DOS Documentation "+
  38.     "for information on how to remove files from your hard disk."
  39.  
  40. ; Help text and title for the path dialog. \n's force line feeds
  41. PathHelpTitle = "Help for Destination Path"
  42. PathHelpText = "Setup suggests you install Microsoft Productivity Pack in the "+
  43.     "$(DESTPATH) directory.\n\nTo change the location on your hard disk "+
  44.     "where Productivity Pack will be installed, type a drive letter "+
  45.     "(usually C), a colon (:), a backslash (\\), and then the name of "+
  46.     "the directory where you want to install Productivity Pack.  For "+
  47.     "example, type $(DESTPATH).\n\nIf you are unsure what to do, accept "+
  48.     "the suggested location of $(DESTPATH)."
  49.  
  50. ; Final dialog text
  51. FinishedText = "Microsoft Productivity Pack for Windows has been successfully installed!\n\n "+
  52.     "Choose Run Productivity Pack to start using the Productivity Pack tutorial now.  "+
  53.     "Choose Return to Windows to return to Windows without starting Productivity Pack.  "
  54.  
  55.  
  56. ; Message which comes up if we don't detect any hard disks on their system
  57. ; (so we cannot give a default path).
  58. HardDiskNotFound = "Cannot locate your hard disk.  Please choose the\n"+
  59.                 "OK button and then type the location, or cancel\n"+
  60.                 "Setup and check your computer's configuration."
  61.  
  62. ; What we set the default path string to in the previous case
  63. UNKNOWNPATH = "?"
  64.  
  65. ; Text of the path dialog
  66. DestinationText = "Setup installs files on your hard disk.  Choose the "+
  67.     "location where you want to install the Microsoft Productivity Pack "+
  68.     "files.\n\nTo change the suggested location, press the BACKSPACE "+
  69.     "key to delete characters, and then type the drive and directory "+
  70.     "where you want Microsoft Productivity Pack installed."
  71.  
  72. ; Cancel Setup dialog text
  73. ExitText = "Microsoft Productivity Pack may not be properly installed.   "+
  74.     "If you quit Setup now, you may have to run Setup again.\n\n"+
  75.     "Are you sure you want to cancel?  Choose Cancel Setup \n"+
  76.     "to cancel Setup, or choose Resume to return to the previous "+
  77.     "installation option."
  78.  
  79. ; Text of the dialog appearing while files are being copied
  80. DuringInstallText="Now would be a great time to fill out your "+
  81.     "registration card.  When you send it in, Microsoft will:\n\n"+
  82.     "  - Inform you of product updates.\n  - Offer you customer "+
  83.     "support.\n  - Provide you information about\n    related "+
  84.     "Microsoft products."
  85.  
  86. ; Default destination path for setup (drive letter is replaced with proper
  87. ; one
  88. DESTPATH = "C:\PRODPACK"
  89. DESTPATH2 = "C:\PROPAK31"
  90. LWINEXE = "lwin.exe"
  91.  
  92. ; Install failed because it either couldn't find files or couldn't write
  93. ; them to the destination
  94. InstallError1 = "Setup could not complete the installation.  \n\nPossibly "+
  95.     "the hard disk was full, there was a disk error in trying to "+
  96.     "update one of the files, or your Microsoft Productivity Pack disk is damaged."
  97.  
  98. ; SO little disk space that we couldn't even add to the win.ini or progman
  99. ; Also COULD be because disk error writing the above or to the winworks.exe
  100. InstallError3 = "Setup could not complete the installation.  Possibly "+
  101.     "the hard disk was full, or there was a disk error in trying to "+
  102.     "update one of the files."
  103.  
  104. ; Name of the progman group we create for Prod Pack
  105. ProgManGroup = "Productivity Pack 3.1"
  106.  
  107. ;  Title of Productivity Pack in the progman group
  108. GroupTitle = "Productivity Pack"
  109.  
  110. ; Filename of wpp.exe
  111. ProductExe = "prodpack.exe"
  112.  
  113. ; Setup title
  114. Setup_Title = "Microsoft Productivity Pack for Windows Setup"
  115.  
  116.  
  117. BadWindowPath = "Invalid Windows path in your AUTOEXEC.BAT file. "+
  118.         "It must contain a drive letter (c:\ for example)."
  119.  
  120. BadVersionWindows = "Productivity Pack requires Microsoft Windows version 3.1. "+
  121.         "Setup has detected that you are running a version of "+
  122.         "Windows other than 3.1."
  123. LWIN10Found = "Setup has detected the previous version of Productivity Pack on your machine.   The previous version (Productivity Pack version 1.0) will not work properly in Windows version 3.1.\n\nYou might want to remove it from your hard disk to save disk space. See your Windows documentation or the lessons in Productivity Pack version 3.1 "+
  124.     "for information on how to remove files from your hard disk."
  125.  
  126. ; # = Disk title, a file on the disk, name of directory if on network
  127. ; 720 K disk layout
  128. [Source Media Descriptions]
  129.     1 = "Microsoft Productivity Pack for Windows", TAGFILE = setup.exe, +
  130.         NETPATH = ""
  131.     2 = "Microsoft Productivity Pack Disk 2", TAGFILE = prodpack.ex$, +
  132.         NETPATH = ""
  133.  
  134. [Program Files]
  135. EXE = 2,prodpack.ex$,RENAME=prodpack.exe,SIZE=84624
  136. 2,wpp1.lw$,RENAME=wpp1.lwn,SIZE=95072
  137. 2,wpp2.lw$,RENAME=wpp2.lwn,SIZE=111008
  138. 2,wpp3.lw$,RENAME=wpp3.lwn,SIZE=16160
  139. 2,wpp4.lw$,RENAME=wpp4.lwn,SIZE=22672
  140. 2,wpp5.lw$,RENAME=wpp5.lwn,SIZE=10016
  141. 2,wppcbt.ex$,RENAME=wppcbt.exe,SIZE=116272
  142. 2,wpplib.dl$,RENAME=wpplib.dll,SIZE=97280
  143. 2,cbtlib3.dl$,RENAME=cbtlib3.dll,SIZE=16608
  144. 2,donato.tx$,RENAME=donato.txt,SIZE=700
  145. 2,invite.tx$,RENAME=invite.txt,SIZE=797
  146. 2,letter.tx$,RENAME=letter.txt,SIZE=547
  147. 2,markanty.tx$,RENAME=markanty.txt,SIZE=532
  148. 2,momlet.tx$,RENAME=momlet.txt,SIZE=738
  149. 2,mona.tx$,RENAME=mona.txt,SIZE=1440
  150. 2,question.tx$,RENAME=question.txt,SIZE=836
  151. 2,rchery.tx$,RENAME=rchery.txt,SIZE=450
  152. 2,speech.tx$,RENAME=speech.txt,SIZE=724
  153. 2,answers.cr$,RENAME=answers.crd,SIZE=712
  154. 2,address.cr$,RENAME=address.crd,SIZE=126
  155. 2,recruits.cr$,RENAME=recruits.crd,SIZE=1819
  156. 2,townfolk.cr$,RENAME=townfolk.crd,SIZE=2170
  157. 2,tbreport.tx$,RENAME=tbreport.txt,SIZE=1099
  158. 2,crimnals.cr$,RENAME=crimnals.crd,SIZE=674
  159. 2,tbnotes1.tx$,RENAME=tbnotes1.txt,SIZE=826
  160. 2,tbnotes2.tx$,RENAME=tbnotes2.txt,SIZE=940
  161. 2,tbnotes3.tx$,RENAME=tbnotes3.txt,SIZE=868
  162. 2,tbclues.tx$,RENAME=tbclues.txt,SIZE=353
  163. 2,crimes.cr$,RENAME=crimes.crd,SIZE=716
  164. 1,wppcbt.le$,RENAME=wppcbt.les,SIZE=261067
  165. 2,wppcbt2.le$,APPEND=wppcbt.les,SIZE=1000000
  166.  
  167.  
  168. [UI Temp Vars]
  169. ANYFILESEXIST = "FALSE"
  170. GROUPLIST = {"Program Files"}
  171.  
  172. [Shell Commands]
  173.     read-syms       "UI Localizable Vars"
  174.     read-syms       "UI Temp Vars"
  175.     set-title       $(Setup_Title)
  176.     set-subst       CustomHelpText = $(CustomHelpText)
  177.     set-subst       PathHelpText = $(PathHelpText)
  178.     set-subst       DestinationText = $(DestinationText)
  179.     set-subst       FinishedText = $(FinishedText)
  180.     set-subst       ExitText = $(ExitText)
  181.     set-subst       CompleteText = $(CompleteText)
  182.     set-subst       DuringInstallText = $(DuringInstallText)
  183.     set-subst       InsertDisk = $(InsertDisk)
  184.  
  185.     set fdbDoFileInstall = "YES"
  186.     set COPYCOMMDLG = "COPY"
  187.  
  188.     ui      start "InitStuff"
  189.     ui      start "FRunBefore"
  190.     set fRunBefore = $(ANSWER)
  191.  
  192.     ui      start "GetSystemDirectory"
  193.     ui      start "GetWindowsDirectory"
  194.     IfStr(I) $(ANSWER) == "NO"
  195.         set-subst szText = $(BadWindowPath)
  196.         ui      start "MessageBox"
  197.         goto "exit"
  198.     endif
  199.  
  200. welcome =  set from = welcome
  201.     ui      start "DetectWin31"
  202.     IfStr(I) $(ANSWER) == "NO"
  203.         set-subst szText = $(BadVersionWindows)
  204.         ui      start "MessageBox"
  205.         goto "exit"
  206.     endif
  207.     
  208.     ui      start   "Welcome"
  209.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  210.         ui  pop 1
  211.         goto "init"
  212.     else-ifstr(i) $(DLGEVENT) == "EXIT"
  213.         goto "quit"
  214.     else
  215.         install "Error - info"
  216.         goto error
  217.     endif
  218.  
  219. init =  Init-System     1, $(IniFileName)
  220.  
  221. path  = set from = path
  222.     ui  start "FixupDestPath" 
  223.     set ANSWER2 = $(ANSWER)
  224.     
  225.     set szParsePiece = $(DESTPATH)"\"$(LWINEXE)
  226.     ui      start   FExist
  227.     IfStr(I) $(ANSWER) == "YES"
  228.         set-subst szText = $(LWIN10Found)
  229.         ui      start "MessageBox"
  230.         set DESTPATH = $(DESTPATH2)
  231.         ui  start "FixupDestPath" 
  232.     endif
  233.     
  234.     IfStr(I) $(ANSWER2) == "NO"
  235.         set-subst szText = $(HardDiskNotFound)
  236.         ui      start "MessageBox"
  237.         set EditTextIn = $(UNKNOWNPATH)
  238.         set EditFocus = ALL               ; END | START | ALL
  239.     else
  240.         set EditTextIn = $(DESTPATH)
  241.         set EditFocus = END               ; END | START | ALL
  242.     endif
  243.     
  244.     set-subsym HelpText = $(PathHelpText)
  245.     set HelpTitle = $(PathHelpTitle)
  246.     ui        start   "Path"
  247.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  248.         ui  pop 1
  249.         set DESTPATH = $(EditTextOut)
  250.         ui      start   "StartWait"
  251.         ui      start   "DoFileLookups" 
  252.         ui      start   "EndWait"
  253. EnoughSpace=    ui      start   "FEnoughSpace"
  254.         ifstr(i) $(ANSWER) == "YES"
  255.             goto "installnow1"        
  256.         endif
  257.     else-ifstr(i) $(DLGEVENT) == "EXIT"
  258.         set DESTPATH = $(EditTextOut)
  259.         goto "quit"
  260.     else
  261.         install "Error - edit"
  262.         goto error
  263.     endif
  264.  
  265. sizedlg = set from = sizedlg
  266.     set HelpText = $(CustomHelpText)
  267.     set HelpTitle = $(CustomHelpTitle)
  268.     ui      start   "SizeError"
  269.     ui      pop     1
  270.     goto "exit"
  271.  
  272. quit  = ui      start  "Quit"
  273.     ifstr(i) $(DLGEVENT) == "RESUME"
  274.         ui  pop 1
  275.         goto $(from)
  276.     else
  277.         goto "exit"
  278.     endif
  279.  
  280. exit =  exit
  281.  
  282. error = write-symtab "shl-st2.new"
  283.     exit
  284.  
  285. installnow1 =   set-subst szText = $(DuringInstallText)
  286.  
  287.     ifstr(i) $(fdbDoFileInstall) != "YES"
  288.         goto exitdlg
  289.     endif
  290.     ui      start   "Modeless"
  291.  
  292.     install "Install-Files"
  293.     ifstr(I) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  294.         goto "exit"
  295.     endif
  296.     ifstr(I) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  297.         set-subst szText = $(InstallError1)
  298.         ui      start   "MessageBox"
  299.         goto "exit"
  300.     endif
  301.  
  302.     ui      pop     1
  303.  
  304.     ui      start   "StartWait"
  305.     install "Install-ProgMan"
  306.     ui      start   "EndWait"
  307.     ifstr(I) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  308.         set-subst szText = $(InstallError3)
  309.         ui      start   "MessageBox"
  310.         goto "exit"     
  311.     endif
  312.  
  313. exitdlg =       ui        start   "Exit"
  314.     ui  pop 1
  315.     ifstr(i) $(DLGEVENT) == "R"
  316.         set szPath = $(DESTPATH)
  317.         ui      start   "ChDriveDir"
  318.         set szFile = $(DESTPATH)"\"$(ProductExe)
  319.         ui      start   "RunExe"
  320.     endif
  321. exit
  322.  
  323. [Install-ProgMan]
  324. ;       Add extentions to ini
  325. CreateIniSection "WIN.INI", "Productivity Pack"
  326. CreateIniKeyValue "WIN.INI", "Productivity Pack", "Default Name", $(STF_CD_NAME), O
  327.  
  328. ;       Add group and files to group
  329. CreateProgManGroup      $(ProgManGroup), "" 
  330. ShowProgManGroup        $(ProgManGroup), "1" 
  331. CreateProgManItem       $(ProgManGroup), $(GroupTitle), $(DESTPATH)"\"$(ProductExe)
  332. Close-System "Program Files", "EXE", $(DESTPATH), "291", "191"
  333. endif
  334. exit
  335.  
  336. [Install-Files]
  337. set STF_DATE = $(SHIPDATE)
  338. set STF_OVERWRITE = OLDER
  339. AddSectionFilesToCopyList "Program Files", $(STF_SRCDIR), $(DESTPATH)
  340. CopyFilesInCopyList
  341. exit
  342.  
  343.  
  344.