;//////////////////////////////////////////////////////////
;// Symantec C++ 6.0 Professional Install Script, Rev 4 //
;////////////////////////////////////////////////////////

;// 3.5 inch disks

[InstallVersion]
3.1

;//////////////////////////////////////////////// Main Script
[process]

    ;// Prep
    Backup.scppinst                 ;// Copy this install DLL to Windows dir
    Backup.ezmerge
    Backup.ezmergepif
    Bitmaps.SCPix                   ;// Display SCPP image
    SymantecCppProf = SetActiveCopy ;// Name copy section
    AllowIntlChars
    DisableUtils ;// Keeps NAV quiet
    
    CallProc.Welcome
    
    ;//////// Check for memory requirements, throw
    ;//////// 60 for VGA, 61 for SVGA, 62 for > SVGA
    CallProc.InspectSystem
    
    ;//////// Selection
    
    CallProc.DeselectAllComponents
    SelectOption.Req
    
    CallProc.ChooseInstallType

    #if switch01
        ;// Base extensions selected (base is always selected)
        ;// Set by: Complete, Full Win, Full DOS
        SelectOption.AddOpt
    #endif
    #if switch02
        ;// Minimum Windows components selected
        ;// Set by: Min Win, Min Win/DOS
        SelectOption.ReqTargWin
        SelectOption.Widde
        SelectOption.Wcltls
        SelectOption.Wsrt
        SelectOption.Wlarge
        SelectOption.Wsmall
    #endif
    #if switch03
        ;// Full Windows selected
        ;// Set by Complete, Full WIn
        SelectOption.ReqTargWin
        SelectOption.WinDev
    #endif
    #if switch04
        ;// Minimum DOS seleced
        ;// Set by Min DOS, Min Win/DOS
        SelectOption.ReqTargDos
        SelectOption.Dcltls
        SelectOption.Dsmall
        SelectOption.Dlarge
        SelectOption.Ddosx
    #endif
    #if switch05
        ;// Full DOS selected
        ;// Set by Complete, Full DOS
        SelectOption.ReqTargDos
        SelectOption.DosDev
    #endif

    #if switch06
        ;// Custom install was checked
        PrimarySelect
    #endif

    ;//////// Correct additional dependancies
    switch25 = IsOptionSelected.Wmfc
    #if switch25
        SelectOption.Wlarge
        SelectOption.ReqTargWin
    #endif
    
    CallProc.TestConsistency
    
    #if switch20
        ;// DOSX and source
        SelectOption.DOSXSrc
    #endif
    
    #if switch21
        ;// Win32 and source
        SelectOption.W32Src
    #endif
    
    #if switch22
        ;// DOS required components needed
        SelectOption.ReqTargDos
    #endif
    
    #if switch23
        ;// Windows required components needed
        SelectOption.ReqTargWin
        #if switch60
            SelectOption.W640cfg
        #endif
        
        #if switch61
            SelectOption.W800cfg
        #endif
        
        #if switch62
            SelectOption.W1024cfg
        #endif
    #endif
    
    #if switch24
        ;// Some debugger component selected
        SelectOption.ReqDB
    #endif
    
    ;//////// Select target drive
    TargetDrive
    CallProc.WarnIfOverwrite
    #if switch40
        ;// One chance to re-select
        TargetDrive
    #endif
    
    ResetTarget.SetTarget2ToBin
    ResetTarget.SetTarget3ToHelp
    ResetTarget.SetTarget4ToWin32sInstDir
    ResetTarget.SetTarget5ToCopyOfTarget
    
    ;//////// Modify autoexec
    ;// Backup system files
    Backup.OriginalSysFiles
    CallProc.TellOfBackup

    CallProc.InspectInclude     ;// Tests for previously chosen options
                                ;// Throws: 30->Windows (any), 31->MFC, 32->Win32s
    
    #ifnot switch30
        switch30=IsOptionSelected.ReqTargWin
    #endif
    #if switch30
        ;// Some form of Windows targeting chosen or in existence
        
        ;// Set switch for any part of MFC
        #ifnot switch31
            ;// If not previously selected
            switch31 = IsOptionSelected.Wmfc
        #endif
        
        ;//Set switch for any part of Win32s
        #ifnot switch32
            ;//If not previously selected
            switch32 = IsOptionSelected.Wlib32s
        #endif
        
        ;// Check for 32s and MFC
        #if switch31
            #if switch32
                ;// MFC and 32s chosen
                switch33 = TRUE
                switch31 = FALSE
                switch32 = FALSE
            #endif
        #endif
        #if switch31
            ;// MFC selected
            ModifyTextFile.MFCAutoexecSCPP
        #else
            #if switch32
                ;// 32s selected
                ModifyTextFile.32sAutoexecSCPP
            #else
                #if switch33
                    ;// 32s and MFC chosen
                    ModifyTextFile.32sMFCAutoexecSCPP
                #else
                    ;// Just plain Windows chosen
                    ModifyTextFile.Win16OnlyAutoexecSCPP
                #endif
            #endif
        #endif
    #else
        ;// DOS only
        ModifyTextFile.AutoexecSCPP
    #endif
    
    ;// Perform copy
    CallProc.PrepCustomAdvos
    copy
    CallProc.CleanupCustomAdvos
    
    ;// Modify system.ini
    switch41 = IsOptionSelected.Widde
    #if switch41
        CallProc.TellIniChanges
        DelFromIni.DelVxds
        AddToIni.AddVxds
    #endif
 
    ;// Deal with BlueSky
    switch44 = IsOptionSelected.Wbluesky
    #if switch44
        ;// Changes to win.ini
        ;// removed per orders -- CallProc.TellBlueskyChanges
        DelFromIni.BSExtenDel
        AddToIni.BSExtenAdd
        DelFromIni.BSBlueDel
        AddToIni.BSBlueAdd
        CallProc.FixupVPrgIni
    #endif

    ;// Deal with SFIND, from viper install script
    ; DelFromIni.OldViewer-Filemap
    ; DelFromIni.OldViewer-Parsers
    ; UpdateIni.AddViewer-Filemap
    ; UpdateIni.AddViewer-Parsers
    
    ;// Reconstitute SDK API help file
    switch42 = IsOptionSelected.Wapihlp
    #if switch42
        CallProc.MergeSplitFiles
    #endif
 
    ;// Create groups
    #if switch30
        groups
    #endif
    
    switch43 = IsOptionSelected.Wlib32s
    #if switch43
        CallProc.Instruct32s
    #endif
    ;// Clean-up
    CallProc.ExitHookProc
    delete.delscppinst
    delete.delezmerge
    delete.delezmergepif
    EnableUtils

