Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!caen.engin.umich.edu!mystone From: mystone@caen.engin.umich.edu (Dean Yu) Newsgroups: comp.sys.mac.programmer Subject: Re: Writing Installer scripts (and ChooserName too) Message-ID: <4438b1e3.1285f@maize.engin.umich.edu> Date: 4 Jul 89 16:47:00 GMT References: <1028@unocss.UUCP> Reply-To: mystone@sol.engin.umich.edu Organization: Computer Aided Engineering Network, University of Michigan Lines: 57 Sender: Followup-To: In article <1028@unocss.UUCP> dent@unocss.UUCP (Dave Caplinger) writes: >On to the next question: Is there a program or a way to write Installer >scripts? I would like to simplify the re-loading of Macs on AppleShare >(or whatever they end up on) by writing an Installer script to copy >the System folder. Thus, Consultants on duty in the user rooms can just >boot from an Installer disk, (which I will have auto-login to the AppleShare >server) and click "Install" to re-load the Mac's bootup software from >the backup held on the server. The whole point is that I will no longer >have to go do it any more. :-) > Take a look at Tech Note 75. It goes into detail about the format of an Installer script, and how to write your own. >In addition to just copying files, I need to set the startup application, and >make the system folder invisible. Also, one of the files copied into the >system folder has a different name depending on which Mac is being restored, >and that name needs to be changed back once installed... All in all, a process >I would very much like to automate. :-) > Your best bet would be to write an INIT that sets the Invisible bit on the System Folder every time on the off chance someone re-visified it. I believe (don't quote me on this next bit) that the startup application for Uni-Finder is still stored in the boot blocks, and under MultiFinder, it's in the Finder Startup file. >I have looked at various Installer scripts that ResEdit 1.2b3 would >be nice enough to load (the System ones were "too big"), and I may be >able to hack at it a while to work up somehting, but surely there is a >program to do this for me, yes? :-) > Go with your first idea. Take one of Apple's scripts, rip out the parts you don't need, and add in new things you do need in ResEdit. >Also: Can an Installer script be set up to copy files/resources from a >disk /other/ than the boot disk? (I.e., boot from one disk, and copy >files from the server to the local hard drive.) > Wait for Installer 3.0 (or whatever ships with System 7). It should be able to do all this and more. _______________________________________________________________________________ Dean Yu | E-mail: mystone@{sol,caen}.engin.umich.edu University of Michigan | Real-mail: Dean Yu Computer Aided Engineering Network | 909 Church St | Apt C ===================================| Ann Arbor, MI 48104 | Phone: Given on a need to know basis, and "I am the Merit Host. I speak for | only if you're going to offer me a the bitstream." (In other words, | job... these are my very own opinions; | my employer wants to have nothing |=========================================== to do with them, or me.) | This space available for rent -------------------------------------------------------------------------------