home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hope PC Multimedia SuperPack 2
/
HOMEPC.iso
/
CAKEWALK
/
WINCAKE.MS_
/
WINCAKE.bin
Wrap
Text File
|
1996-02-22
|
30KB
|
943 lines
'**************************************************************************
'* $Header: G:/SRC/WCW/MSSETUP/VCS/WINCAKE.MSV 1.51 04 Jan 1996 11:37:24 FP $
'*
'* DESCRIPTION: MS-Setup script for Wincake and Wcwdemo.
'*
'* $Log: G:/SRC/WCW/MSSETUP/VCS/WINCAKE.MSV $
'*
'* Rev 1.51 04 Jan 1996 11:37:24 FP
'* Just have README.WRI icon title be README.WRI.
'*
'* Rev 1.50 21 Dec 1995 12:16:24 FP
'* Put in message concerning running Wave Profiler.
'*
'* Rev 1.49 21 Dec 1995 10:23:30 FP
'* Add messagebox to remind user to run Wave Profiler.
'*
'* Rev 1.48 19 Dec 1995 17:06:06 FP
'* Pro 4.01 update disk.
'*
'* Rev 1.47 19 Dec 1995 14:53:36 FP
'* Take out what's new section.
'*
'* Rev 1.46 14 Dec 1995 09:58:50 FP
'* Introduce whatsnew.wri.
'*
'* Rev 1.45 14 Nov 1995 17:56:34 PS
'* Added Import button to Chord dialog. CHORDSNEW.LIW vs. CHORDS.LIW.
'*
'* Rev 1.44 18 Sep 1995 15:02:24 PS
'* MSACM no longer installed.
'*
'* Rev 1.43 30 Aug 1995 19:05:30 FP
'* Associate BUN files with Cakewalk Pro Audio.
'*
'* Rev 1.42 30 Aug 1995 15:08:16 FP
'* RC1 changes to reflect PR name change to Cakewalk Pro Audio. Bring back
'* install of VPiano.
'*
'* Rev 1.41 23 Aug 1995 16:02:14 FP
'* Beta G changes.
'*
'* Rev 1.40 16 Aug 1995 11:59:16 FP
'* Beta F changes.
'*
'* Rev 1.39 09 Aug 1995 16:14:54 FP
'* Changes for BETA E.
'*
'* Rev 1.38 03 Aug 1995 13:18:52 FP
'* Beta D changes.
'*
'* Rev 1.37 18 Jul 1995 15:18:42 FP
'* BETA C changes and addition of MSACM.
'*
'* Rev 1.36 07 Jul 1995 16:16:44 FP
'* Beta B changes.
'*
'* Rev 1.35 16 Jun 1995 16:42:18 FP
'* Added Wave Profiler to Program group.
'*
'* Rev 1.34 13 Jun 1995 15:14:34 FP
'* Modified for Edison Beta. VPiano not installed.
'*
'* Rev 1.33 20 Dec 1994 16:16:28 PS
'* Final directory names for 3.01 RC1.
'*
'* Rev 1.32 20 Dec 1994 12:53:50 PS
'* Add VPIANO to Pro & Pro Demo.
'*
'* Rev 1.31 13 Dec 1994 18:48:20 PS
'* Added DEFAULT.INS, INS_NOT_OVERWRITTEN dialog.
'*
'* Rev 1.30 01 Dec 1994 16:43:38 PS
'* New, separate-product production method. Many changes for 3.01 Beta B.
'*
'* Rev 1.29 14 Nov 1994 19:31:14 PS
'* Set dest directory for beta testers.
'*
'* Rev 1.28 11 Nov 1994 19:06:48 PS
'* CAKEXP.EXE. Allow layout per product.
'*
'* Rev 1.27 09 May 1994 13:19:02 GH
'* Detect/require 80386 or higher, warn about no mouse.
'*
'* Rev 1.26 28 Apr 1994 21:26:02 GH
'* Use SRC.INS and MASTER.INS
'*
'* Rev 1.25 25 Apr 1994 13:40:06 GH
'* For CPW, changed DEST$ to C:\CPW30
'*
'* Rev 1.24 15 Apr 1994 15:34:48 GH
'* Changes for 2.5 Beta
'*
'* Rev 1.23 17 Feb 1994 13:17:14 PS
'* Associate .TPL files with us, too.
'*
'* Rev 1.22 11 Jan 1994 13:47:38 CP
'* Create a Home Studio Demo version.
'*
'* Rev 1.21 08 Nov 1993 15:41:42 CP
'* Change Lite name from WCWLITE to CAKEHS.
'*
'* Rev 1.20 23 Aug 1993 14:06:06 CP
'* Default installation directory for Demo is now C:\WCWDEMO to prevent
'* nuking of previous installations.
'*
'* Rev 1.19 24 May 1993 17:09:22 gwh
'* Removed serial number item from user info prompt.
'*
'* Rev 1.18 18 Apr 1993 17:50:40 gwh
'* More refinements for user name, organization, serial number stamping.
'*
'* Rev 1.17 01 Apr 1993 18:32:44 gwh
'* Prompt user for Name, Organization, and Serial number.
'* Stamp the .EXE resources for these items.
'*
'* Rev 1.16 18 Mar 1993 14:06:42 pws
'* No more need to clean up old DLL's in Windows sys dir (or TTSSEQ.INI).
'* Also check for existence of TTSSEQ.INI in install dir before copying
'* any TTSSEQ.INI found in Windows sys dir before copying new files.
'*
'* Rev 1.15 05 Mar 1993 12:08:38 pws
'* Fix support for multiple-disk installations, which had broken when
'* we started determining which product we were by testing for the
'* existence of name.EXE on the first diskette but it had been put
'* on the second one. Now determine which product we are by testing
'* for existence of product-specific section in SETUP.INF file.
'*
'* Rev 1.14 22 Dec 1992 13:17:36 pws
'* Reflect changed dialog id's in BLDCUI\DIALOGS.H.
'*
'* Rev 1.13 15 Dec 1992 14:47:18 pws
'* Added CTL3D.DLL.
'*
'* Rev 1.12 10 Nov 1992 12:37:56 pws
'* Made more dialogs product-specific.
'*
'* ---
'* See logfile for earlier revision comments
'*
'* Copyright (C) 1990- by Greg Hendershott. All rights reserved.
'**************************************************************************
'$INCLUDE 'setupapi.inc'
'$INCLUDE 'msdetect.inc'
'$INCLUDE 'msregdb.inc'
'These should have all been in SETUPAPI.INC.
'Note that duplicate definitions are errors and so are commented out!
'CONST MB_OK = &H0000
CONST MB_OKCANCEL = &H0001
CONST MB_ABORTRETRYIGNORE = &H0002
CONST MB_YESNOCANCEL = &H0003
CONST MB_YESNO = &H0004
CONST MB_RETRYCANCEL = &H0005
CONST MB_TYPEMASK = &H000F
'CONST MB_ICONHAND = &H0010
CONST MB_ICONQUESTION = &H0020
CONST MB_ICONEXCLAMATION = &H0030
CONST MB_ICONASTERISK = &H0040
CONST MB_ICONMASK = &H00F0
CONST MB_ICONINFORMATION = MB_ICONASTERISK
CONST MB_ICONSTOP = MB_ICONHAND
CONST MB_DEFBUTTON1 = &H0000
CONST MB_DEFBUTTON2 = &H0100
CONST MB_DEFBUTTON3 = &H0200
CONST MB_DEFMASK = &H0F00
CONST MB_APPLMODAL = &H0000
CONST MB_SYSTEMMODAL = &H1000
'CONST MB_TASKMODAL = &H2000
CONST MB_NOFOCUS = &H8000
CONST IDOK = 1
CONST IDCANCEL = 2
CONST IDABORT = 3
CONST IDRETRY = 4
CONST IDIGNORE = 5
CONST IDYES = 6
CONST IDNO = 7
'Dialog ID's. NOTE: THIS MUST MATCH BLDCUI\DIALOGS.H!
CONST WELCOME_PR = 170
CONST WELCOME_PD = 171
CONST WELCOME_HS = 172
CONST WELCOME_HD = 173
CONST WELCOME_XP = 174
CONST WELCOME_XD = 175
CONST ASKQUIT = 200
CONST DESTPATH = 300
CONST USERINFO = 310
CONST EXITFAILURE = 400
CONST EXITQUIT_PR = 670
CONST EXITQUIT_PD = 671
CONST EXITQUIT_HS = 672
CONST EXITQUIT_HD = 673
CONST EXITQUIT_XP = 674
CONST EXITQUIT_XD = 675
CONST EXITSUCCESS_PR = 770
CONST EXITSUCCESS_PD = 771
CONST EXITSUCCESS_HS = 772
CONST EXITSUCCESS_HD = 773
CONST EXITSUCCESS_XP = 774
CONST EXITSUCCESS_XD = 775
CONST APPHELP_PR = 970
CONST APPHELP_PD = 971
CONST APPHELP_HS = 972
CONST APPHELP_HD = 973
CONST APPHELP_XP = 974
CONST APPHELP_XD = 975
CONST INI_NOT_OVERWRITTEN = 1000
CONST INS_NOT_OVERWRITTEN = 1100
CONST CHORDS_NOT_OVERWRITTEN= 1200
CONST BADPATH = 6400
'Bitmap ID.
CONST LOGO = 1
GLOBAL COMPANY$
GLOBAL PROGNAME$
GLOBAL PRODUCTNAME$
GLOBAL DEST$ 'Default destination directory.
DECLARE FUNCTION MakePath (szDir$, szFile$) AS STRING
DECLARE SUB MaybeAssociate (szExt$)
DECLARE SUB SafeCopy(szShort$, szLong$)
DECLARE FUNCTION ArgStr$ (Fmt$, Arg1$, Arg2$, Arg3$, Arg4$)
INIT:
'======== beg LOCALIZATION ========
'These are the strings that need to be localized for different languages.
'Every one of them is located right here in this block.
CONST COMPANY_$ = "Twelve Tone Systems"
CONST PRODUCTNAME_PR_$ = "Cakewalk Pro Audio"
CONST PRODUCTNAME_PD_$ = "Cakewalk Pro Audio Demo"
CONST PRODUCTNAME_UP_$ = "Cakewalk Pro Audio Update"
CONST PRODUCTNAME_HS_$ = "Cakewalk Home Studio"
CONST PRODUCTNAME_HD_$ = "Cakewalk Home Studio Demo"
CONST PRODUCTNAME_XP_$ = "Cakewalk Express"
CONST PRODUCTNAME_XD_$ = "Cakewalk Express Demo"
CONST PROGMANGROUPNAME_PR_$ = "Cakewalk Pro Audio"
CONST PROGMANGROUPNAME_HS_$ = "Cakewalk Home Studio"
CONST PROGMANGROUPNAME_XP_$ = "Cakewalk Express"
CONST SETUP_$ = "Setup"
CONST SetTitleFmt_$ = "\1 \2"
CONST setupMessage_$ = "Setup Message"
CONST setupProblem_$ = "Setup Problem"
CONST setupQuestion_$ = "Setup Question"
CONST winVerFmt_$ = "Sorry, but your Windows version is \1 and \2 requires at least Windows \3."
CONST cpuFmt_$ = "Sorry, but \1 requires at least an 80386 or higher CPU."
CONST mouseFmt_$ = "Please