switch50 = IsRebootRequested
#ifnot switch50
   End.ByeNoReboot
#else
   End.ByeReboot
#endif

;//////////////////////////////////////////////// Custom DLL item

[SubProc]
Return

[scppinst]
scppinst.dl_, scppinst.dll, SOURCE, WINDOWS

[delscppinst]
scppinst.dll, WINDOWS

[ezmerge]
ezmerge.exe, ezmerge.exe, SOURCE, WINDOWS

[ezmergepif]
ezmerge.pi_, ezmerge.pif, SOURCE, WINDOWS

[delezmerge]
ezmerge.exe, WINDOWS

[delezmergepif]
ezmerge.pif, WINDOWS

[Welcome]
dll=scppinst.dll
function=ShowWelcomeDialog

[InspectSystem]
dll=scppinst.dll
function=InspectSystem

[DeselectAllComponents]
dll=scppinst.dll
function=DeselectAllComponents

[ChooseInstallType]
dll=scppinst.dll
function=ChooseInstallType

[TestConsistency]
dll=scppinst.dll
function=TestConsistency

[TellOfBackup]
dll=scppinst.dll
function=TellBackup

[InspectInclude]
dll=scppinst.dll
function=InspectInclude

[WarnIfOverwrite]
dll=scppinst.dll
function=WarnIfOverwrite

[MergeSplitFiles]
dll=scppinst.dll
function=MergeSplitFiles

[Instruct32s]
dll=scppinst.dll
function=Instruct32s

[TellIniChanges]
dll=scppinst.dll
function=TellIniChanges

[TellBlueskyChanges]
dll=scppinst.dll
function=TellBlueskyChanges

[CDNote]
dll=scppinst.dll
function=CDNote

[ResetSourceToRealSource]
dll=scppinst.dll
function=CDSourceAdjust

[ExitHookProc]
dll=scppinst.dll
function=UnlockScppinstDll

[PrepCustomAdvos]
dll=scppinst.dll
function=PrepCustomAdvos

[CleanupCustomAdvos]
dll=scppinst.dll
function=CleanupCustomAdvos

[FixupVPrgIni]
dll=scppinst.dll
function=FixupVPrgIni

[SymantecCppProf:ZipHook]
dll = scppinst.dll
function = SCPPZipHook

;//////////////////////////////////////////////// Item and copying info

;////////////////////////////////////// Components

