home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Life 1995 June
/
Computer_Life_Magazine_June_1995_Companion_CD.iso
/
kiddesk
/
kidsetup.ms_
/
kidsetup.ms
Wrap
Text File
|
1994-03-03
|
42KB
|
1,147 lines
'**************************************************************************
'* KIDSETUP.MST - KidDesk Setup Script
'*
'* Version: 1.01
'*
'* Notes:
'* This file has the following sections to it:
'* - Overhead - Contains include files, global
'* definitions & function declarations
'* - Basic script outline - The overall Program flow.
'* - Sub-routines & functions - like it says.
'*
'* $Log: T:/proj/edmark/pvcs/disklay/kidsetup.msv $
'*
'* Rev 1.38 04 Mar 1994 13:17:52 BENG
'* from DanF
'*
'* 3/4/94 Dan Friesen
'* Fixed bug when you Easy Install and there is not enough space on drive. Also added a sentence
'* to the NeedSpace dialog.
'*
'* 3/3/94 Dan Friesen
'* Now make changes to KIDDESK.INI in DestDir (not Windows directory).
'*
'* Rev 1.36 21 Feb 1994 11:12:50 BENG
'* more Dan Friesen chngs
'*
'* 2/18/94 Dan Friesen
'* Fixed minimizing before launching WRITE, upgrading root apps from KD DOS, create both .KID &
'* .KDM backups (only tell user about .KID), added dir exist dialog, added Windows sound device
'* sensing (added MMSYSTEM.LIB to link file), don't add space when adding to a blank 'run=' line,
'* don't always make AUTOEXEC backup, if error with AUTOEXEC don't continue, copy files before
'* selecting Startup Option, and check for 3.2 megs of disk space immediately after dest. dir is
'* given.
'*
'* 1/24/94 Dan Friesen
'* Added check for low memory, REMing out DOS KidDesk lines in AUTOEXEC, changed backup files
'* .KID to .KDM, changed "Shell" dialog, moved WIN.INI KidDesk section to KIDDESK.INI, and added
'* alert if installing KDFE into DOS KidDesk directory.
'*
'* Rev 1.34 10 Dec 1993 16:49:58 JAMESMC
'* Intergrated edmark changes and enhanced checking of tmp setup dir.
'*
'* Rev 1.33 09 Dec 1993 19:10:26 JAMESMC
'* Added check to ensure that they couldn't install to the tmp directory.
'*
'* Rev 1.32 09 Dec 1993 17:47:22 JAMESMC
'* Fixed something.
'*
'* Rev 1.32 12/07/93 Dan Friesen
'* Added ability to save kids and apps from DOS KidDesk.
'*
'* Rev 1.31 02 Nov 1993 22:50:06 JAMESMC
'* Refined way of calling DeleteDataFiles when the dos version is found.
'*
'* Rev 1.30 02 Nov 1993 20:24:18 JAMESMC
'* Added DeleteDataFiles if dos kiddesk is the dest dir.
'*
'* Rev 1.29 28 Oct 1993 21:16:48 JAMESMC
'* Added call to GetBootDrive.
'*
'* Rev 1.28 27 Oct 1993 22:57:40 JAMESMC
'* Put a period on the end of a sentence.
'*
'* Rev 1.27 26 Oct 1993 16:49:16 JAMESMC
'* Fixed the uninstall options.
'*
'* Rev 1.26 21 Oct 1993 20:28:30 JAMESMC
'* bunch of changes.
'*
'* Rev 1.25 21 Oct 1993 00:38:14 JAMESMC
'* working on uninstall features.
'*
'* Rev 1.24 20 Oct 1993 16:31:14 JAMESMC
'* changed appname back to kiddesk.
'*
'* Rev 1.23 14 Oct 1993 23:12:14 JAMESMC
'* Took out all references to kiddesk.exe.
'*
'* Rev 1.22 12 Oct 1993 21:04:06 JAMESMC
'* Moved the deletion of previous installtion to inside the DoInstall routine.
'*
'* Rev 1.21 10 Oct 1993 18:44:38 JAMESMC
'* Updated with 286 cpu warning.
'*
'* Rev 1.20 22 Sep 1993 21:16:14 JAMESMC
'* Made sure that IDD_SYSFILES_RUN dialog was called.
'*
'* Rev 1.19 22 Sep 1993 18:05:20 JAMESMC
'* Addes IDD_SYSFILES_RUN.
'*
'* Rev 1.18 22 Sep 1993 18:00:38 JAMESMC
'* Changed error message of writing to autoexec.bat to a brief message.
'*
'* Rev 1.17 16 Sep 1993 21:46:38 JAMESMC
'* Updated checking of editing of autoexec.bat.
'*
'* Rev 1.16 14 Sep 1993 16:48:30 JAMESMC
'* Changed the messages of which sytem files have been modified to be more
'* specific to the case involved.
'*
'* Rev 1.15 02 Sep 1993 11:34:12 JAMESMC
'* took out outputdebugstrings.
'*
'* Rev 1.14 02 Sep 1993 11:31:32 JAMESMC
'* Changed some radio button hotkeys, and fixed the 'back' sequence missing
'* dialog.
'*
'* Rev 1.13 27 Aug 1993 14:39:24 JAMESMC
'* Put DIB.DRV into windows\system dir.
'*
'* Rev 1.12 26 Aug 1993 15:00:44 JAMESMC
'* Fixed sync of modeless pop and all.
'*
'* Rev 1.11 26 Aug 1993 14:54:30 JAMESMC
'* Put in modeless dialog box, and other minor enhancements.
'*
'* Rev 1.10 23 Aug 1993 18:00:50 JAMESMC
'* Added several changes in relation to dialogs being changed.
'*
'* Rev 1.9 11 Aug 1993 11:47:02 JAMESMC
'* Added run line option, more descriptive messages, & fixed minor bugs.
'*
'* Rev 1.8 30 Jul 1993 17:07:24 JAMESMC
'* Now contains the changes:
'* 1. Now writes the Shell in the kiddesk section of the win.ini.
'* 2. Now copies the win.ini to win.kid, along with the other system files.
'* 3. Now numerously notes that system will have to be rebooted.
'*
'* Rev 1.7 26 Jul 1993 18:04:40 JAMESMC
'* Fixed bugs #69, 71 & 73. Also added a new dialog prompting user on how to
'* save changes to system files. A few other tiny enhancements.
'*
'* Rev 1.6 26 Jul 1993 12:40:42 JAMESMC
'* Fixed the BACK option from DoShell section so that it checks to see which
'* dialog it needs to go back to.
'*
'* Rev 1.5 30 Jun 1993 12:11:56 JAMESMC
'* Updated, - ready for retail.
'*
'* Rev 1.4 29 Jun 1993 14:38:04 JAMESMC
'* Feature complete for 1.0.
'*
'* Rev 1.3 25 Jun 1993 18:37:22 JAMESMC
'* adding lots of stuff
'*
'* Rev 1.2 22 Jun 1993 15:31:22 JAMESMC
'* Ironing out all those initial little bugs.
'*
'* Rev 1.1 21 Jun 1993 15:32:16 JAMESMC
'* changed some name references and added log keywords.
'*
'**************************************************************************
'$DEFINE DEBUG ''Define for script development/debugging
'$INCLUDE 'setupapi.inc'
'$INCLUDE 'msdetect.inc'
CONST SPACE_NEEDED = 3355443
CONST IDD_WELCOME = 1001 'Standard dialogs
CONST IDD_CUSTOM = 1002
CONST IDD_DESTPATH = 1003
CONST IDD_SHELL = 1004
CONST IDD_REINSTALLE = 1005
CONST IDD_REINSTALLDOS = 1006
CONST IDD_SYSFILES = 1007
CONST IDD_MODELESS = 1008
CONST IDD_SYSFILES_RUN = 1009
CONST IDD_DOSWARNP = 1010
CONST IDD_DOSWARNI = 1011
CONST IDD_DIREXIST = 1012
CONST IDD_ASKQUIT = 1101 'optional dialogs
CONST IDD_EXITQUIT = 1102
CONST IDD_APPHELP = 1103
CONST IDD_EXITSUCCESS = 1104
CONST IDD_EXITSUCCESS_SHELL = 1105
CONST IDD_WARN_286 = 1106
CONST IDD_WARN_MEM = 1107
CONST IDD_EXITFAILURE = 1201 'upon error dialogs
CONST IDD_BADPATH = 1202
CONST IDD_NEEDSPACE = 1203
CONST IDD_OPTIONS = 1301
CONST IDD_CUSTINST = 1302
CONST IDD_TOOBIG = 1303
CONST SW_SHOWMAXIMIZED = 3 'Window size states
CONST LOGO = 1 'Bitmap ID
GLOBAL hWnd% 'handle to the frame window
GLOBAL UserAbort% 'Indicates if user chose to abort the install
GLOBAL Success% 'Indicates if the actual install routine succeeded
GLOBAL bPrevVer% 'Indicates if a previous version was installed
GLOBAL b286Sys% 'Indicates if being installed on a 286 based system.
GLOBAL bLoMem% 'Indicates if low on memory.
GLOBAL bDOSFiles% 'True if need to copy converted DOS info.
GLOBAL bDOSVer% 'True if DOS kiddesk somewhere on drive.
GLOBAL bDOSInDest% 'True if DOS kiddesk in dest dir.
GLOBAL bDirExist% 'True if need to put up directory exists dialog
GLOBAL bNeedPath% 'True if dest. dir exists and users wants to enter new dir.
GLOBAL NewLine$ 'Newline chars 10,13
GLOBAL DlgValue$ 'return value from dlg functions
GLOBAL Custom$ 'custom / default install option
GLOBAL SaveData$ 'indicated whether to save old user data files
GLOBAL CuiDll$
GLOBAL HelpProc$
GLOBAL AppName$ 'main exe of KidDesk
GLOBAL DestDir$ 'Default destination directory.
GLOBAL ShareDir$