When you try to run the MPW Installer while running a third-party INIT, you get an error saying the "DoIt" script cannot be found. The message appears when an INIT uses PBHGetVol to get and save the working directory and then tries to restore the working directory using PBHSetVol. The result is that such an INIT sets the working directory to the root of the volume containing the installation volume. Note: Any mention of installation in this article refers to the procedure outlined in the "Macintosh Programmer's Workshop Development Environment Reference, Volume 1." Here are three workarounds for this problem.
First, you can install MPW by hand and forego the MPW Installer. However, this does not stop problems caused by INITs that use PBHSetVol. Any INIT that uses PBHSetVol interferes with the setting of the working directory any time you insert a disk while running MPW. After inserting a disk, the problem manifests itself when:
- MPW tries to access a script in the current directory.
- A tool tries to open a file in the current directory.
In both of these cases, a "directory :" command (as given in step 2 below) restores your environment.
Second, you can install MPW without the INIT running. In the case of TOPS, restart while holding down the Command key. During the restart process, TOPS will bring up a dialog asking if you want to install TOPS. Answer no, and proceed to install MPW 3.0.
Third, you can modify the installation script by following the procedure described below:
1. Open up the file "Startup" in the Installation Folder using any editor that can read text files.
2. Search for the line: "DoIt copyStuff >= errorFile" and insert the line "directory :" immediately before it. This forces the MPW Shell to reset the working directory to Installation Folder before running the "DoIt" script.
3. Save the "Startup" file and then do the installation procedure outlined in the "Macintosh Programmer's Workshop Development Environment Reference, Volume 1."
References: See "Macintosh Programmer's Workshop 3.0 Errata: MPW Installation Problems;" revision date: March 13, 1989
The following Tech Info Library article can help you find the Tech Note mentioned here:
Article 24493: "
Apple Tech Notes: What They Are, Where To Find Them"