[SymantecCppProf]
copymain.Req,       "Required Files (880K)",                        880, Y, N, N
;// Windows Development
copymain.WinDev,    "Windows Development (35640K)",                   0, N, Y, Y
copysub.Widde,      "Windows Integrated Environment (6416K)",       6416
copysub.Wsrt,       "Symantec Resource Toolkit (968K)",             968
copysub.Wbluesky,   "Visual Programmer (1264K)",                    1264
copysub.Wxdmp,      "Execution Dumper (80K)",                       80
copysub.Wcrshan,    "Crash Analyzer (744K)",                        744
copysub.Wnetdb,     "Network and Remote debuggers (96K)",           96
copysub.Wcltls,     "Command-line development utilities (528K)",    528
copysub.Wadvtls,    "Advanced utilities and files (360K)",          360
copysub.Whidde,     "IDDE Help File (1500K)",                       1500
copysub.Wcpphlp,    "Standard C/C++ Libraries Help (344K)",         344
copysub.Wapihlp,    "Windows API Help (3312K)",                     3312
copysub.Wpenhlp,    "Pen and Multimedia Help (704K)",               704
copysub.Wmfchlp,    "MFC Help (2544K)",                             2544
copysub.Wsmall,     "Small memory model libraries (320K)",          320
copysub.Wmedium,    "Medium memory model libraries (328K)",         328
copysub.Wcompact,   "Compact memory model libraries (344K)",        344
copysub.Wlarge,     "Large memory model libraries (360K)",          360
copysub.Wlib32s,    "Win32s and libraries (3056K)",                 3056
copysub.Wadv32s,    "Advanced Win32s components (4264K)",           4264
copysub.Wmfc,       "Microsoft Foundation Classes (9727K)",         9727
copysub.Wmfcexam,   "MFC example code (3584K)",                     3584
copysub.Wmfcsrc,    "MFC source code (1504K)",                      1504
copysub.Wwinexam,   "General Windows example code (864K)",          864
copysub.Wredist,    "Microsoft Redistributible DLLs (1800K)",       1800
;// Dos development
copymain.DosDev,    "DOS Development (4624K)",                         0, N, Y, Y
copysub.Dcltls,     "Basic command-line tools (1416K)",             1416
copysub.Dadvcltls,  "Advanced command-line utilities (184K)",       184
copysub.Ddb,        "DOS-Hosted Debugging (1136K)",                 1136
copysub.Dsmall,     "Small memory model libraries (288K)",          288
copysub.Dmedium,    "Medium memory model libraries (280K)",         280
copysub.Dcompact,   "Compact memory model libraries (296K)",        296
copysub.Dlarge,     "Large memory model libraries (304K)",          304
copysub.Dvirtual,   "Virtual memory model libraries (304K)",        304
copysub.Ddosx,      "32-Bit memory model libraries (344K)",         344
copysub.Ddosexam,   "DOS example code (72K)",                       72
;// General stuff
copymain.AddOpt,    "OS independent options (2496K)",               0, N, Y, Y
copysub.Asrc,       "Library source code (2120K)",                  2120
; copysub.Agenexam,   "OS-independent samples (0K)",                0
copysub.Actools,    "Advanced utility and library source (336K)",   336
;// Set in script based on switches
copymain.ReqTargDos, "Required Components to target DOS (8K)",      8, N, N, N
copymain.ReqTargWin, "Required components to target (968K)",        968, N, N, N
copymain.ReqDB,      "Required Debugger components (168K)",          168, N, N, N
copymain.DOSXSrc,    "32-bit DOS source code (744K)",                744, N, N, N
copymain.W32Src,     "Win32 library source code (128K)",             128, N, N, N
copymain.W640cfg,    "VGA configuration files",                      2, N, N, N
copymain.W800cfg,    "SuperVGA configuration files",                 2, N, N, N
copymain.W1024cfg,   "High resolution configuration files",          2, N, N, N

;////////////////////////////////////// Disk layout
[disks]
1=A:\, "Symantec C++ Professional, Disk 1"
2=A:\, "Symantec C++ Professional, Disk 2"
3=A:\, "Symantec C++ Professional, Disk 3"
4=A:\, "Symantec C++ Professional, Disk 4"
5=A:\, "Symantec C++ Professional, Disk 5"
6=A:\, "Symantec C++ Professional, Disk 6"
7=A:\, "Symantec C++ Professional, Disk 7"
8=A:\, "Symantec C++ Professional, Disk 8"
9=A:\, "Symantec C++ Professional, Disk 9"
10=A:\, "Symantec C++ Professional, Disk 10"
11=A:\, "Symantec C++ Professional, Disk 11"
12=A:\, "Symantec C++ Professional, Disk 12"
13=A:\, "Symantec C++ Professional, Disk 13"
14=A:\, "Symantec C++ Professional, Disk 14"
15=A:\, "Symantec C++ Professional, Disk 15"
16=A:\, "Symantec C++ Professional, Disk 16"
17=A:\, "Symantec C++ Professional, Disk 17"

[SymantecCppProf.disk1]
dwsrclib.zp!,  "16/32 bit common sources",                          Link:Asrc,       zipddirs
mfclib1.zp!,   "MFC exe libraries",                                 Link:Wmfc,       zipddirs
readmes.zp!,   "'Readme' files",                                    Link:Req,        zipddirs
wredist2.zp!,  "Windows MS Redistributible DLLs",                   Link:Wredist,    zipddirs

[SymantecCppProf.disk2]
dosexam.zp!,   "DOS sample code",                                   Link:Ddosexam,   zipddirs
w32idde.zp!,   "Win32s IDDE Components",                            Link:Wlib32s,    zipddirs
widde2.zp!,    "Integrated Development and Debugging Environment",  Link:Widde,      zipddirs
wredist1.zp!,  "Windows MS Redistributible DLLs",                   Link:Wredist,    zipddirs

