home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Multimedia Development Kit 0.9 beta / MDKBeta_DevEnvironment.iso / setup.inf < prev    next >
Encoding:
Text File  |  1990-11-08  |  32.7 KB  |  690 lines

  1. ;----------------------------------------------------------------------
  2. ; MDK SETUP.INF FILE
  3. ;
  4. ; Copyright Microsoft Corporation, 1990. All rights reserved.
  5. ;----------------------------------------------------------------------
  6.  
  7. ; Set window title. The same title will be used for all windows.
  8. WindowTitle ("MDK Setup")
  9.  
  10. ; Set Version Variable
  11. SetVariable(MDKVersion,"59")
  12.  
  13. ; Display opening message
  14. DisplayMessage ("The Multimedia Development Kit consists of two components. This setup "
  15.                  "utility allows the components to be installed independently of each "
  16.                  "other for best opt- imization of your development environment. The "
  17.                  "components are:%n%n"
  18.                  "Data Preparation Tools:%n"
  19.                  "%tThis set of tools consists of BitEdit (a device independant bitmap%n"
  20.                  "%teditor), PalEdit (a palette editor for DIBs and used with BitEdit),%n"
  21.                  "%tWaveEdit (a Microsoft WAVE file editor), FileWalk (a RIFF file viewer%n"
  22.                  "%teditor), and Convert (a file conversion utility)%n%n"
  23.                  "Multimedia Windows Software Development Kit:%n"
  24.                  "%tThis is a collection of libraries, debugging aids, and sample source%n"
  25.                  "%tdesigned to help you create Multimedia Windows applications.",
  26.                  "Click on {\b OK} or press {\b Enter} to continue. To abort the MDK "
  27.                  "Setup, click on the {\b Exit} button at the bottom right corner of the "
  28.                  "screen, or press {\b F3}. You can always obtain help by clicking on the "
  29.                  "{\b Help} button or pressing {\b F1}.")
  30.  
  31. ; Get the Windows paths
  32. GetWinPath (WindowsPath)
  33. GetWinSystemPath (WindowsSystemPath)
  34.  
  35. ; Set the defaults
  36. SetVariable (InstallTools, "Yes")
  37. SetVariable (ToolsPath, "C:\MDKTOOLS")
  38. SetVariable (InstallSDK, "Yes")
  39. SetVariable (SDKPath, "C:\WINDEV")
  40. SetVariable (DebugPath, "C:\WINDEV\DEBUG")
  41. SetVariable (NoDebugPath, "C:\WINDEV\NODEBUG")
  42. SetVariable (IncludePath, "C:\WINDEV\INCLUDE")
  43. SetVariable (LibraryPath, "C:\WINDEV\LIB")
  44. SetVariable (InstallWinHelp, "Yes")
  45. SetVariable (InstallCode, "Yes")
  46. SetVariable (CodePath, "C:\WINDEV\MMSAMPLE")
  47. SetVariable (InstallResource, "Yes")
  48. SetVariable (ResourcePath, <WindowsPath> "\MMDATA")
  49. SetVariable (SndBlstInt,3)
  50. SetVariable (SndBlstPort,220)
  51. SetVariable (DoUpgrade,"No")
  52. SetVariable (AddVTDAPI,"No")
  53.  
  54. ;
  55. ; Prompt for all the installation options
  56. ;
  57.  
  58. GetFromProfileIni(Version,"system.ini","MDK Setup","Version","0")
  59. IfEqualGoto(<Version>,<MDKVersion>,GetOptions)
  60. IfNotEqualGoto(<Version>,"0",UpgradeWin)
  61. UpgradeWin:
  62. AskYesNo (Answer,"Yes","Setup has found Windows 3.0 in the path " <WindowsPath> ".  Do you want "
  63.                        "to upgrade to Multimedia Windows now?",
  64.                        "Click on {\b Yes} or press {\b Enter} to upgrade to Multimedia Windows. "
  65.                        "Click on {\b No} to continue without upgrading to Multimedia Windows. "
  66.                        "To abort Setup, "
  67.                        "click on the {\b Exit} button at the bottom right corner of the screen, or "
  68.                        "press {\b F3}.")
  69.  
  70. IfNotEqualGoto(<Answer>,"Yes",GetOptions)
  71.  
  72. SetVariable(DoUpgrade,"Yes")
  73.  
  74. CheckVTDAPI:
  75. GetFromProfileIni(CurSoundDrv,"system.ini","boot","sound.drv","")
  76. IfNotEqualGoto(<CurSoundDrv>,"sound.drv",StartCopy)
  77. SetVariable(AddVTDAPI,"Yes")
  78.  
  79. StartCopy:
  80. OpenCopyProgress("","Please wait while MDK Setup copies files to your hard disk.")
  81.  
  82. IfFileExistsGoto ("mwindows\dib.drv", D1MWIN)
  83. PromptChangeDisk("Multimedia Development Kit Disk #1","mwindows\dib.drv","")
  84.  
  85. D1MWIN:
  86. SetProgressBarMsg("Copying Multimedia Windows System Files")
  87. CopyFile("mwindows\mediaman.dll",<WindowsSystemPath>"\mediaman.dll",1000)
  88. CopyFile("mwindows\medbits.mmh",<WindowsSystemPath>"\medbits.mmh",1000)
  89. CopyFile("mwindows\medwave.mmh",<WindowsSystemPath>"\medwave.mmh",1000)
  90. CopyFile("mwindows\mmp.dll",<WindowsSystemPath>"\mmp.dll",1000)
  91. CopyFile("mwindows\mmsound.drv",<WindowsSystemPath>"\mmsound.drv",1000)
  92. CopyFile("mwindows\mmsystem.dll",<WindowsSystemPath>"\mmsystem.dll",1000)
  93. CopyFile("mwindows\mmtask.tsk",<WindowsSystemPath>"\mmtask.tsk",1000)
  94. CopyFile("mwindows\vtdapi.386",<WindowsSystemPath>"\vtdapi.386",1000)
  95. CopyFile("mwindows\wincom.dll",<WindowsSystemPath>"\wincom.dll",1000)
  96.  
  97. SetProgressBarMsg("Copying Multimedia Windows Drivers")
  98. CopyFile("mwindows\adlib.drv",<WindowsSystemPath>"\adlib.drv",1000)
  99. CopyFile("mwindows\dib.drv",<WindowsSystemPath>"\dib.drv",1000)
  100. CopyFile("mwindows\ibmjoy.drv",<WindowsSystemPath>"\ibmjoy.drv",1000)
  101. CopyFile("mwindows\mcga256.drv",<WindowsSystemPath>"\mcga256.drv",1000)
  102. CopyFile("mwindows\mcicda.drv",<WindowsSystemPath>"\mcicda.drv",1000)
  103. CopyFile("mwindows\mcimmp.drv",<WindowsSystemPath>"\mcimmp.drv",1000)
  104. CopyFile("mwindows\mcipionr.drv",<WindowsSystemPath>"\mcipionr.drv",1000)
  105. CopyFile("mwindows\mciseq.drv",<WindowsSystemPath>"\mciseq.drv",1000)
  106. CopyFile("mwindows\mciwave.drv",<WindowsSystemPath>"\mciwave.drv",1000)
  107. CopyFile("mwindows\mmv7vga.drv",<WindowsSystemPath>"\mmv7vga.drv",1000)
  108. CopyFile("mwindows\mpu401.drv",<WindowsSystemPath>"\mpu401.drv",1000)
  109. CopyFile("mwindows\sndblst.drv",<WindowsSystemPath>"\sndblst.drv",1000)
  110. CopyFile("mwindows\timer.drv",<WindowsSystemPath>"\timer.drv",1000)
  111. CopyFile("mwindows\vgagrey.drv",<WindowsSystemPath>"\vgagrey.drv",1000)
  112.  
  113. SetProgressBarMsg("Copying Multimedia Windows Control Panel Files")
  114. CopyFile("mwindows\cpl.exe",<WindowsPath>"\cpl.exe",1000)
  115. CopyFile("mwindows\disp.cpl",<WindowsSystemPath>"\disp.cpl",1000)
  116. CopyFile("mwindows\drivers.cpl",<WindowsSystemPath>"\drivers.cpl",1000)
  117. CopyFile("mwindows\joystick.cpl",<WindowsSystemPath>"\joystick.cpl",1000)
  118. CopyFile("mwindows\midi.cpl",<WindowsSystemPath>"\midi.cpl",1000)
  119. CopyFile("mwindows\mmcpl.cpl",<WindowsSystemPath>"\mmcpl.cpl",1000)
  120. CopyFile("mwindows\snd.cpl",<WindowsSystemPath>"\snd.cpl",1000)
  121. CopyFile("mwindows\ssdlg.cpl",<WindowsSystemPath>"\ssdlg.cpl",1000)
  122. CopyFile("mwindows\midimap.ini",<WindowsPath>"\midimap.ini",1000)
  123.  
  124. SetProgressBarMsg("Copying Multimedia Windows Screen Savers")
  125. CopyFile("mwindows\scrnsvr.exe",<WindowsPath>"\scrnsvr.exe",1000)
  126. CopyFile("mwindows\ssclock.scr",<WindowsSystemPath>"\ssclock.scr",1000)
  127. CopyFile("mwindows\ssclrwsh.scr",<WindowsSystemPath>"\ssclrwsh.scr",1000)
  128. CopyFile("mwindows\ssdimmer.scr",<WindowsSystemPath>"\ssdimmer.scr",1000)
  129. CopyFile("mwindows\sslissju.scr",<WindowsSystemPath>"\sslissju.scr",1000)
  130. CopyFile("mwindows\ssmarque.scr",<WindowsSystemPath>"\ssmarque.scr",1000)
  131. CopyFile("mwindows\ssmelt.scr",<WindowsSystemPath>"\ssmelt.scr",1000)
  132. CopyFile("mwindows\ssmyst.scr",<WindowsSystemPath>"\ssmyst.scr",1000)
  133. CopyFile("mwindows\ssrocket.scr",<WindowsSystemPath>"\ssrocket.scr",1000)
  134. CopyFile("mwindows\ssrsedsk.scr",<WindowsSystemPath>"\ssrsedsk.scr",1000)
  135. CopyFile("mwindows\ssshwpct.scr",<WindowsSystemPath>"\ssshwpct.scr",1000)
  136. CopyFile("mwindows\ssstars.scr",<WindowsSystemPath>"\ssstars.scr",1000)
  137.  
  138. SetProgressBarMsg("Copying Multimedia Windows Accessories")
  139. CopyFile("mwindows\mmclock.exe",<WindowsPath>"\mmclock.exe",1000)
  140. CopyFile("mwindows\mmwinver.exe",<WindowsPath>"\mmwinver.exe",1000)
  141. CopyFile("mwindows\mplayer.exe",<WindowsPath>"\mplayer.exe",1000)
  142. CopyFile("mwindows\winhelp.exe",<WindowsPath>"\winhelp.exe",1000)
  143.  
  144. SetProgressBarMsg("Copying MCGA Fonts")
  145. CopyFile("mwindows\lrfix.fon",<WindowsSystemPath>"\lrfix.fon",1000)
  146. CopyFile("mwindows\lrhelv.fon",<WindowsSystemPath>"\lrhelv.fon",1000)
  147. CopyFile("mwindows\lrhelvb.fon",<WindowsSystemPath>"\lrhelvb.fon",1000)
  148. CopyFile("mwindows\lroem.fon",<WindowsSystemPath>"\lroem.fon",1000)
  149. CopyFile("mwindows\lrsys.fon",<WindowsSystemPath>"\lrsys.fon",1000)
  150.  
  151. IfFileExistsGoto ("mwindows\sysini.txt", D2MWIN)
  152. PromptChangeDisk("Multimedia Development Kit Disk #2","mwindows\sysini.txt","")
  153.  
  154. D2MWIN:
  155. SetProgressBarMsg("Copying ReadMe Files")
  156. CopyFile("mwindows\sysini.txt",<WindowsSystemPath>"\sysini.txt",1000)
  157. CopyFile("mwindows\sysini2.txt",<WindowsSystemPath>"\sysini2.txt",1000)
  158. CopyFile("mwindows\sysini3.txt",<WindowsSystemPath>"\sysini3.txt",1000)
  159. CopyFile("mwindows\winini.txt",<WindowsPath>"\winini.txt",1000)
  160. CopyFile("mwindows\winini2.txt",<WindowsPath>"\winini2.txt",1000)
  161. CopyFile("mwindows\setup.exe",<WindowsPath>"\setup.exe",1000)
  162. CopyFile("mwindows\setup.inf",<WindowsPath>"\setup.inf",1000)
  163.  
  164. SetProgressBarMsg("Copying Help Files")
  165. CopyFile("mwindows\deskjet.hlp",<WindowsPath>"\deskjet.hlp",1000)
  166. CopyFile("mwindows\finstall.hlp",<WindowsPath>"\finstall.hlp",1000)
  167. CopyFile("mwindows\hppcl.hlp",<WindowsPath>"\hppcl.hlp",1000)
  168. CopyFile("mwindows\lanman.hlp",<WindowsPath>"\lanman.hlp",1000)
  169. CopyFile("mwindows\netware.hlp",<WindowsPath>"\netware.hlp",1000)
  170. CopyFile("mwindows\paintjet.hlp",<WindowsPath>"\paintjet.hlp",1000)
  171. CopyFile("mwindows\pscript.hlp",<WindowsPath>"\pscript.hlp",1000)
  172. CopyFile("mwindows\tty.hlp",<WindowsPath>"\tty.hlp",1000)
  173. CopyFile("mwindows\winhelp.hlp",<WindowsPath>"\winhelp.hlp",1000)
  174.  
  175. SetProgressBarMsg("Copying Data Files")
  176. MakePath(<WindowsPath>"\mmdata")
  177. CopyFile("mwindows\blocks.wav",<WindowsPath>"\mmdata\blocks.wav",1000)
  178. CopyFile("mwindows\clock.wav",<WindowsPath>"\mmdata\clock.wav",1000)
  179. CopyFile("mwindows\door.wav",<WindowsPath>"\mmdata\door.wav",1000)
  180. CopyFile("mwindows\gong.wav",<WindowsPath>"\mmdata\gong.wav",1000)
  181. CopyFile("mwindows\jawharp.wav",<WindowsPath>"\mmdata\jawharp.wav",1000)
  182. CopyFile("mwindows\laser.wav",<WindowsPath>"\mmdata\laser.wav",1000)
  183. CopyFile("mwindows\ohoh.wav",<WindowsPath>"\mmdata\ohoh.wav",1000)
  184. CopyFile("mwindows\train.wav",<WindowsPath>"\mmdata\train.wav",1000)
  185. CopyFile("mwindows\clavier.mid",<WindowsPath>"\mmdata\clavier.mid",1000)
  186.  
  187. ; Done Copying
  188. CloseCopyProgress()
  189.  
  190. ; Add device=vtdapi.386 to SYSTEM.INI
  191. IfNotEqualGoto(<AddVTDAPI>,"Yes",ModifySysIni)
  192. AddToProfileIni("system.ini","386enh","<<dev>>","vtdapi.386")
  193. TranslateFile(<WindowsPath>"\system.ini",<WindowsPath>"\system.tmp",1000,"dev","device")
  194. CopyFile(<WindowsPath>"\system.tmp",<WindowsPath>"\system.ini",1000)
  195. DeleteFile(<WindowsPath>"\system.tmp")
  196.  
  197. ModifySysIni:
  198. AddToProfileIni("system.ini","boot","sound.drv","mmsound.drv")
  199. AddToProfileIni("system.ini","drivers","timer","timer.drv")
  200. AddToProfileIni("system.ini","drivers","joystick","ibmjoy.drv")
  201. AddToProfileIni("system.ini","drivers","wave","sndblst.drv")
  202. AddToProfileIni("system.ini","drivers","midi","adlib.drv")
  203. AddToProfileIni("system.ini","mci","cdaudio","mcicda.drv")
  204. AddToProfileIni("system.ini","mci","graphic","mcimmp.drv")
  205. AddToProfileIni("system.ini","mci","videodisc","mcipionr.drv")
  206. AddToProfileIni("system.ini","mci","waveaudio","mciwave.drv")
  207. AddToProfileIni("system.ini","mci","sequencer","mciseq.drv")
  208. AddToProfileIni("system.ini","mci extensions","graphic","mmm")
  209.  
  210. ; retain old Sndblst.Drv int and port settings if they exist, otherwise
  211. ; use defaults
  212. GetFromProfileIni(CurSndBlstInt,"system.ini","sndblst.drv","int",<SndBlstInt>)
  213. GetFromProfileIni(CurSndBlstPort,"system.ini","sndblst.drv","port",<SndBlstPort>)
  214. AddToProfileIni("system.ini","sndblst.drv","int",<CurSndBlstInt>)
  215. AddToProfileIni("system.ini","sndblst.drv","port",<CurSndBlstPort>)
  216.  
  217. ; Modify WIN.INI, preserving old sounds if they exist, otherwise use
  218. ; defaults
  219. GetFromWinIni(CurSound,"sounds","SystemStart",<WindowsPath>"\mmdata\door.wav")
  220. AddToWinIni("sounds","SystemStart",<CurSound>)
  221.  
  222. GetFromWinIni(CurSound,"sounds","SystemDefault",<WindowsPath>"\mmdata\ohoh.wav")
  223. AddToWinIni("sounds","SystemDefault",<CurSound>)
  224.  
  225. GetFromWinIni(CurSound,"sounds","SystemQuestion",<WindowsPath>"\mmdata\ohoh.wav")
  226. AddToWinIni("sounds","SystemQuestion",<CurSound>)
  227.  
  228. GetFromWinIni(CurSound,"sounds","SystemAsterisk",<WindowsPath>"\mmdata\gong.wav")
  229. AddToWinIni("sounds","SystemAsterisk",<CurSound>)
  230.  
  231. GetFromWinIni(CurSound,"sounds","SystemExclamation",<WindowsPath>"\mmdata\train.wav")
  232. AddToWinIni("sounds","SystemExclamation",<CurSound>)
  233.  
  234. GetFromWinIni(CurSound,"sounds","SystemHand",<WindowsPath>"\mmdata\blocks.wav")
  235. AddToWinIni("sounds","SystemHand",<CurSound>)
  236.  
  237. GetFromWinIni(CurSound,"sounds","MMClockAlarm",<WindowsPath>"\mmdata\clock.wav")
  238. AddToWinIni("sounds","MMClockAlarm",<CurSound>)
  239.  
  240. GetFromWinIni(CurSound,"sounds","MMClockHalf",<WindowsPath>"\mmdata\blocks.wav")
  241. AddToWinIni("sounds","MMClockHalf",<CurSound>)
  242.  
  243. GetFromWinIni(CurSound,"sounds","MMClockHour",<WindowsPath>"\mmdata\gong.wav")
  244. AddToWinIni("sounds","MMClockHour",<CurSound>)
  245.  
  246. GetFromWinIni(CurSound,"sounds","MMClockQuarter",<WindowsPath>"\mmdata\laser.wav")
  247. AddToWinIni("sounds","MMClockQuarter",<CurSound>)
  248.  
  249. AddToWinIni("Windows Help","M_WindowPosition","[175,0,465,480,0]")
  250. AddToWinIni("Windows Help","H_WindowPosition","[213,160,213,160,0]")
  251.  
  252. ; Add Multimedia Accessories to Program Manager
  253. OpenProgmanProgress ("MDK Setup is modifying the Program Manager groups.",
  254.                       "MDK Setup is modifying the {\b Program Manager} groups - "
  255.                       "Please be patient.")
  256. OpenProgmanGroup("Main",delete)
  257. AddProgmanItem("File Manager",<WindowsPath>"\winfile.exe",<WindowsPath>"\winfile.exe",0)
  258. AddProgmanItem("Control Panel",<WindowsPath>"\cpl.exe",<WindowsPath>"\cpl.exe",0)
  259. AddProgmanItem("Print Manager",<WindowsPath>"\printman.exe",<WindowsPath>"\printman.exe",0)
  260. AddProgmanItem("Clipboard",<WindowsPath>"\clibbrd.exe",<WindowsPath>"\clipbrd.exe",0)
  261. AddProgmanItem("DOS Prompt","command.com",<WindowsPath>"\progman.exe",1)
  262. AddProgmanItem("Windows Setup",<WindowsPath>"setup.exe",<WindowsPath>"\setup.exe",0)
  263. AddProgmanItem("Windows Help",<WindowsPath>"\winhelp.exe switch.hlp",<WindowsPath>"\winhelp.exe",0)
  264. AddProgmanItem("Read Me",<WindowsPath>"\notepad.exe readme.txt",<WindowsPath>"\notepad.exe",0)
  265.  
  266. OpenProgmanGroup("Accessories",delete)
  267. AddProgmanItem("Write",<WindowsPath>"\write.exe",<WindowsPath>"\write.exe",0)
  268. AddProgmanItem("Paintbrush",<WindowsPath>"\pbrush.exe",<WindowsPath>"\pbrush.exe",0)
  269. AddProgmanItem("Terminal",<WindowsPath>"\terminal.exe",<WindowsPath>"\terminal.exe",0)
  270. AddProgmanItem("Notepad",<WindowsPath>"\notepad.exe",<WindowsPath>"\notepad.exe",0)
  271. AddProgmanItem("Recorder",<WindowsPath>"\recorder.exe",<WindowsPath>"\recorder.exe",0)
  272. AddProgmanItem("Cardfile",<WindowsPath>"\cardfile.exe",<WindowsPath>"\cardfile.exe",0)
  273. AddProgmanItem("Calendar",<WindowsPath>"\calendar.exe",<WindowsPath>"\calendar.exe",0)
  274. AddProgmanItem("Calculator",<WindowsPath>"\calc.exe",<WindowsPath>"\calc.exe",0)
  275. AddProgmanItem("Clock",<WindowsPath>"\mmclock.exe",<WindowsPath>"\mmclock.exe",0)
  276. AddProgmanItem("PIF Editor",<WindowsPath>"\pifedit.exe",<WindowsPath>"\pifedit.exe",0)
  277. AddProgmanItem("Media Player",<WindowsPath>"\mplayer.exe",<WindowsPath>"\mplayer.exe",0)
  278. CloseProgmanProgress()
  279.  
  280. ;Multimedia Windows upgrade done
  281. AddToProfileIni("system.ini","MDK Setup","Version",<MDKVersion>)
  282.  
  283. GetOptions:
  284. ; Question is a variable containing all the settings for the Confirm command
  285. SetVariable (Question, "")
  286.  
  287. ; Put up main prompt
  288. MDKMainPrompt (InstallTools, <InstallTools>,
  289.                 ToolsPath, <ToolsPath>,
  290.                 InstallSDK, <InstallSDK>,
  291.                 SDKPath, <SDKPath>,
  292.                 DebugPath, <DebugPath>,
  293.                 NoDebugPath, <NoDebugPath>,
  294.                 IncludePath, <IncludePath>,
  295.                 LibraryPath, <LibraryPath>,
  296.                 "{To select or unselect a component, click on its corresponding checkbox. "
  297.                 "To modify an installation path, select the corresponding edit box and enter "
  298.                 "a full path. When everything is correct, click on {\b OK} or press {\b Enter} "
  299.                 "to continue.\par\par"
  300.                 "Initially, MDK Setup selects the {\i Windows SDK} directories to place the "
  301.                 "MSDK.",
  302.                 "At least one of the paths is invalid. You must specify a drive "
  303.                 "letter and a directory from the root of the drive for each path. "
  304.                 "The path that you enter cannot be more than 32 characters long.")
  305.  
  306. ; Append results of MDKMainPrompt to Question variable 
  307.  
  308. SetVariable (Question, <Question> "Install Data Preparation Tools:%t" <InstallTools> "%n")
  309.  
  310. IfNotEqualGoto (<InstallTools>, "Yes", NoInstallToolsConfirm)
  311. SetVariable (Question, <Question> "%tPath for Tools:%t%t" <ToolsPath> "%n")
  312. NoInstallToolsConfirm:
  313.  
  314. SetVariable (Question, <Question> "Install Software Development Kit:%t" <InstallSDK> "%n")
  315.  
  316. IfNotEqualGoto (<InstallSDK>, "Yes", NoInstallSDKConfirm)
  317. SetVariable (Question, <Question> "%tPath for SDK Files:%t%t" <SDKPath> "%n")
  318. SetVariable (Question, <Question> "%tPath for Debug Files:%t" <DebugPath> "%n")
  319. SetVariable (Question, <Question> "%tPath for NoDebug Files:%t" <NoDebugPath> "%n")
  320. SetVariable (Question, <Question> "%tPath for Include Files:%t" <IncludePath> "%n")
  321. SetVariable (Question, <Question> "%tPath for Library Files:%t" <LibraryPath> "%n")
  322. NoInstallSDKConfirm:
  323.  
  324. ; Put up appropritate options prompt.
  325. IfNotEqualGoto (<InstallSDK>, "Yes", NoSampleCodePrompt)
  326.  
  327. ; Prompt with sample code 
  328. MDKOptPrompt (InstallWinHelp, <InstallWinHelp>,
  329.               InstallCode, <InstallCode>,
  330.               CodePath, <CodePath>,
  331.               InstallResource, <InstallResource>,
  332.               ResourcePath, <ResourcePath>,
  333.               "{To select or unselect an option, click on its corresponding checkbox. "
  334.               "To modify an installation path, select the corresponding edit box and enter "
  335.               "a full path. When everything is correct, click on {\b OK} or press {\b Enter} "
  336.               "to continue.}", 
  337.               "At least one of the paths is invalid. You must specify a drive "
  338.               "letter and a directory from the root of the drive for each path. "
  339.               "The path that you enter cannot be more than 32 characters long.")
  340.  
  341.  
  342. ; Add sample code path to Question variable
  343. IfNotEqualGoto (<InstallCode>, "Yes", NoInstallCodeConfirm)
  344. SetVariable (Question, <Question> "%tPath for Sample Code:%t" <CodePath> "%n")
  345. NoInstallCodeConfirm:
  346.  
  347. Goto (DidOptPrompt)
  348.  
  349. NoSampleCodePrompt:
  350.  
  351. ; Prompt without sample code
  352. MDKOptPrompt (InstallWinHelp, <InstallWinHelp>,
  353.               InstallResource, <InstallResource>,
  354.               ResourcePath, <ResourcePath>,
  355.               "{To select or unselect an option, click on its corresponding checkbox.\par "
  356.               "To modify an installation path, select the corresponding edit box and enter "
  357.               "a full path. When everything is correct, click on {\b OK} or press {\b Enter} "
  358.               "to continue.}", 
  359.               "At least one of the paths is invalid. You must specify a drive "
  360.               "letter and a directory from the root of the drive for each path. "
  361.               "The path that you enter cannot be more than 32 characters long.")
  362.  
  363. DidOptPrompt:
  364.  
  365. ; Append results of MDKOptPrompt to Question variable 
  366. SetVariable (Question, <Question> "Install WinHelp format help file:%t" <InstallWinHelp> "%n")
  367.  
  368. IfNotEqualGoto (<InstallResource>, "Yes", NoInstallResourceConfirm)
  369. SetVariable (Question, <Question> "Path for Sample Resources:%t%t" <ResourcePath> "%n")
  370. NoInstallResourceConfirm:
  371.  
  372. ; Now confirm that options are correct
  373. Confirm (OptionsOK, "No", <Question>, 
  374.          "Click on {\b Yes} or type {\b 'Y'} if the options are OK, or click on {\b No} or "
  375.          "type {\b 'N'} or {\b Enter} to reenter them.")
  376.  
  377. IfEqualGoto (<OptionsOK>, "No", GetOptions)
  378.  
  379. ;
  380. ; Copy all the files and make the directory structure
  381. ;
  382.  
  383. OpenCopyProgress ("",
  384.                     "Please wait while MDK Setup copies files to your hard disk.")
  385.  
  386. ; Copy the tools files.
  387.  
  388. IfNotEqualGoto (<InstallTools>, "Yes", NoInstallToolsCopy)
  389.  
  390. SetProgressBarMsg ("MDK Setup is installing the Data Preparation Tools")
  391.  
  392. IfFileExistsGoto("tools\bitedit.exe",D3TOOLS)
  393. PromptChangeDisk("Multimedia Development Kit Disk #3","tools\bitedit.exe","")
  394.  
  395. D3TOOLS:
  396. MakePath (<ToolsPath>)
  397. CopyFile ("TOOLS\BITEDIT.EXE", <ToolsPath> "\BITEDIT.EXE", 1000)
  398. CopyFile ("TOOLS\CONVERT.EXE", <ToolsPath> "\CONVERT.EXE", 1000)
  399. CopyFile ("TOOLS\FILEWALK.EXE", <ToolsPath> "\FILEWALK.EXE", 1000)
  400. CopyFile ("TOOLS\PALEDIT.EXE", <ToolsPath> "\PALEDIT.EXE", 1000)
  401. CopyFile ("TOOLS\WAVEEDIT.EXE", <ToolsPath> "\WAVEEDIT.EXE", 1000)
  402. CopyFile ("TOOLS\FWTHAND.DLL", <ToolsPath> "\FWTHAND.DLL", 1000)
  403. CopyFile ("TOOLS\FWTYPE.DLL", <ToolsPath> "\FWTYPE.DLL", 1000)
  404. CopyFile ("TOOLS\WRKBENCH.DLL", <ToolsPath> "\WRKBENCH.DLL", 1000)
  405. CopyFile ("TOOLS\MEDMIDI.MMH", <WindowsSystemPath> "\MEDMIDI.MMH", 1000)
  406. CopyFile ("TOOLS\MEDIMP.MMH", <WindowsSystemPath> "\MEDIMP.MMH", 1000)
  407. CopyFile ("TOOLS\MEDIMP.INI", <WindowsPath> "\MEDIMP.INI", 1000)
  408. CopyFile ("TOOLS\ADIMPORT.FLT", <ToolsPath> "\ADIMPORT.FLT", 1000)
  409. CopyFile ("TOOLS\CGMIMP.FLT", <ToolsPath> "\CGMIMP.FLT", 1000)
  410. CopyFile ("TOOLS\DRWIMP.FLT", <ToolsPath> "\DRWIMP.FLT", 1000)
  411. CopyFile ("TOOLS\EPSIMP.FLT", <ToolsPath> "\EPSIMP.FLT", 1000)
  412. CopyFile ("TOOLS\HPGLIMP.FLT", <ToolsPath> "\HPGLIMP.FLT", 1000)
  413. CopyFile ("TOOLS\LOTUSIMP.FLT", <ToolsPath> "\LOTUSIMP.FLT", 1000)
  414. CopyFile ("TOOLS\TIFFIMP.FLT", <ToolsPath> "\TIFFIMP.FLT", 1000)
  415. CopyFile ("TOOLS\STANDARD.PAL", <ToolsPath> "\STANDARD.PAL", 1000)
  416. CopyFile ("TOOLS\VGA.PAL", <ToolsPath> "\VGA.PAL", 1000)
  417.  
  418. IfEqualGoto (<InstallWinHelp>, "No", NoCopyWinHelpTools)
  419. CopyFile ("TOOLS\BITEDIT.HLP", <ToolsPath> "\BITEDIT.HLP", 1000)
  420. CopyFile ("TOOLS\CONVERT.HLP", <ToolsPath> "\CONVERT.HLP", 1000)
  421. CopyFile ("TOOLS\FILEWALK.HLP", <ToolsPath> "\FILEWALK.HLP", 1000)
  422. CopyFile ("TOOLS\PALEDIT.HLP", <ToolsPath> "\PALEDIT.HLP", 1000)
  423. CopyFile ("TOOLS\WAVEEDIT.HLP", <ToolsPath> "\WAVEEDIT.HLP", 1000)
  424. NoCopyWinHelpTools:
  425.  
  426. NoInstallToolsCopy:
  427.  
  428. ; Copy the SDK files
  429.  
  430. IfNotEqualGoto (<InstallSDK>, "Yes", NoInstallSDKCopy)
  431.  
  432. SetProgressBarMsg ("MDK Setup is installing the SDK files")
  433.  
  434. IfFileExistsGoto("msdk\mmswitch.bat",D3MSDK)
  435. PromptChangeDisk("Multimedia Development Kit Disk #3","msdk\mmswitch.bat","")
  436.  
  437. D3MSDK:
  438. MakePath (<SDKPath>)
  439. TranslateFile ("MSDK\MMSWITCH.BAT", <SDKPath> "\MMSWITCH.BAT", 1000,
  440.                 "WindowsSystemDir", <WindowsSystemPath>,
  441.                 "MDKDebugDir", <DebugPath>,
  442.                 "MDKNoDebugDir", <NoDebugPath>)
  443. CopyFile ("MSDK\MMN2D.BAT", <SDKPath> "\MMN2D.BAT", 1000)
  444. CopyFile ("MSDK\MMD2N.BAT", <SDKPath> "\MMD2N.BAT", 1000)
  445.  
  446. IfEqualGoto (<InstallWinHelp>, "No", NoCopyWinHelpSDK)
  447.  
  448. IfFileExistsGoto("msdk\mmref.hlp",D3MMREF)
  449. PromptChangeDisk("Multimedia Development Kit Disk #3","msdk\mmref.hlp","")
  450.  
  451. D3MMREF:
  452. CopyFile ("MSDK\MMREF.HLP", <SDKPath> "\MMREF.HLP", 1000)
  453. NoCopyWinHelpSDK:
  454.  
  455. SetProgressBarMsg ("MDK Setup is installing the Debug files")
  456.  
  457. IfFileExistsGoto("msdk\debug\mmsystem.dll",D3DBG)
  458. PromptChangeDisk("Multimedia Development Kit Disk #3","msdk\debug\mmsystem.dll","")
  459.  
  460. D3DBG:
  461. MakePath (<DebugPath>)
  462. CopyFile ("MSDK\DEBUG\MMSYSTEM.DLL", <DebugPath> "\MMSYSTEM.DLL", 1000)
  463. CopyFile ("MSDK\DEBUG\MMP.DLL", <DebugPath> "\MMP.DLL", 1000)
  464. CopyFile ("MSDK\DEBUG\MEDIAMAN.DLL", <DebugPath> "\MEDIAMAN.DLL", 1000)
  465. CopyFile ("MSDK\DEBUG\WINCOM.DLL", <DebugPath> "\WINCOM.DLL", 1000)
  466. CopyFile ("MSDK\DEBUG\MMSYSTEM.SYM", <DebugPath> "\MMSYSTEM.SYM", 1000)
  467. CopyFile ("MSDK\DEBUG\MMP.SYM", <DebugPath> "\MMP.SYM", 1000)
  468. CopyFile ("MSDK\DEBUG\MEDIAMAN.SYM", <DebugPath> "\MEDIAMAN.SYM", 1000)
  469. CopyFile ("MSDK\DEBUG\WINCOM.SYM", <DebugPath> "\WINCOM.SYM", 1000)
  470.  
  471. SetProgressBarMsg ("MDK Setup is installing the NoDebug files")
  472. MakePath (<NoDebugPath>)
  473.  
  474. CopyFile ("MSDK\NODEBUG\MMSYSTEM.DLL", <NoDebugPath> "\MMSYSTEM.DLL", 1000)
  475. CopyFile ("MSDK\NODEBUG\MMP.DLL", <NoDebugPath> "\MMP.DLL", 1000)
  476. CopyFile ("MSDK\NODEBUG\MEDIAMAN.DLL", <NoDebugPath> "\MEDIAMAN.DLL", 1000)
  477. CopyFile ("MSDK\NODEBUG\WINCOM.DLL", <NoDebugPath> "\WINCOM.DLL", 1000)
  478. CopyFile ("MSDK\NODEBUG\MMSYSTEM.SYM", <NoDebugPath> "\MMSYSTEM.SYM", 1000)
  479. CopyFile ("MSDK\NODEBUG\MMP.SYM", <NoDebugPath> "\MMP.SYM", 1000)
  480. CopyFile ("MSDK\NODEBUG\MEDIAMAN.SYM", <NoDebugPath> "\MEDIAMAN.SYM", 1000)
  481. CopyFile ("MSDK\NODEBUG\WINCOM.SYM", <NoDebugPath> "\WINCOM.SYM", 1000)
  482.  
  483. SetProgressBarMsg ("MDK Setup is installing the Include files")
  484. MakePath (<IncludePath>)
  485.  
  486. CopyFile ("MSDK\INCLUDE\MMSYSTEM.H", <IncludePath> "\MMSYSTEM.H", 1000)
  487. CopyFile ("MSDK\INCLUDE\MEDIAMAN.H", <IncludePath> "\MEDIAMAN.H", 1000)
  488. CopyFile ("MSDK\INCLUDE\WINCOM.H", <IncludePath> "\WINCOM.H", 1000)
  489. CopyFile ("MSDK\INCLUDE\DEFDLG.H", <IncludePath> "\DEFDLG.H", 1000)
  490. CopyFile ("MSDK\INCLUDE\MEDWAVE.H", <IncludePath> "\MEDWAVE.H", 1000)
  491. CopyFile ("MSDK\INCLUDE\MEDBITS.H", <IncludePath> "\MEDBITS.H", 1000)
  492. CopyFile ("MSDK\INCLUDE\SCRNSAVE.H", <IncludePath> "\SCRNSAVE.H", 1000)
  493. CopyFile ("MSDK\INCLUDE\MMP.H", <IncludePath> "\MMP.H", 1000)
  494. CopyFile ("MSDK\INCLUDE\DEFDLG.DLG", <IncludePath> "\DEFDLG.DLG", 1000)
  495.  
  496. IfFileExistsGoto("msdk\lib\mmsystem.lib",D4LIB)
  497. PromptChangeDisk("Multimedia Development Kit Disk #4","msdk\lib\mmsystem.lib","")
  498.  
  499. D4LIB:
  500. SetProgressBarMsg ("MDK Setup is installing the Library files")
  501. MakePath (<LibraryPath>)
  502.  
  503. CopyFile ("MSDK\LIB\MMSYSTEM.LIB", <LibraryPath> "\MMSYSTEM.LIB", 1000)
  504. CopyFile ("MSDK\LIB\MEDIAMAN.LIB", <LibraryPath> "\MEDIAMAN.LIB", 1000)
  505. CopyFile ("MSDK\LIB\WINCOM.LIB", <LibraryPath> "\WINCOM.LIB", 1000)
  506. CopyFile ("MSDK\LIB\SCRNSAVE.LIB", <LibraryPath> "\SCRNSAVE.LIB", 1000)
  507. CopyFile ("MSDK\LIB\MMP.LIB", <LibraryPath> "\MMP.LIB", 1000)
  508.  
  509. IfNotEqualGoto (<InstallCode>, "Yes", NoInstallCodeCopy)
  510.  
  511. SetProgressBarMsg ("MDK Setup is installing the sample code files")
  512. MakePath (<CodePath>)
  513. CopyFile ("MSDK\MMSAMPLE\SBTEST.EXE", <CodePath> "\SBTEST.EXE", 1000)
  514.  
  515. ; GO
  516. MakePath (<CodePath>"\GO")
  517. CopyFile ("MSDK\MMSAMPLE\GO\about.c", <CodePath> "\GO\about.c", 1000)
  518. CopyFile ("MSDK\MMSAMPLE\GO\about.dlg", <CodePath> "\GO\about.dlg", 1000)
  519. CopyFile ("MSDK\MMSAMPLE\GO\board.c", <CodePath> "\GO\board.c", 1000)
  520. CopyFile ("MSDK\MMSAMPLE\GO\command.c", <CodePath> "\GO\command.c", 1000)
  521. CopyFile ("MSDK\MMSAMPLE\GO\element.c", <CodePath> "\GO\element.c", 1000)
  522. CopyFile ("MSDK\MMSAMPLE\GO\go.c", <CodePath> "\GO\go.c", 1000)
  523. CopyFile ("MSDK\MMSAMPLE\GO\go.def", <CodePath> "\GO\go.def", 1000)
  524. CopyFile ("MSDK\MMSAMPLE\GO\go.h", <CodePath> "\GO\go.h", 1000)
  525. CopyFile ("MSDK\MMSAMPLE\GO\go.ico", <CodePath> "\GO\go.ico", 1000)
  526. CopyFile ("MSDK\MMSAMPLE\GO\go.rc", <CodePath> "\GO\go.rc", 1000)
  527. CopyFile ("MSDK\MMSAMPLE\GO\makefile", <CodePath> "\GO\makefile", 1000)
  528. CopyFile ("MSDK\MMSAMPLE\GO\meduser.c", <CodePath> "\GO\meduser.c", 1000)
  529. CopyFile ("MSDK\MMSAMPLE\GO\phystype.dlg", <CodePath> "\GO\phystype.dlg", 1000)
  530.  
  531. ; GO\MEDGO
  532. MakePath (<CodePath>"\GO\MEDGO")
  533. CopyFile ("MSDK\MMSAMPLE\GO\MEDGO\gohand.c", <CodePath> "\GO\MEDGO\gohand.c", 1000)
  534. CopyFile ("MSDK\MMSAMPLE\GO\MEDGO\gotxhand.c", <CodePath> "\GO\MEDGO\gotxhand.c", 1000)
  535. CopyFile ("MSDK\MMSAMPLE\GO\MEDGO\libinit.asm", <CodePath> "\GO\MEDGO\libinit.asm", 1000)
  536. CopyFile ("MSDK\MMSAMPLE\GO\MEDGO\makefile", <CodePath> "\GO\MEDGO\makefile", 1000)
  537. CopyFile ("MSDK\MMSAMPLE\GO\MEDGO\medgo.c", <CodePath> "\GO\MEDGO\medgo.c", 1000)
  538. CopyFile ("MSDK\MMSAMPLE\GO\MEDGO\medgo.def", <CodePath> "\GO\MEDGO\medgo.def", 1000)
  539. CopyFile ("MSDK\MMSAMPLE\GO\MEDGO\medgo.h", <CodePath> "\GO\MEDGO\medgo.h", 1000)
  540. CopyFile ("MSDK\MMSAMPLE\GO\MEDGO\medgo.rc", <CodePath> "\GO\MEDGO\medgo.rc", 1000)
  541. CopyFile ("MSDK\MMSAMPLE\GO\MEDGO\medgoi.h", <CodePath> "\GO\MEDGO\medgoi.h", 1000)
  542.  
  543. ; MCITEST
  544. MakePath(<CodePath>"\MCITEST")
  545. CopyFile ("MSDK\MMSAMPLE\MCITEST\edit.c", <CodePath>"\MCITEST\edit.c",1000)
  546. CopyFile ("MSDK\MMSAMPLE\MCITEST\edit.h", <CodePath>"\MCITEST\edit.h",1000)
  547. CopyFile ("MSDK\MMSAMPLE\MCITEST\makefile", <CodePath>"\MCITEST\makefile",1000)
  548. CopyFile ("MSDK\MMSAMPLE\MCITEST\mcimain.dlg", <CodePath>"\MCITEST\mcimain.dlg",1000)
  549. CopyFile ("MSDK\MMSAMPLE\MCITEST\mcimain.h", <CodePath>"\MCITEST\mcimain.h",1000)
  550. CopyFile ("MSDK\MMSAMPLE\MCITEST\mcitest.c", <CodePath>"\MCITEST\mcitest.c",1000)
  551. CopyFile ("MSDK\MMSAMPLE\MCITEST\mcitest.def", <CodePath>"\MCITEST\mcitest.def",1000)
  552. CopyFile ("MSDK\MMSAMPLE\MCITEST\mcitest.h", <CodePath>"\MCITEST\mcitest.h",1000)
  553. CopyFile ("MSDK\MMSAMPLE\MCITEST\mcitest.ico", <CodePath>"\MCITEST\mcitest.ico",1000)
  554. CopyFile ("MSDK\MMSAMPLE\MCITEST\mcitest.rc", <CodePath>"\MCITEST\mcitest.rc",1000)
  555.  
  556. ; MMPLAY
  557. MakePath (<CodePath> "\MMPLAY")
  558. CopyFile ("MSDK\MMSAMPLE\MMPLAY\makefile", <CodePath>"\MMPLAY\makefile",1000)
  559. CopyFile ("MSDK\MMSAMPLE\MMPLAY\mmplay.c", <CodePath>"\MMPLAY\mmplay.c",1000)
  560. CopyFile ("MSDK\MMSAMPLE\MMPLAY\mmplay.def", <CodePath>"\MMPLAY\mmplay.def",1000)
  561. CopyFile ("MSDK\MMSAMPLE\MMPLAY\mmplay.h", <CodePath>"\MMPLAY\mmplay.h",1000)
  562. CopyFile ("MSDK\MMSAMPLE\MMPLAY\mmplay.ico", <CodePath>"\MMPLAY\mmplay.ico",1000)
  563. CopyFile ("MSDK\MMSAMPLE\MMPLAY\mmplay.rc", <CodePath>"\MMPLAY\mmplay.rc",1000)
  564.  
  565. ; REVERSE
  566. MakePath (<CodePath> "\REVERSE")
  567. CopyFile ("MSDK\MMSAMPLE\REVERSE\init.c", <CodePath>"\REVERSE\init.c",1000)
  568. CopyFile ("MSDK\MMSAMPLE\REVERSE\makefile", <CodePath>"\REVERSE\makefile",1000)
  569. CopyFile ("MSDK\MMSAMPLE\REVERSE\reverse.c", <CodePath>"\REVERSE\reverse.c",1000)
  570. CopyFile ("MSDK\MMSAMPLE\REVERSE\reverse.def", <CodePath>"\REVERSE\reverse.def",1000)
  571. CopyFile ("MSDK\MMSAMPLE\REVERSE\reverse.h", <CodePath>"\REVERSE\reverse.h",1000)
  572. CopyFile ("MSDK\MMSAMPLE\REVERSE\reverse.ico", <CodePath>"\REVERSE\reverse.ico",1000)
  573. CopyFile ("MSDK\MMSAMPLE\REVERSE\reverse.rc", <CodePath>"\REVERSE\reverse.rc",1000)
  574.  
  575. NoInstallCodeCopy:
  576. NoInstallSDKCopy:
  577.  
  578. IfNotEqualGoto (<InstallResource>, "Yes", NoInstallResourceCopy)
  579.  
  580. SetProgressBarMsg ("MDK Setup is installing the sample resource files")
  581. MakePath (<ResourcePath>)
  582.  
  583. ; NO ADDITIONAL SAMPLE RESOURCE FILES AVAILABLE YET - WILL THERE EVER BE?
  584.  
  585. NoInstallResourceCopy:
  586.  
  587. CloseCopyProgress ()
  588.  
  589. ;
  590. ; Make a Program Manager group for the data preparation tools
  591. ;
  592.  
  593. IfNotEqualGoto (<InstallTools>, "Yes", NoInstallToolsProgman)
  594.  
  595. OpenProgmanProgress ("MDK Setup is adding the tools Program Manager group.",
  596.                       "MDK Setup is modifying the {\b Program Manager} groups - "
  597.                       "Please be patient.")
  598.  
  599. OpenProgmanGroup ("MDK Tools", Delete)
  600. AddProgmanItem ("BitEdit", <ToolsPath> "\BITEDIT.EXE", <ToolsPath> "\BITEDIT.EXE", 0)
  601. AddProgmanItem ("PalEdit", <ToolsPath> "\PALEDIT.EXE", <ToolsPath> "\PALEDIT.EXE", 0)
  602. AddProgmanItem ("WaveEdit", <ToolsPath> "\WAVEEDIT.EXE", <ToolsPath> "\WAVEEDIT.EXE", 0)
  603. AddProgmanItem ("Convert", <ToolsPath> "\CONVERT.EXE", <ToolsPath> "\CONVERT.EXE", 0)
  604. AddProgmanItem ("FileWalk", <ToolsPath> "\FILEWALK.EXE", <ToolsPath> "\FILEWALK.EXE", 0)
  605. CloseProgmanProgress ()
  606.  
  607. NoInstallToolsProgman:
  608.  
  609. ;
  610. ; Make some WIN.INI modifications
  611. ;
  612.  
  613. AddToWinIni ("Extensions", "dib", "bitedit.exe ^.dib")
  614. AddToWinIni ("Extensions", "rdi", "bitedit.exe ^.rdi")
  615. AddToWinIni ("Extensions", "tga", "bitedit.exe ^.tga")
  616. AddToWinIni ("Extensions", "wav", "waveedit.exe ^.wav")
  617. AddToWinIni ("Extensions", "rif", "filewalk.exe ^.rif")
  618. AddToWinIni ("Extensions", "pal", "paledit.exe ^.pal")
  619.  
  620. ;
  621. ; Modify AUTOEXEC.BAT as required.
  622. ;
  623.  
  624. SetVariable (Path, "")
  625. SetVariable (Lib, "")
  626. SetVariable (Include, "")
  627.  
  628. IfNotEqualGoto (<InstallTools>, "Yes", NoInstallToolsAutoexec)
  629. SetVariable (Path, <ToolsPath>)
  630. NoInstallToolsAutoExec:
  631.  
  632. IfNotEqualGoto (<InstallSDK>, "Yes", NoInstallSDKAutoexec)
  633. SetVariable (Lib, <LibraryPath>)
  634. SetVariable (Include, <IncludePath>)
  635. NoInstallSDKAutoExec:
  636.  
  637. ModifyAutoexec (<Path>, <Lib>, <Include>, 
  638.                 "MDK Setup must now make some changes to your {\b AUTOEXEC.BAT} file. "
  639.                 "You may choose to have Setup make these modifications right away, or you may "
  640.                 "choose to view or alter the changes first. Also, should you wish to make the "
  641.                 "changes yourself later on, MDK Setup can write the proposed changes "
  642.                 "to a file that you specify.", 
  643.                 "You can now view the proposed changes to the {\b AUTOEXEC.BAT} file. "
  644.                 "If the changes were not made to your satisfaction, you can modify the proposed "
  645.                 "batch file by editing the file in the top window. Click on {\b OK} "
  646.                 "or press {\b Enter} to replace the current batch file with the proposed one. To "
  647.                 "return to the AUTOEXEC modification options dialog, click on {\b Cancel} "
  648.                 "or press {\b Esc}.", 
  649.                 "MDK Setup can save the proposed {\b AUTOEXEC.BAT} file to a file that you "
  650.                 "specify. You will have to modify your own {\b AUTOEXEC.BAT} file yourself "
  651.                 "and then reboot your computer in order for the MDK to function normally. To "
  652.                 "return to the AUTOEXEC modification options dialog, click on {\b Cancel} "
  653.                 "or press {\b Esc}.")
  654.  
  655. ;
  656. ; Assemble and display finished message
  657. ;
  658.  
  659. IfIncompleteGoto (Incomplete)
  660. SetVariable (Message, "The Multimedia Development kit has been successfully installed.%n%n")
  661. Goto (CheckAutoexec)
  662.  
  663. Incomplete:
  664. SetVariable, Message ("WARNING: The Multimedia Development Kit setup procedure "
  665.                        "was incomplete. Your hard disk may have a partial installation.%n%n")
  666. CheckAutoexec:
  667.  
  668. IfNotEqualGoto (<DoUpgrade>,"Yes",MustDo)
  669. SetVariable (Message, <Message> "In order to enable the Multimedia Extensions you must restart Windows.%n%n")
  670.  
  671. MustDo:
  672. IfMustModifyGoto (MustModify)
  673. IfMustRebootGoto (MustReboot)
  674. Goto (End)
  675.  
  676. MustModify:
  677. SetVariable (Message, <Message> "Remember to modify your AUTOEXEC.BAT file "
  678.                        "and reboot your computer before using the MDK.%n%n")
  679. Goto (End)
  680.  
  681. MustReboot:
  682. SetVariable (Message, <Message> "For the changes to your AUTOEXEC.BAT file "
  683.                        "to come into effect you must reboot your computer. To do this, you must "
  684.                        "first exit Windows and then simultaneously hold down the Ctrl, Alt, and "
  685.                        "Del keys. You must do this before using the MDK.%n%n")
  686.  
  687. End:
  688.  
  689. DisplayMessage (<Message>, "Click on {\b OK} or press {\b Enter} to return to the Program Manager.")
  690.