home *** CD-ROM | disk | FTP | other *** search
- '**************************************************************************
- '* MSSetup Script for installing Talk->To, Talk->To Plus, and ExecuVoice
- '*
- '* History
- '* 14 Oct 92 sds Initial version
- '* 21 Oct 1992 sds added "Which Multimedia board?"
- '* 22 Oct 1992 sds loading ProgMan group with applets
- '* 23 Oct 1992 sds added WinFile, MPlayer to ProgMan grp
- '* 26 Oct 1992 sds separate DRAGON.LOD's for Cherry vs Dragon2
- '* 30 Oct 1992 sds ifdef'ed out query for board type - we
- '* will ship Multimedia version only
- '* 3 Dec 1992 sds switch to Talk->To[Plus] product name
- '* added Tutorial
- '* no longer creates initial user
- '* now asks for user and organization name
- '* 10 Dec 1992 sds removed "Dragon Talk->To" from Tutorial name
- '* 15 Dec 1992 steves added checks for overwrite of existing copy
- '* 24 Dec 1992 steves support for saving username in talk-to.exe
- '* 19 Jan 1993 steves no more lesson plan file for Tutorial
- '* 4 Feb 1993 steves no install if setup disk write-protected
- '* 8 Feb 1993 steves now checks for enough disk space
- '* 10 Feb 1993 steves Now supports ExecuVrs build for Venus
- '* Centralized version dependencies
- '* 10 Feb 1993 steves Discoverred undocumented /D option on
- '* _mstest cmd line. No more editing this
- '* file to generate different versions.
- '* 11 Feb 1993 steves ExecuVoice now has ReadMe in WRITE file
- '* 16 Feb 1993 steves ExecuVoice now does Pocket Mixer/CD icons
- '* ReadMe.WRI now offered at end of setup
- '* 22 Feb 1993 steves now supports "VoiceControl for Windows"
- '* 25 Feb 1993 steves ProgMan icon now titled "Voicebar"
- '* 26 Feb 1993 steves INI file [known tools] "Toolbar" entry now
- '* "Voicebar"
- '* 26 Feb 1993 steves SrcDrive$ now extracted when needed. DLL
- '* may set it at different times in different
- '* product versions
- '* 1 Mar 1993 steves restored UserName/Org for VoiceType (TITAN)
- '* VoiceType version has multiple base files
- '* 9 Mar 1993 steves now creates [Program Aliases] in .INI file
- '* 19 Mar 1993 steves TalkToPlus version now asks for base files
- '* 23 Mar 1993 steves VoiceType no longer adds Terminal to group
- '* 24 Mar 1993 steves ExecuVrs doesn't either
- '* 25 Mar 1993 steves fixed bug backing up to User dlgbox
- '* 25 Mar 1993 steves now sets board/mike in .INI file for support
- '* 12 May 1993 steves ExecuVoice now gets dir from .INI for
- '* mixer and CD
- '* 25 May 1993 steves AudioWave version (TalkTo with no choice
- '* of microphone)
- '* 7 Jun 1993 steves Austin version (TalkTo with choice of mike
- '* but not board)
- '* 17 Jun 93 steves AudioWave version now does no mike description
- '* 23 Jun 1993 sds ExecuVoice for SoundBlaster (et all) version
- '* query for bases, no pocket mixer or CD
- '* 25 Jun 1993 sds Austin version sets gain for IBM mike in
- '* MWAVE.INI
- '* 15 Jul 1993 sds Crystal version - TalkTo with no mike or
- '* board choice
- '* 19 Jul 1993 sds Austin is now TalkTo PLUS, and has two mikes
- '* with different MWAVE.INI gain settings
- '* 21 Sep 1993 sds Crystal now asks for microphones
- '* 13 Oct 1993 sds changed exe names for TTPlus (V1.4)
- '* 19 Oct 1993 sds new HummingBird version, TTPLus with no
- '* base file selection
- '*
- '**************************************************************************
-
- '* NOTE: There is only one "real" .MST file, TALKTO.MST. Other versions
- '* are mere copies created by MAKE_IT.BAT
- '*
- '* The following DEFINE's are done on the command line in the various
- '* .LST files, each of which become SETUP.LST on the install disk
-
- '* '$DEFINE TALKTOPLUS 1 ''Enable for Plus version
- '* '$DEFINE EXECUVOICE 1 ''Enable for ExecuVoice Version
- '* '$DEFINE EXVOICEALL 1 ''Enable for ExecuVoice Version (all boards)
- '* '$DEFINE VOICETYPE 1 ''Enable for VoiceType Version
- '* '$DEFINE AUDIOWAVE 1 ''Enable for AudioWave Version
- '* '$DEFINE AUSTIN 1 ''Enable for Austin Version
- '* '$DEFINE CRYSTAL 1 ''Enable for Crystal Version
- '* '$DEFINE HUMMINGBIRD 1 ''Enable for HummingBird Version
-
- '* '$DEFINE MIC_DYNAMIC 1 ''For ExecuVoice only - default is Condenser
-
-
-
- '* '$DEFINE DEBUG ''Define for script development/debugging
-
-
-
- '$INCLUDE 'setupapi.inc'
- '$INCLUDE 'msdetect.inc'
-
- '$IFDEF EXVOICEALL
- '' ExecuVoice versions are mostly the same, except this one wants base
- '' file selection
- '$DEFINE EXECUVOICE 1
- '$DEFINE WANTBASES 1
- '$ENDIF
-
- '$IFNDEF EXECUVOICE
- '$IFNDEF AUDIOWAVE
- '$IFNDEF HUMMINGBIRD
- '' everything except these versions wants base files
- '$DEFINE WANTBASES 1
- '$ENDIF
- '$ENDIF
- '$ENDIF
-
-
- '$IFNDEF EXECUVOICE
- DECLARE FUNCTION DlgGetUserOrg LIB "mscuistf.dll" AS INTEGER
- DECLARE FUNCTION DlgSetUserOrg LIB "mscuistf.dll" AS INTEGER
- '$ENDIF
-
- '' TalkTo needs space for itself, plus enough more to create initial
- '' user. About 3.5 MB
- '' NOTE: if this number is changed, you must also change string in
- '' DLGNOSPACE dialog box!!!!
- CONST MIN_DISK_SPACE = 3670016
-
- ''Dialog ID's
- CONST DLG_WELCOME = 100
- CONST DLG_ASKQUIT = 200
- CONST DLG_DESTPATH = 300
- CONST DLG_EXITFAILURE = 400
- CONST DLG_EXITQUIT = 600
- CONST DLG_EXITSUCCESS = 700
-
- CONST DLG_APPHELP = 900
-
- '' CONST DLG_MODELESS = 5000
- CONST DLG_BADPATH = 6400
- CONST DLG_USERNAME = 7900
- CONST DLG_NOWAY = 8000
- CONST DLG_REPLACE = 8100
- CONST DLG_WRITEPROTECT = 8200
- CONST DLG_NOSPACE = 8300
- CONST DLG_BASENAME = 8400
-
-
- ''Bitmap ID
- CONST LOGO = 1
-
- ''
- ''File Names and other version-dependent strings
- ''
- '$IFDEF VOICETYPE
- '$DEFINE TALKTOPLUS 1
- CONST STR_TITLE = "VoiceType Control For Windows"
- CONST FILE_INF = "VTCon.INF"
- CONST FILE_INI = "VTCon.INI"
- CONST FILE_TOOLBAR = "VTCon.exe"
- CONST FILE_TOOLBARCOMP = "VTCon.ex_"
- CONST FILE_ACTIVWRD = "VTWords.exe"
- CONST FILE_BROWSER = "VTBrowse.exe"
- CONST FILEPATH_TUTOR = "tutorial\vt-tutor.exe"
- CONST FILEPATH_INSTALL = "c:\VTCon"
-
- '$ELSE
-
- '$IFDEF EXECUVOICE
- CONST STR_TITLE = "ExecuVoice"
- CONST FILE_INF = "ExecuVrs.INF"
- CONST FILE_INI = "ExecuVrs.INI"
- CONST FILE_TOOLBAR = "ExecuVrs.exe"
- CONST FILE_TOOLBARCOMP = "ExecuVrs.ex_"
- CONST FILE_ACTIVWRD = "EvWords.exe"
- CONST FILEPATH_TUTOR = "tutorial\ev-tutor.exe"
- CONST FILEPATH_INSTALL = "c:\ExecuVrs"
-
- '$ELSE
-
- '$IFDEF AUSTIN
- '$DEFINE TALKTOPLUS 1
- CONST STR_TITLE = "Dragon Talk->To Plus"
- CONST FILE_INF = "TalkTo.INF"
- CONST FILE_INI = "T2Plus.INI"
- CONST FILE_TOOLBAR = "T2Plus.exe"
- CONST FILE_TOOLBARCOMP = "T2Plus.ex_"
- CONST FILE_ACTIVWRD = "TPWords.exe"
- CONST FILE_BROWSER = "TPBrowse.exe"
- CONST FILEPATH_TUTOR = "tutorial\TP-tutor.exe"
- CONST FILEPATH_INSTALL = "c:\talk-to"
- '$ELSE
-
- '$IFDEF HUMMINGBIRD
- '$DEFINE TALKTOPLUS 1
- CONST STR_TITLE = "Dragon Talk->To Plus"
- CONST FILE_INF = "TalkTo.INF"
- CONST FILE_INI = "T2Plus.INI"
- CONST FILE_TOOLBAR = "T2Plus.exe"
- CONST FILE_TOOLBARCOMP = "T2Plus.ex_"
- CONST FILE_ACTIVWRD = "TPWords.exe"
- CONST FILE_BROWSER = "TPBrowse.exe"
- CONST FILEPATH_TUTOR = "tutorial\TP-tutor.exe"
- CONST FILEPATH_INSTALL = "c:\talk-to"
- '$ELSE
-
- '$IFDEF TALKTOPLUS
- CONST STR_TITLE = "Dragon Talk->To Plus"
- '$IFNDEF VOICETYPE
- CONST FILE_BROWSER = "tpBrowse.exe"
- '$ENDIF
-
- '$ELSE
- CONST STR_TITLE = "Dragon Talk->To"
- '$ENDIF
-
- CONST FILE_INF = "TALKTO.INF"
- '$IFDEF TALKTOPLUS
- CONST FILE_INI = "T2Plus.INI"
- CONST FILE_ACTIVWRD = "tpwords.exe"
- CONST FILE_TOOLBAR = "T2Plus.exe"
- CONST FILE_TOOLBARCOMP = "T2Plus.ex_"
- CONST FILEPATH_TUTOR = "tutorial\tp-tutor.exe"
- '$ELSE
- CONST FILE_INI = "Talk-To.INI"
- CONST FILE_TOOLBAR = "Talk-To.exe"
- CONST FILE_TOOLBARCOMP = "Talk-To.ex_"
- CONST FILE_ACTIVWRD = "ttwords.exe"
- CONST FILEPATH_TUTOR = "tutorial\tt-tutor.exe"
- '$ENDIF
- CONST FILEPATH_INSTALL = "c:\talk-to"
- '$ENDIF
- '$ENDIF
- '$ENDIF
- '$ENDIF
-
- GLOBAL DEST$ ''Default destination directory.
- GLOBAL OPTCUR$ ''Option selection from option dialog.
- GLOBAL USER$ ''Initial user name (file name form)
- '' GLOBAL FullUserName$
- GLOBAL UserName$
- GLOBAL SrcDrive$ '' where Setup is coming from
- GLOBAL OrgName$
- GLOBAL Title$
- GLOBAL SetupTitle$ '' used for msg boxes
- GLOBAL CUIDLL$
- GLOBAL ReInstall%
-
- DECLARE SUB Install
- DECLARE FUNCTION MakePath (szFile$) AS STRING
-
- INIT:
- CUIDLL$ = "mscuistf.dll" ''Custom user interface dll
- HELPPROC$ = "FHelpDlgProc" ''Help dialog procedure
-
- DEST$ = FILEPATH_INSTALL ''Default target directory
-
- SetBitmap CUIDLL$, LOGO
- Title$ = STR_TITLE
-
- SetupTitle$ = Title$ + " Setup"
-
- SetTitle Title$
-
- '' assume this is not a re-install
- ReInstall% = 0
-
- '$IFNDEF EXECUVOICE
- SetSymbolValue "UserName", ""
- SetSymbolValue "UserOrg", ""
-
- '' DlgGetUserOrg isn't a dialog box routine at all, it's just named
- '' that way to deter hackers. It really extracts the user name and
- '' organization from the magic file on first setup disk
- i% = DlgGetUserOrg()
- T$ = GetSymbolValue("BADUSERORGFILE")
- if T$ = "Y" THEN
- '' somebody mucked with user/organization file
- GOTO ERRQUIT
- END IF
- UserName$ = GetSymbolValue("UserName")
- cch% = len(UserName$)
- if cch% > 0 then
- '' re-install from same diskettes
- ReInstall% = 1
- end if
- '$ENDIF
-
- szInf$ = GetSymbolValue("STF_SRCINFPATH")
- IF szInf$ = "" THEN
- szInf$ = GetSymbolValue("STF_CWDDIR") + FILE_INF
- END IF
- ReadInfFile szInf$
-
- OPTCUR$ = "1"
-
- '$IFDEF DEBUG
- i% = SetSizeCheckMode(scmOnIgnore) '' could use scmOff; def = scmOnFatal
- WinDrive$ = MID$(GetWindowsDir, 1, 1)
- IF IsDriveValid(WinDrive$) = 0 THEN
- i% = DoMsgBox("Windows drive ('"+WinDrive$+"') is not a valid drive.", "DEBUG", MB_TASKMODAL+MB_ICONHAND+MB_OK)
- GOTO QUIT
- END IF
- '$ENDIF ''DEBUG
-
-
- WELCOME:
- sz$ = UIStartDlg(CUIDLL$, DLG_WELCOME, "FWelcomeDlgProc", DLG_APPHELP, HELPPROC$)
- IF sz$ = "CONTINUE" THEN
- UIPop 1
- ELSE
- GOSUB ASKQUIT
- GOTO WELCOME
- END IF
-
- GETPATH:
- SetSymbolValue "EditTextIn", DEST$
- SetSymbolValue "EditFocus", "END"
- GETPATHL1:
- sz$ = UIStartDlg(CUIDLL$, DLG_DESTPATH, "FEditDlgProc", DLG_APPHELP, HELPPROC$)
- IF sz$ = "CONTINUE" THEN
- DEST$ = GetSymbolValue("EditTextOut")
- IF IsDirWritable(DEST$) = 0 THEN
- GOSUB BADPATH
- GOTO GETPATHL1
- END IF
- UIPop 1
- ELSEIF sz$ = "REACTIVATE" THEN
- GOTO GETPATHL1
- ELSEIF sz$ = "BACK" THEN
- UIPop 1
- GOTO WELCOME
- ELSE
- GOSUB ASKQUIT
- GOTO GETPATH
- END IF
-
- '' check directory
- CheckDir:
- SrcDrive$ = GetSymbolValue("SRCDRIVE")
-
- i% = DoesDirExist(DEST$)
- IF i% > 0 THEN
- '' directory exists
- i% = DoesFileExist(MakePath(FILE_TOOLBAR), femExists)
- IF i% > 0 THEN
- '' there is an existing version installed
- Date_Already$ = GetDateOfFile(MAKEPATH(FILE_TOOLBAR))
- IF Date_Already$ > "1990" THEN
- '' have a file to compare to
- Date_This$ = GetDateOfFile(SrcDrive$ + FILE_TOOLBARCOMP)
- IF Date_This$ = Date_Already$ OR Date_This$ > Date_Already$ THEN
- '' installing same or newer version - warn'em
- sz$ = UIStartDlg(CUIDLL$, DLG_REPLACE, "FReplaceDlgProc", 0, "")
- UIPop 1
- IF sz$ = "CONTINUE" THEN
- GOTO CheckSpace
- ELSE
- GOTO GetPath
- END IF
- ELSE
- '' installing OLDER version over newer - no way
- SetSymbolValue "EditTextIn", DEST$
- SetSymbolValue "EditFocus", "END"
- CheckDir1:
- sz$ = UIStartDlg(CUIDLL$, DLG_NOWAY, "FEditDlgProc", DLG_APPHELP, HELPPROC$)
- IF sz$ = "CONTINUE" THEN
- DEST$ = GetSymbolValue("EditTextOut")
- IF IsDirWritable(DEST$) = 0 THEN
- GOSUB BADPATH
- GOTO CheckDir1
- END IF
- UIPop 1
- GOTO CheckDir
- ELSEIF sz$ = "REACTIVATE" THEN
- GOTO CheckDir1
- ELSEIF sz$ = "BACK" THEN
- UIPop 1
- GOTO GETPATH
- ELSE
- GOSUB ASKQUIT
- GOTO CheckDir
- END IF
- END IF
- END IF
- END IF
- END IF
-
- CheckSpace:
- if MID$(DEST$, 2, 1) = ":" then
- DestDrive$ = MID$(DEST$, 1, 1)
- else
- DestDrive$ = GetSymbolValue("CURDRIVE")
- end if
- FreeSpace& = GetFreeSpaceForDrive(DestDrive$)
-
- if (FreeSpace& > MIN_DISK_SPACE) then
- goto GETUSER
- end if
-
- '' insufficient disk space - warn user
- SetSymbolValue "FREESPACE", STR$(FreeSpace&)
- sz$ = UIStartDlg(CUIDLL$, DLG_NOSPACE, "FNoSpaceDlgProc", DLG_APPHELP, HELPPROC$)
- if sz$ = "CONTINUE" then
- UIPop 1
- '' see if they really freed enough space
- goto CheckSpace
- elseif sz$ = "BACK" then
- UIPop 1
- '' try another drive
- goto GETPATH
- else
- UIPopAll
- ERROR STFQUIT
- end if
-
- GETUSER:
- '$IFDEF EXECUVOICE
- goto SkipGetUser '* ExecuVoice does not record user name
- '$ELSE
- if ReInstall% > 0 then
- goto SkipGetUser
- end if
-
- S$ = GetSymbolValue("UserName")
- SetSymbolValue "EditTextIn", S$
- S$ = GetSymbolValue("UserOrg")
- SetSymbolValue "EditTextIn2", S$
- SetSymbolValue "EditFocus", "END"
- GETUSER1:
- sz$ = UIStartDlg(CUIDLL$, DLG_USERNAME, "FEditDlgProc", DLG_APPHELP, HELPPROC$)
-
- IF sz$ = "CONTINUE" THEN
- '* dlgbox has already done the work
- UIPop 1
- ELSEIF sz$ = "REACTIVATE" THEN
- GOTO GETUSER1
- ELSEIF sz$ = "BACK" THEN
- UIPop 1
- GOTO GETPATH
- ELSEIF sz$ = "WriteProtect" THEN
- sz$ = UIStartDlg(CUIDLL$, DLG_WRITEPROTECT, "FQuitDlgProc", DLG_APPHELP, HELPPROC$)
- UIPopAll
- ERROR STFQUIT
- ELSE
- GOSUB ASKQUIT
- GOTO GETUSER
- END IF
- '$ENDIF
-
- SkipGetUser:
-
- '$IFDEF WANTBASES
- '* TalkTo, TalkToPlus, Austin, and VoiceType all use multiple base files
- '* ExecuVoice and Audiowave do not
- GETBASES:
- SetSymbolValue "BASEGROUP", ""
- GETBASE1:
- sz$ = UIStartDlg(CUIDLL$, DLG_BASENAME, "BaseDlgProc", DLG_APPHELP, HELPPROC$)
-
- IF sz$ = "CONTINUE" THEN
- UIPop 1
- ELSEIF sz$ = "REACTIVATE" THEN
- GOTO GETBASE1
- ELSEIF sz$ = "BACK" THEN
- UIPop 1
- if ReInstall% > 0 then
- '' is re-install - we never asked for user
- goto GETPATH
- else
- '$IFDEF EXVOICEALL
- goto GETPATH
- '$ELSE
- GOTO GETUSER
- '$ENDIF
- end if
- ELSE
- GOSUB ASKQUIT
- GOTO GETBASES
- END IF
- '$ENDIF
-
- Install
-
- QUIT:
- ON ERROR GOTO ERRQUIT
-
- IF ERR = 0 THEN
- dlg% = DLG_EXITSUCCESS
-
- SetSymbolValue "InstallPath", DEST$
- SetSymbolValue "ReadMeCmd", "Write " + MAKEPATH("readme.wri")
-
- ELSEIF ERR = STFQUIT THEN
- dlg% = DLG_EXITQUIT
- ELSE
- dlg% = DLG_EXITFAILURE
- END IF
- QUITL1:
- sz$ = UIStartDlg(CUIDLL$, dlg%, "FInfo0DlgProc", 0, "")
- IF sz$ = "REACTIVATE" THEN
- GOTO QUITL1
- END IF
- UIPop 1
-
- END
-
- ERRQUIT:
- i% = DoMsgBox("Setup sources were corrupted, call technical support.", "Setup Message", MB_OK+MB_TASKMODAL+MB_ICONHAND)
- END
-
- BADPATH:
- sz$ = UIStartDlg(CUIDLL$, DLG_BADPATH, "FInfo0DlgProc", 0, "")
- IF sz$ = "REACTIVATE" THEN
- GOTO BADPATH
- END IF
- UIPop 1
- RETURN
-
- ASKQUIT:
- sz$ = UIStartDlg(CUIDLL$, DLG_ASKQUIT, "FQuitDlgProc", 0, "")
-
- IF sz$ = "EXIT" THEN
- UIPopAll
- ERROR STFQUIT
- ELSEIF sz$ = "REACTIVATE" THEN
- GOTO ASKQUIT
- ELSE
- UIPop 1
- END IF
- RETURN
-
- '**
- '** Purpose:
- '** Builds the copy list and performs all installation operations.
- '** Arguments:
- '** none.
- '** Returns:
- '** none.
- '*************************************************************************
- SUB Install STATIC
-
- SrcDir$ = GetSymbolValue("STF_SRCDIR")
- CreateDir DEST$, cmoNone
-
- OpenLogFile MakePath("LOGFILE.OUT"), 0
- WriteToLogFile ""
- WriteToLogFile " Destination directory: '" + DEST$ + "'"
- WriteToLogFile ""
-
- AddSectionFilesToCopyList "Files", SrcDir$, DEST$
- '$IFDEF WANTBASES
- BaseFiles$ = GetSymbolValue("BASEGROUP")
- WriteToLogFile " BaseGroup: '" + BaseFiles$ + "'"
- AddSectionFilesToCopyList BaseFiles$, SrcDir$, DEST$
- '$ENDIF
- CopyFilesInCopyList
- WriteToLogFile " Finished copying..."
-
- hPrev% = ShowWaitCursor()
-
- '$IFNDEF EXECUVOICE
- SetSymbolValue "KeyFileName", MakePath(FILE_TOOLBAR)
- i% = DlgSetUserOrg()
- '$ENDIF
-
- ini$ = MakePath(FILE_INI)
-
- sec$ = "Defaults"
- CreateIniKeyValue ini$, sec$, "User Directory", MakePath("users"), cmoOverwrite
- CreateIniKeyValue ini$, sec$, "Vocabulary Directory", MakePath("users"), cmoOverwrite
- CreateIniKeyValue ini$, sec$, "Base User", MakePath("users\baseusr.usr"), cmoOverwrite
- CreateIniKeyValue ini$, sec$, "Base Vocabulary", MakePath("users\basevoc.voc"), cmoOverwrite
- '$IFDEF EXECUVOICE
- '$IFDEF EXVOICEALL
- CreateIniKeyValue ini$, sec$, "Microphone Description", "Dynamic Microphone", cmoOverwrite
- S$ = GetSymbolValue("SoundBoard")
- cch% = len(S$)
- if cch% > 0 then
- CreateIniKeyValue ini$, sec$, "Sound Board Description", S$, cmoOverwrite
- end if
- '$ELSE
- '$IFDEF MIC_DYNAMIC
- CreateIniKeyValue ini$, sec$, "Microphone Description", "Dynamic Microphone", cmoOverwrite
- '$ELSE
- CreateIniKeyValue ini$, sec$, "Microphone Description", "Condenser Microphone", cmoOverwrite
- '$ENDIF
- '$ENDIF
-
- '$ELSE
-
- '$IFDEF AUDIOWAVE
- CreateIniKeyValue ini$, sec$, "Microphone Description", "", cmoOverwrite
- '$ELSE
- '$IFDEF AUSTIN
- S$ = GetSymbolValue("Microphone")
- cch% = len(S$)
- if cch% > 0 then
- CreateIniKeyValue ini$, sec$, "Microphone Description", S$, cmoOverwrite
- end if
- '$ELSE
- '' if Microphone or SoundBoard are set, record strings user saw at
- '' Setup time in .INI file, so Support can tell what was installed
- S$ = GetSymbolValue("Microphone")
- cch% = len(S$)
- if cch% > 0 then
- CreateIniKeyValue ini$, sec$, "Microphone Description", S$, cmoOverwrite
- end if
-
- S$ = GetSymbolValue("SoundBoard")
- cch% = len(S$)
- if cch% > 0 then
- CreateIniKeyValue ini$, sec$, "Sound Board Description", S$, cmoOverwrite
- end if
- '$ENDIF
- '$ENDIF
- '$ENDIF
-
- CreateIniKeyValue ini$, "Known Tools", "Voicebar", MakePath(FILE_TOOLBAR), cmoOverwrite
- CreateIniKeyValue ini$, "Known Tools", "Active Words", MakePath(FILE_ACTIVWRD), cmoOverwrite
- CreateIniKeyValue ini$, "Known Tools", "Tutorial", MakePath(FILEPATH_TUTOR), cmoOverwrite
- '$IFDEF TALKTOPLUS
- CreateIniKeyValue ini$, "Known Tools", "Browser", MakePath(FILE_BROWSER), cmoOverwrite
- '$ENDIF
-
- CreateIniKeyValue ini$, "Program Aliases", "Hgw", "Hgw1,#1", cmoOverwrite
- CreateIniKeyValue ini$, "Program Aliases", "Wpwin", "Wpwinfil,#1", cmoOverwrite
- CreateIniKeyValue ini$, "Program Aliases", "Amipro", "Amiproui", cmoOverwrite
- CreateIniKeyValue ini$, "Program Aliases", "123w", "L1wenv,#1", cmoOverwrite
- UIPop 1
-
- '$IFDEF AUSTIN
- ini$ = GetWindowsSysDir()
- ini$ = ini$ + "MWAVESND.INI"
- if BaseFiles$ = "Ultimedia" then
- '' set gain for IBM mike - leave others alone
- CreateIniKeyValue ini$, "WAVEIN", "MIC GAINS", "105", cmoOverwrite
- end if
- '$ENDIF
-
- CreateProgmanGroup Title$, "", cmoNone
- ShowProgmanGroup Title$, 1, cmoNone
- CreateProgmanItem Title$, "Voicebar",MakePath(FILE_TOOLBAR), "", cmoOverwrite
- '$IFDEF TALKTOPLUS
- CreateProgmanItem Title$, "Browser",MakePath(FILE_BROWSER), "", cmoOverwrite
- '$ENDIF
- '$IFDEF EXECUVOICE
- '$IFNDEF EXVOICEALL
- S$ = GetSymbolValue("mvdirectory")
-
- CreateProgmanItem Title$, "Pocket Mixer",S$+"PMix.exe", "", cmoOverwrite
- CreateProgmanItem Title$, "Pocket CD",S$+"pkcd.exe", "", cmoOverwrite
- '$ENDIF
- '$ENDIF
-
- '' Add desktop accessories we know about to VoiceControl group
- '' Sorry to bury this deep in middle of the code - but MSSetup BASIC
- '' seems not to support arrays of strings, which would be about the
- '' only way to define this stuff up at the top and reference it here
-
- CreateProgmanItem Title$, "Program Manager", "ProgMan.exe", "", cmoOverwrite
- CreateProgmanItem Title$, "File Manager", "WinFile.exe", "", cmoOverwrite
- '' (These are in same order as Win3.1 Accessories group)
- CreateProgmanItem Title$, "Write", "Write.exe", "", cmoOverwrite
- '$IFNDEF VOICETYPE
- '$IFNDEF EXECUVOICE
- CreateProgmanItem Title$, "Terminal", "Terminal.exe", "", cmoOverwrite
- '$ENDIF
- '$ENDIF
- CreateProgmanItem Title$, "Cardfile", "Cardfile.exe", "", cmoOverwrite
- CreateProgmanItem Title$, "Calendar", "Calendar.exe", "", cmoOverwrite
- CreateProgmanItem Title$, "Calculator", "Calc.exe", "", cmoOverwrite
- CreateProgmanItem Title$, "Media Player", "MPlayer.exe", "", cmoOverwrite
- CreateProgmanItem Title$, "Clock", "Clock.exe", "", cmoOverwrite
- CreateProgmanItem Title$, "Notepad", "Notepad.exe", "", cmoOverwrite
-
- CloseLogFile
- '* remove log when successful
- RemoveFile MakePath("LOGFILE.OUT"), cmoNone
- RestoreCursor hPrev%
-
- END SUB
-
- '**
- '** Purpose:
- '** Appends a file name to the end of a directory path,
- '** inserting a backslash character as needed.
- '** Arguments:
- '** szDir$ - full directory path (with optional ending "\")
- '** szFile$ - filename to append to directory
- '** Returns:
- '** Resulting fully qualified path name.
- '*************************************************************************
- FUNCTION MakePath (szFile$) STATIC AS STRING
- IF DEST$ = "" THEN
- MakePath = szFile$
- ELSEIF szFile$ = "" THEN
- MakePath = szDir$
- ELSEIF MID$(DEST$, LEN(DEST$), 1) = "\" THEN
- MakePath = DEST$ + szFile$
- ELSE
- MakePath = DEST$ + "\" + szFile$
- END IF
- END FUNCTION
-