[SymantecCppProf.disk3]
ddebug.zp!,    "DOS Debuggers",                                     Link:Ddb,        zipddirs
hwinapi2.zp!,   "Windows API help",                                 Link:Wapihlp,    zipddirs

[SymantecCppProf.disk4]
hmfc1.zp!,     "MFC Help",                                          Link:Wmfchlp,    zipddirs
mfcread.zp!,   "MFC readmes",                                       Link:Wmfc,       zipddirs
w32sadv2.zp!,  "Advanced Win32s Components",                        Link:Wadv32s,    zipddirs
wcmplr1.zp!,   "Windows-hosted compiler",                           Link:Widde,      zipddirs
wxdmp2.zp!,    "Windows Execution Dumper",                          Link:Wxdmp,      zipddirs

[SymantecCppProf.disk5]
ctools.zp!,    "Advanced tools and library sources",                Link:Actools,    zipddirs
hwinapi1.zp!,  "Windows API help",                                  Link:Wapihlp,    zipddirs
mfclib3.zp!,   "MFC import libraries",                              Link:Wmfc,       zipddirs
w640cfg.zp!,   "VGA configuration files",                           Link:W640cfg,    zipddirs
w800cfg.zp!,   "Super VGA configuration files",                     Link:W800cfg,    zipddirs
w1024cfg.zp!,  "High resolution configuration files",               Link:W1024cfg,   zipddirs

[SymantecCppProf.disk6]
cmake.zp!,     "Command-line make",                                 Link:Dcltls,     zipddirs
hwinapi3.zp!,  "Windows API help",                                  Link:Wapihlp,    zipddirs
vprg.zp!,      "Visual Programmer",                                 Link:Wbluesky,   zipddirs

[SymantecCppProf.disk7]
dwdbxtra.zp!,  "Debugger components",                               Link:ReqDB,      zipddirs
mfclibd1.zp!,  "MFC exe debug libraries",                           Link:Wmfc,       zipddirs
wcmplr2.zp!,   "Windows-hosted compiler",                           Link:Widde,      zipddirs

[SymantecCppProf.disk8]
ccmplr1.zp!,   "Command-line compiler driver",                      Link:Dcltls,     zipddirs
mfcdlld.zp!,   "MFC debug DLLs",                                    Link:Wmfc,       zipddirs
mfclibd2.zp!,  "MFC DLL debug libraries",                           Link:Wmfc,       zipddirs

[SymantecCppProf.disk9]
hcpp.zp!,      "Standard Libraries Help Files",                     Link:Wcpphlp,    zipddirs
w32sadv1.zp!,  "Advanced Win32s Components",                        Link:Wadv32s,    zipddirs
wwrescmp.zp!,  "Windows-hosted resource compiler",                  Link:Widde,      zipddirs

[SymantecCppProf.disk10]
dwincl.zp!,   "DOS and Windows include files",                      Link:Req,        zipddirs
hmfc2.zp!,     "MFC Help",                                          Link:Wmfchlp,    zipddirs
w32smin1.zp!,  "Win32s",                                            Link:Wlib32s,    zipddirs

[SymantecCppProf.disk11]
dlcompct.zp!,  "DOS compact memory model",                          Link:Dcompact,   zipddirs
hpenmm.zp!,    "Pen and Multimedia help",                           Link:Wpenhlp,    zipddirs
mfcsamp.zp!,   "MFC Classes example code",                          Link:Wmfcexam,   zipddirs

[SymantecCppProf.disk12]
ccmplr2.zp!,   "Command-line compiler for 386 machines",            Link:Dcltls,     zipddirs
cutils1.zp!,   "Command-line utilities",                            Link:Dcltls,     zipddirs
widde1.zp!,    "Integrated Development and Debugging Environment",  Link:Widde,      zipddirs
wsrt.zp!,      "Symantec Resource Toolkit",                         Link:Wsrt,       zipddirs

[SymantecCppProf.disk13]
hidde.zp!,     "Integrated Development and Debugging Environment",  Link:Whidde,      zipddirs
mfcsrc.zp!,    "MFC source files",                                  Link:Wmfcsrc,    zipddirs
wmake.zp!,     "Windows-hosted make",                               Link:Widde,      zipddirs

[SymantecCppProf.disk14]
mfcdll.zp!,    "MFC DLLs",                                          Link:Wmfc,       zipddirs
wcrshan.zp!,   "Windows Crash Analyzer",                            Link:Wcrshan,    zipddirs
widde3.zp!,    "Integrated Development and Debugging Environment",  Link:Widde,      zipddirs
widde4.zp!,    "Integrated Development and Debugging Environment",  Link:Widde,      zipddirs
win32sam.zp!,  "Win32s Samples",                                    Link:Wlib32s,    zipddirs

