home *** CD-ROM | disk | FTP | other *** search
- DefineVariables
- Text [CompanyName] := AVANCE LOGIC, INC.
- Text [ProductName] := Avance Logic,Inc. ALG 2302/1301
- Logical [OfferInstallationDirectoryChoice] := Y
- Directory [DefaultInstallationDirectory] := \WIN\SYSTEM
- Directory [TempDirectory]
- Text [Bitmap1] := ali.bmp
- Text [TempDriveLetter]
- Text [ModifyMode] := MODIFY
- Number [MinimumFilesSetting] := 20
- Number [MinimumBuffersSetting] := 20
- Directory [ReadmeFileName]
- Logical [InquireAboutSystemFileLocation] := Y
- Logical [AskBeforeFileReplacement] := N
- Text [ExitMessage] := Thank again!
- Directory [ProgramToRun]
- Logical [AddInstallDirectoryToPath] := N
- Text [MinimumOSVersion]
- Number [MinimumSystemMemoryRequiredPresent]
- Number [SpaceWeNeedToInstall] := 700000
- Logical [AllowCGA] := N
- Logical [AllowMDA] := N
- Logical [Allow808x] := N
- Logical [Allow80286] := Y
- Logical [MathCoprocessorRecommended] := N
- Logical [FixedDiskRequired] := Y
- Text [NetWorkInstallation] := DisallowNetwork
- Logical [UseShadows] := Y
- Text [MainBorder] := None
- Text [PopupBorder] := Single
- Text [TopLine] := Installing Avance Logic 2302/1301 Resolutions
- Text [TopLineColors] := WhiteOnBrown
- Text [BottomLineColors] := WhiteOnLightGray
- Text [PopupColors] := WhiteOnCyan
- Text [AttentionColors] := WhiteOnRed
- Text [SpecialPopupColors] := WhiteOnBrown
- Text [Module1Name] := Windows 3.0
- Text [Module1Groups] := 1
- Text [Module1Description] := Windows 3.0 Drivers
- Text [Module2Name] := Windows 3.1
- Text [Module2Groups] := 2
- Text [Module2Description] := Windows 3.1 Drivers
- Text [ExpressSetupDescription]
- Text [CustomSetupDescription] := Please Sellect Which Which Windows Version
- Text [ExtractionOptions]
- ;; remaining variables are not initialized from external Script Data File
- Logical [NeedToTerminate] := N
- Logical [Installed] := N
- Text [DisplayAdapterSummary]
- Text [CPUTypeSummary]
- Text [NetworkActive]
- Text [MathCoprocessorStatus]
- Text [InstallationDriveSummary]
- Text [OSVersionSummary]
- Text [SystemMemorySummary]
- Logical [InsufficientSystem] := N
- Logical [CompatibilityNoticeGiven] := N
- Logical [NeedToModify] := N
- Text [PathTask]
- Text [BuffersTask]
- Text [FilesTask]
- Text [BackgroundCharacter] := B0
- Text [ScreenColors] := WhiteOnBlue
- Text [BottomLine]
- Number [Black]
- Number [White]
- Number [TempDirSpaceRequired] := 300000
- EndDefineVariables
-
- Procedure Logo
- LoadBitMap 1 [InstallationDirectory]\[Bitmap1] @xy(Center,2)
- ShowBitMap 1
- EndProcedure
-
- Do InstallSupportFiles
-
- Procedure InstallSupportFiles
- If DriveIsRemoveable [InstallFromDrive]
- [InstallationDirectory] := [InstallFromDrive]:
- SetMouseCursor Wait
- Do Logo
- Do Install
- SetMouseCursor Arrow
- ;;Do InstallProgramGroup
- Else
- [InstallationDirectory] := [InstallFromDirectory]
- If [InstallFromDirectory] Contains \ALGUL02\
- If FileExists [InstallFromDirectory]\al8p02.drv
- Dialog @xy(Center,Center) WhiteOnBlack
- Please copy windows drivers into another
- directory except [InstallFromDirectory]
- EndDialog
- SoLong Quietly
- Else
- Do Logo
- EndIf
- Else
- SetMouseCursor Wait
- Do Logo
- Do Install
- SetMouseCursor Wait
- ;;Do InstallProgramGroup
- EndIf
-
- EndIf
- EndProcedure
-
- Procedure InstallProgramGroup
- Dialog [YesOrNo1] @xy(Center,Center) WhiteOnBlack UseHeader "INSTALL for Windows Program Manager Group"
- Would you like to place INSTALL in a Windows program group?
- EndDialog
- If [YesOrNo1] = Y
- BuildProgramGroup "Avance Logic 2302/1301-Resolutions" ALGUL95.GRP
- [TempDirectory]\ALPLAYER.EXE
- EndBuildProgramGroup
- EndIf
- EndProcedure
-
-
- Procedure Install
- [String1] := C
- [TempDriveLetter] := BlankString
- [Number1] := [TempDirSpaceRequired]
- :CheckNextDrive
- If [String1] > B
- If DriveIsPresent [String1]
- If DriveIsRemoveable [String1]
- ;;do nothing
- Else
- If FreeSpaceOnDrive [String1] > [Number1]
- [TempDriveLetter] := [String1]
- [Number1] := FreeSpaceOnDrive [String1]
-
- Else
- :NextDrive
- IncrementString [String1]
- If DriveIsCDROM [String1]
- GoTo NextDrive
- EndIf
- If DriveIsRemote [String1]
- GoTo NextDrive
- EndIf
- GoTo CheckNextDrive
-
- EndIf
- EndIf
- EndIf
- EndIf
- If [String1] = Z
- GoTo ExitGetTempDir
- EndIf
- :ExitGetTempDir
- ;; ClearScreen
- ;; UpdateWindow
- If [TempDriveLetter] = BlankString
- Dialog @xy(Center,Center) UseHeader "Disk Space Error"
- .LSorry, This Installation requires at least [TempDirSpaceRequired] bytes of Fixed Disk
- .LSpace in order to successfully install!
- EndDialog
- SoLong
- Else
- [TempDirectory] := [TempDriveLetter]:\ALGUL95
- CreateDirectoryIfNecessary [TempDirectory]
- Delay 2000
- ;;ClearScreen
- ;;UpdateWindow
- EndIf
-
- SetReplacementInquiry off
- SetMouseCursor Wait
- TextBox @xy(Center,Center)
- Copying Installation Files ...
- EndTextBox
- ;; QueAllFiles to [WindowsSystemDirectory]
- QueFileGroup 1 to [WindowsSystemDirectory]
- GetQuedFiles Quietly
-
- QueFileGroup 2 to [WindowsDirectory]\INF
- GetQuedFiles Quietly
-
- QueFileGroup 3 to [WindowsSystemDirectory]
- GetQuedFiles Quietly
-
- QueFileGroup 3 to [WindowsDirectory]\SYSBCKUP
- GetQuedFiles Quietly
-
- QueFileGroup 4 to C:\DOS
- GetQuedFiles Quietly
-
- QueFileGroup 5 to C:\ALGUL95
- GetQuedFiles Quietly
-
- SetMouseCursor Wait
- ClearScreen
- UpdateWindow
- EndProcedure
-
-
- If FileExists [WindowsDirectory]\INF\OEM0.INF
- ExamineTextFile [WindowsDirectory]\INF\OEM0.INF
- [Number1] := LineNumberWith ([,AVANCE,])
- If [Number1] <> 0
- DeleteFiles from [WindowsDirectory]\INF Quietly
- OEM0.INF
- EndDeleteFiles
- EndIf
- EndIf
-
- If FileExists [WindowsDirectory]\INF\OEM1.INF
- ExamineTextFile [WindowsDirectory]\INF\OEM1.INF
- [Number1] := LineNumberWith ([,AVANCE,])
- If [Number1] <> 0
- DeleteFiles from [WindowsDirectory]\INF Quietly
- OEM1.INF
- EndDeleteFiles
- EndIf
- EndIf
-
- If FileExists [WindowsDirectory]\INF\OEM2.INF
- ExamineTextFile [WindowsDirectory]\INF\OEM2.INF
- [Number1] := LineNumberWith ([,AVANCE,])
- If [Number1] <> 0
- DeleteFiles from [WindowsDirectory]\INF Quietly
- OEM2.INF
- EndDeleteFiles
- EndIf
- EndIf
-
- If FileExists [WindowsDirectory]\INF\OEM3.INF
- ExamineTextFile [WindowsDirectory]\INF\OEM3.INF
- [Number1] := LineNumberWith ([,AVANCE,])
- If [Number1] <> 0
- DeleteFiles from [WindowsDirectory]\INF Quietly
- OEM3.INF
- EndDeleteFiles
- EndIf
- EndIf
-
- If FileExists [WindowsDirectory]\INF\OEM4.INF
- ExamineTextFile [WindowsDirectory]\INF\OEM4.INF
- [Number1] := LineNumberWith ([,AVANCE,])
- If [Number1] <> 0
- DeleteFiles from [WindowsDirectory]\INF Quietly
- OEM4.INF
- EndDeleteFiles
- EndIf
- EndIf
-
- Do DCI
- Run C:\DOS\ASCAN.EXE NoPrompt
-
- ;; ExamineTextFile C:\AUTOEXEC.BAT
- ;; [Number1] := LineNumberWith ([,ASCAN,])
-
- ;;If [Number1] = 0
-
- SetModifyModeTo Modify
-
- ;;ModifyTextFile C:\AUTOEXEC.BAT Quietly NoInquiry NoBackup
- ;; AddOrChangeLineWith (,ASCAN,) as "C:\DOS\ASCAN /C" at Beginning
- ;;EndModifyTextFile
-
- ;;EndIf
-
- ModifyAutoexecBat Quietly NoInquiry NoBackup
- AddOrChangeLineWith (,ASCAN,) as "C:\DOS\ASCAN /C" at Beginning
- EndModifyAutoexecBat
-
- SoLong Quietly
-
- Procedure DCI
-
- ExamineTextFile [WindowsDirectory]\SYSTEM.INI
- [Number1] := LineNumberWith ([,ALIDCI,])
-
- If [Number1] = 0
-
- ModifyTextFile [WindowsDirectory]\SYSTEM.INI NoBackup
- InSection [drivers]
- AddOrChangeLineWith (DCI=,,) as "DCI=ALIDCI" at Beginning
- EndModifyTextFile
- EndIf
-
- EndProcedure
-
-
-