[SymantecCppProf.disk15]
clinker.zp!,   "DOS Linker",                                        Link:Dcltls,     zipddirs
hmfc3.zp!,     "MFC Help",                                          Link:Wmfchlp,    zipddirs
mfclib2.zp!,   "MFC DLL libraries",                                 Link:Wmfc,       zipddirs
w32incl.zp!,   "Win32s include files",                              Link:Wlib32s,    zipddirs
wincl.zp!,     "Windows include files",                             Link:ReqTargWin, zipddirs
winexam.zp!,   "Windows example code",                              Link:Wwinexam,   zipddirs
wlinker.zp!,   "Windows-hosted linker",                             Link:Widde,      zipddirs

[SymantecCppProf.disk16]
d32bit.zp!,    "DOS 32-bit memory model",                           Link:Ddosx,      zipddirs
dsrc32.zp!,    "32-bit DOS library sources",                        Link:DOSXSrc,    zipddirs
w32sadv3.zp!,  "Advanced Win32s Components",                        Link:Wadv32s,    zipddirs
wcrescmp.zp!,  "Command-line resource compiler",                    Link:Wcltls,     zipddirs
wimplib.zp!,   "Windows import librarian",                          Link:ReqTargWin, zipddirs
wl32.zp!,      "Win32s libraries",                                  Link:Wlib32s,    zipddirs
wlcompct.zp!,  "Windows compact memory model",                      Link:Wcompact,   zipddirs
wllarge.zp!,   "Windows large memory model",                        Link:Wlarge,     zipddirs
wlmedium.zp!,  "Windows medium memory model",                       Link:Wmedium,    zipddirs
wutils2.zp!,   "Advanced Windows utilities and files",              Link:Wadvtls,    zipddirs

[SymantecCppProf.disk17]
ccvpk.zp!,     "Command-line CV4 information packer",               Link:Dcltls,     zipddirs
cutils2.zp!,   "Advanced command-line utilities",                   Link:Dadvcltls,  zipddirs
dllarge.zp!,   "DOS large memory model",                            Link:Dlarge,     zipddirs
dlmedium.zp!,  "DOS medium model",                                  Link:Dmedium,    zipddirs
dlsmall.zp!,   "DOS small memory model",                            Link:Dsmall,     zipddirs
dlvirt.zp!,    "DOS virtual code model",                            Link:Dvirtual,   zipddirs
mfcincl.zp!,   "MFC Include Files",                                 Link:Wmfc,       zipddirs
w32smin2.zp!,  "Win32s",                                            Link:Wlib32s,    zipddirs
wcutils.zp!,   "Command-line Windows utilities",                    Link:Wcltls,     zipddirs
wcvpk.zp!,     "Windows-hosted CV4 information packer",             Link:Widde,      zipddirs
wlallmod.zp!,  "Windows libraries for all memory models",           Link:ReqTargWin, zipddirs
wlsmall.zp!,   "Windows small memory model",                        Link:Wsmall,     zipddirs
wnetdb.zp!,    "Windows Network and Remote Debuggers",              Link:Wnetdb,     zipddirs
wsrc32.zp!,    "32-bit Windows library sources",                    Link:W32Src,     zipddirs
wutils1.zp!,   "Windows-hosted utilities",                          Link:Widde,      zipddirs
wxdmp1.zp!,    "Windows Execution Dumper",                          Link:Wxdmp,      zipddirs

;////////////////////////////////////// 
[SymantecCppProf:CopyDialog]
caption = "Expanding Files..."       ; Caption of dialog
posx = -10                         ; x location of dialog
posy = -10                         ; y location of dialog

[SymantecCppProf:Primary]
caption = "Symantec C++ Custom Installation"
button1 = "Components"
button2 = "Components"
button3 = "Components"
; button4 = "Components"
; button5 = "Components"
text = SymCppCustInstText

[SymCppCustInstText]
"Select the items you wish to install.  Select a button"
"on the right to view and choose individual components."

[SymantecCppProf:Component]
caption = "Component Selection"    ; Caption of dialog
                                   ; Descriptive text
text = "Please choose the components you wish to install.  Highlighted items are selected."

;//////////////////////////////////////////////// Groups

[groups]
"Symantec C++", symcpp6.grp

[Symantec C++]
"Symantec C++",                 scw.exe,        Widde,      0,  TARGET2
"Symantec Resource Toolkit",    srt.exe,        Wsrt,       0,  TARGET2
"Visual Programmer",            vprg.exe,       Wbluesky,   0,  TARGET2
"Crash Analyzer",               scaw.exe,       Widde,      0,  TARGET2
"Execution Monitor",            med.exe,        Widde,      0,  TARGET2
"Hotspot Editor",               shed.exe,       Widde,      0,  TARGET2
"Remote Debugger",              rmserwin.exe,   Wnetdb,     0,  TARGET2
"Network Debugger",             rmnetwin.exe,   Wnetdb,     0,  TARGET2
"Windows 3.1 SDK",              win31wh.hlp,    Wapihlp,    0,  TARGET3, winhelp.exe, WINDOWS
"MCI Command Strings",          mcistrwh.hlp,   Wpenhlp,    0,  TARGET3, winhelp.exe, WINDOWS
"Pen API",                      penapiwh.hlp,   Wpenhlp,    0,  TARGET3, winhelp.exe, WINDOWS
"Multimedia Reference",         win31mwh.hlp,   Wpenhlp,    0,  TARGET3, winhelp.exe, WINDOWS
"Win32s Programmer Reference",  win32s.hlp,     Wpenhlp,    0,  TARGET3, winhelp.exe, WINDOWS
"Symantec C++ Libraries",       scwfunc.hlp,    Wcpphlp,    0,  TARGET3, winhelp.exe, WINDOWS
; "Standard C++ Libraries",       scppref.hlp,    Wcpphlp,    0,  TARGET3, winhelp.exe, WINDOWS
"MFC Help",                     mfc.hlp,        Wmfchlp,    0,  TARGET3, winhelp.exe, WINDOWS
"MFC Tech Notes",               mfcnotes.hlp,   Wmfchlp,    0,  TARGET3, winhelp.exe, WINDOWS
"MFC Samples Help",             mfcsamp.hlp,    Wmfchlp,    0,  TARGET3, winhelp.exe, WINDOWS
"Win32s Setup",                 setup.exe,      Wlib32s,    0,  TARGET4
; "Symantec C++ 6.0 Readme",      readme.txt,     Wreadmes,   0,

;//////////////////////////////////////////////// Message Boxes

[ByeNoReboot]
caption = "Symantec C++ - Install Complete"
"Please review the files in the Readme directory for last"
"minute changes and technical notes."
" "
"If you wish to close other running applications, you"
"may do so now by switching to them, via the task list,"
"prior to closing this dialog."
" "
"Restarting Windows is suggested."

[ByeReboot]
caption = "Symantec C++ - Install Complete"
"Please review the files in the Readme directory for last"
"minute changes and technical notes."
" "
"If you wish to close other running applications, you"
"may do so now by switching to them, via the task list,"
"prior to closing this dialog."
" "
"Rebooting now is recommended.  Please remove any"
"floppy disks from the drives."

;//////////////////////////////////////////////// Modification routines

;///////////////////////////////// Target options

[SetTarget2ToBin]
reset = TARGET2
location = %s\bin, TARGET

[SetTarget3ToHelp]
reset = TARGET3
location = %s\help, TARGET

[SetTarget4ToWin32sInstDir]
reset = TARGET4
location = %s\win32s\floppy, TARGET

[SetTarget5ToCopyOfTarget]
reset = TARGET5
location = %s, TARGET

[SetTargetToBin]
reset = TARGET
location = %s, TARGET2

[SetTargetToHelp]
reset = TARGET
location = %s, TARGET3

[SetTargetToWin32sInstDir]
reset = TARGET
location = %s, TARGET4

[RestoreOriginalTarget]
reset = TARGET
location = %s, TARGET5

;///////////////////////////////// Autoexec modifications

;////////////////// Win 3.1 only

[Win16OnlyAutoexecSCPP]
caption   = "Symantec C++ 6.0 -- Modify AUTOEXEC.BAT File"
text1    = "The following line(s) need to be changed in your autoexec.bat file:"
FileSpec   = c:\autoexec.bat
filetype = autoexec
rem1 = "rem"            
rem2 =
rem3 =
rem4 =
findrems = 0
EditCaption = "Editing AUTOEXEC.BAT"
EditError1 = "A problem was encountered preparing the new autoexec.bat"
EditError2 = " "
EditError3 = "You should:"
EditError4 = "1. Review the lines that need to be added"
EditError5 = "2. Select the 'Save the required changes to new file's option"
EditError6 = "3. Continue and complete the Install Process"
EditError7 = "4. Make the changes to the autoexec.bat file later"

AddPath   = TARGET2
AddItems   = Win16OnlyAutoexecAddItems
RemItems   = Win16OnlyAutoexecRemItems

[Win16OnlyAutoexecRemItems]
"set include=*"
"set lib=*"
"set help=*"

[Win16OnlyAutoexecAddItems]
"set include=|s\include;|s\include\win16", target, target
"set lib=%s\lib", TARGET
"set help=%s\help", TARGET


;////////////////// With MFC

[MFCAutoexecSCPP]
caption   = "Symantec C++ 6.0 -- Modify AUTOEXEC.BAT File"
text1    = "The following line(s) need to be changed in your autoexec.bat file:"
FileSpec   = c:\autoexec.bat
filetype = autoexec
rem1 = "rem"            
rem2 =
rem3 =
rem4 =
findrems = 0
EditCaption = "Editing AUTOEXEC.BAT"
EditError1 = "A problem was encountered preparing the new autoexec.bat"
EditError2 = " "
EditError3 = "You should:"
EditError4 = "1. Review the lines that need to be added"
EditError5 = "2. Select the 'Save the required changes to new file's option"
EditError6 = "3. Continue and complete the Install Process"
EditError7 = "4. Make the changes to the autoexec.bat file later"

AddPath   = TARGET2
AddItems   = MFCAutoexecAddItems
RemItems   = MFCAutoexecRemItems

[MFCAutoexecRemItems]
"set include=*"
"set lib=*"
"set help=*"

[MFCAutoexecAddItems]
"set include=|s\include;|s\include\win16;|s\mfc\include", target, target, target
"set lib=|s\lib;|s\mfc\lib", TARGET, TARGET
"set help=%s\help", TARGET


;////////////////// With Win32s

[32sAutoexecSCPP]
caption   = "Symantec C++ 6.0 -- Modify AUTOEXEC.BAT File"
text1    = "The following line(s) need to be changed in your autoexec.bat file:"
FileSpec   = c:\autoexec.bat
filetype = autoexec
rem1 = "rem"            
rem2 =
rem3 =
rem4 =
findrems = 0
EditCaption = "Editing AUTOEXEC.BAT"
EditError1 = "A problem was encountered preparing the new autoexec.bat"
EditError2 = " "
EditError3 = "You should:"
EditError4 = "1. Review the lines that need to be added"
EditError5 = "2. Select the 'Save the required changes to new file's option"
EditError6 = "3. Continue and complete the Install Process"
EditError7 = "4. Make the changes to the autoexec.bat file later"

AddPath   = TARGET2
AddItems   = 32sAutoexecAddItems
RemItems   = 32sAutoexecRemItems

[32sAutoexecRemItems]
"set include=*"
"set lib=*"
"set help=*"

[32sAutoexecAddItems]
"set include=|s\include;|s\include\win16;|s\include\win32", target, target, target
"set lib=%s\lib", TARGET
"set help=%s\help", TARGET


;////////////////// With Win32s and MFC

[32sMFCAutoexecSCPP]
caption   = "Symantec C++ 6.0 -- Modify AUTOEXEC.BAT File"
text1    = "The following line(s) need to be changed in your autoexec.bat file:"
FileSpec   = c:\autoexec.bat
filetype = autoexec
rem1 = "rem"            
rem2 =
rem3 =
rem4 =
findrems = 0
EditCaption = "Editing AUTOEXEC.BAT"
EditError1 = "A problem was encountered preparing the new autoexec.bat"
EditError2 = " "
EditError3 = "You should:"
EditError4 = "1. Review the lines that need to be added"
EditError5 = "2. Select the 'Save the required changes to new file's option"
EditError6 = "3. Continue and complete the Install Process"
EditError7 = "4. Make the changes to the autoexec.bat file later"

AddPath   = TARGET2
AddItems   = 32sMFCAutoexecAddItems
RemItems   = 32sMFCAutoexecRemItems

[32sMFCAutoexecRemItems]
"set include=*"
"set lib=*"
"set help=*"

[32sMFCAutoexecAddItems]
"set include=|s\include;|s\include\win16;|s\include\win32;|s\mfc\include", target, target, target, target
"set lib=|s\lib;|s\mfc\lib", TARGET, TARGET
"set help=%s\help", TARGET


;////////////////// DOS only

[AutoexecSCPP]
caption   = "Symantec C++ 6.0 -- Modify AUTOEXEC.BAT File"
text1    = "The following line(s) need to be changed in your autoexec.bat file:"
FileSpec   = c:\autoexec.bat
filetype = autoexec
rem1 = "rem"            
rem2 =
rem3 =
rem4 =
findrems = 0
EditCaption = "Editing AUTOEXEC.BAT"
EditError1 = "A problem was encountered preparing the new autoexec.bat"
EditError2 = " "
EditError3 = "You should:"
EditError4 = "1. Review the lines that need to be added"
EditError5 = "2. Select the 'Save the required changes to new file's option"
EditError6 = "3. Continue and complete the Install Process"
EditError7 = "4. Make the changes to the autoexec.bat file later"

AddPath   = TARGET2
AddItems   = AutoexecAddItems
RemItems   = AutoexecRemItems

[AutoexecRemItems]
"set include=*"
"set lib=*"
"set help=*"

[AutoexecAddItems]
"set include=%s\include", target
"set lib=%s\lib", TARGET

;///////////////////////////////// system.ini modifications

[DelVxds]
IniName = system.ini
SectionName = 386enh
device = *vcv.386
device = *cvw1.386
device = *vmb.386
device = *tddebug.386
device = *mslook.386
device = *windebug.386
device = *scwdebug.386

[AddVxds]
IniName = system.ini
SectionName = 386enh
device = %s\scwdebug.386, target2
device = %s\windebug.386, target2

;///////////////////////////////// win.ini modifications
[BSExtenDel]
IniName = win.ini
SectionName = Extensions
WMP = *WMP
WM5 = *WM5

[BSExtenAdd]
IniName = win.ini
SectionName = Extensions
WMP=%s\VPRG.EXE ^.WMP, target2
WM5=%s\VPRG.EXE ^.WM5, target2

[BSBlueDel]
IniName = win.ini
SectionName = "Blue Sky SWC"
VPRG=*ini
"EFM Setup File"=*ini
"Settings Directory"=*settings

[BSBlueAdd]
IniName = win.ini
SectionName = "Blue Sky SWC"
VPRG= %s\vprg.ini, target2
"EFM Setup File"= %s\efm.ini, target2
"Settings Directory"= %s\settings, target2

;///////////////////////////////// ndw.ini modifications
[AddViewer-Filemap]
IniName=ndw.ini
SectionName=Viewer-Filemap
TXT=DOC.PRS
DOC=DOC.PRS
WPS=DOC.PRS
SAM=DOC.PRS
BAT=DOC.PRS
INI=DOC.PRS
SYS="DOC.PRS HEX.PRS"
EXE=PROG.PRS
DLL=PROG.PRS
PRS=PROG.PRS
DSP=PROG.PRS
NSS=PROG.PRS
OVL=PROG.PRS
OVR=PROG.PRS
OV1=PROG.PRS
OV2=PROG.PRS
OV3=PROG.PRS
OV4=PROG.PRS
COM="PROG.PRS HEX.PRS"
ZIP=ZIP.PRS
ZOO=ZIP.PRS
ARC=ZIP.PRS
PAK=ZIP.PRS
LZH=ZIP.PRS
_SE="DOC.PRS HEX.PRS"

[AddViewer-Parsers]
IniName=ndw.ini
SectionName=Viewer-Parsers
DOC.PRS="Documents & Text"
ZIP.PRS="Compressed Archives"
PROG.PRS=Programs
HEX.PRS="Hex Dump"

[OldViewer-Filemap]
IniName = ndw.ini
SectionName = Viewer-Filemap     
TXT=*
DOC=*
WPS=*
SAM=*
BAT=*
INI=*
SYS=*
EXE=*
DLL=*
PRS=*
DSP=*
NSS=*
OVL=*
OVR=*
OV1=*
OV2=*
OV3=*
OV4=*
COM=*
ZIP=*
ZOO=*
ARC=*
PAK=*
LZH=*
_SE=*

[OldViewer-Parsers]
IniName = ndw.ini
SectionName = Viewer-Parsers
DOC.PRS=*
ZIP.PRS=*
PROG.PRS=*
HEX.PRS=*

;//////////////////////////////////////////////// Additional Routines

[TargetDrive]
caption =  "Install Symantec C++ To..."
defpath =  C:\SC
text   =  "Please select the drive and directory you wish to install Symantec C++ to:"
reqspace=  "Approximate disk space required"

[FileCopy]
errorcaption  =  "Error Copying Files"
insertcaption =  "Insert Diskette"

[OriginalSysFiles]
system.ini, system.sc0, WINDOWS, WINDOWS
win.ini, win.sc0, WINDOWS, WINDOWS
c:\autoexec.bat, c:\autoexec.sc0, DUMMY, DUMMY

[errors]
noprev  =  "Symantec Install for Windows is already running!"

[cancel]
caption = "Symantec C++ Install"
text   = "Are you sure you want to exit?"

[cancelshell]
caption = "Symantec C++"
text = "When you cancel Install, \nWindows will exit to the DOS prompt\nso that we can reset the Windows environment.\nAre you sure you want to exit?"

[SCPix]
color = %s\scppprof.bm_

[WindowsVersion]
3.10		; Note the 2 digit minor version.  This is necessary!
"Symantec C++ Professional requires"
"Windows version 3.1 or greater."

;///////////////////////////////// Set shell

[SetShell]
AppIniName = symcpp.ini
WinIniName = win.ini
SystemIniName = system.ini
Message = MessageBox.SetShellMessage
SysSectionName = boot
WinSectionName = windows
shell = %s\install.exe
load =
run =
SetShellIfLoaded=
Backup = Backup.SetShellSave
Restore = Backup.SetShellRestore
Active = yes
IfActiveList=LoadedList
SubProcess=

[SetShellSave]
win.ini, win.$sc, WINDOWS
system.ini, system.$sc, WINDOWS

[SetShellRestore]
system.$sc, system.ini, WINDOWS
win.$sc, win.ini, WINDOWS

[LoadedList]

[SetShellMessage]
caption = "Symantec C++ for Windows - Install"
"Welcome to the Symantec C++ for Windows"
"Installation Program.  Please press OK"
"to allow Install to restart Windows"
"and continue the Installation.  Press"
"Cancel to exit Install."

;///////////////////////////////// Advertorials

;[SymantecCppProf:Advo]
;posx = 5
;posy = 5
;location = scppinst.dll
;count = 1
