home *** CD-ROM | disk | FTP | other *** search
INI File | 1993-07-24 | 12.2 KB | 311 lines |
- [StfVariableDetect]
- STF_PROCESSOR = "" ? $(!LIBHANDLE) GetProcessor
- STF_PLATFORM = "I386"
- STF_LANGUAGE = "" ? $(!LIBHANDLE) GetLanguage
- LanguageList = ^(LanguageID, 1)
- STF_WINDOWSPATH = "" ? $(!LIBHANDLE) GetWindowsNtDir
- STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
- STF_NTPATH = $(!STF_WINDOWSPATH)
- STF_COMPUTERNAME = "" ? $(!LIBHANDLE) GetMyComputerName
- STF_BUSTYPE = "" ? $(!LIBHANDLE) GetMyBusType
- [StfVariableSyms]
- ProcessorID_I386 = I386
- ProcessorID_I486 = I486
- ProcessorID_I586 = I586
- ProcessorID_R4000 = R4000
- PlatformID_I386 = I386
- PlatformID_Mips = Mips
- STF_PRODUCT = WINNT
- STF_USERNAME = ""
- STF_INSTALL_MODE = "CUSTOM"
- STF_UPDGRADE = NO
- STF_NCDETECT = NO
- STF_NCOPTION = ""
- STF_NCDETCARD = 99999
- STF_NC_PARAMS = {}
- STF_NC_PNAMES = {}
- STF_SRCDIR_KEYED = ""
- STF_SRCDIR_USED = ""
- STF_SRCDIR_OVERRIDE = ""
- STF_SRCDIR_WINNT = ""
- STF_TEMPLATE_CRITERR = "CRITERR2"
- STF_TEMPLATE_NONCRITERR = "NONCRITERR2"
- STF_INSTALLED_OS = {} ? $(!LIBHANDLE) GetInstalledOSNames
- FatalErrorIndex = 1
- !Exit_Code = 0
- [DoAskOemsetupSource]
- read-syms DoAskUpgradeSrcDlgText$(!STF_LANGUAGE)
- shell "subroutn.inf" DoAskSourceEx $($0) $(DlgText)
- Return $($R0) $($R1) $($R2) $($R3)
- [Shell Commands]
- set-title "Windows NT Setup"
- Set !G:DebugOutputControl = 0
- LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
- LoadLibrary "y" $(!STF_CWDDIR)ncpa.cpl !NCPA_HANDLE
- Shell "subroutn.inf" ReadSetupHelpIds
- SetHelpFile "setupnt.hlp" $(!MinimumID) $(!MaximumID)
- set-subst LF = "\n"
- StartWait
- read-syms StfVariableSyms
- read-syms StfVariableDetect
- detect StfVariableDetect
- Set !STF_NTPATH = $(!STF_WINDOWSSYSPATH)
- OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\ProductOptions" 33554432 KeyProductOption
- ifstr(i) $(KeyProductOption) != ""
- GetRegValue $(KeyProductOption) "ProductType" ProductTypeList
- set TempProductType = *($(ProductTypeList),4)
- ifstr(i) $(TempProductType) == "winnt"
- set !STF_PRODUCT = WINNT
- else-ifstr(i) $(TempProductType) == "lanmannt"
- set !STF_PRODUCT = LANMANNT
- endif
- CloseRegKey $(KeyProductOptions)
- endif
- Debug-Output "NCPASHEL.INF: STF_SRCDIR is "$(!STF_SRCDIR)
- OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Ncpa\CurrentVersion" 33554432 KeyNcpa
- Set !STF_SRCDIR = ""
- Set !STF_IDW = FALSE
- Ifstr(i) $(KeyNcpa) != ""
- GetRegValue $(KeyNcpa) "IDW" IdwValueList
- Set IdwValue = *($(IdwValueList),4)
- Ifint $(IdwValue) > 0
- Debug-Output "NCPASHEL.INF: IDW Installation"
- Set !STF_IDW = TRUE
- Endif
- CloseRegKey $(KeyNcpa)
- Else
- Debug-Output "NCPASHEL.INF: COULDN'T OPEN NCPA KEY!"
- Endif
- OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows Nt\CurrentVersion" $(!REG_KEY_READ) KeyNt
- Ifstr(i) $(KeyNt) != ""
- GetRegValue $(KeyNt) "SourcePath" SourcePathValue
- Set !STF_SRCDIR = *($(SourcePathValue),4)
- Debug-Output "NCPASHEL.INF: SourcePath retrieved is "$(!STF_SRCDIR)
- CloseRegKey $(KeyNt)
- Endif
- Ifstr(i) $(!STF_SRCDIR) == ""
- Set !STF_SRCDIR = "A:\"
- Endif
- Set SetupInp = 0
- Set !NTN_InstallPhase = secondary
- OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\Setup" $(!REG_KEY_READ) KeySetup
- Ifstr(i) $(KeySetup) != ""
- GetRegValue $(KeySetup) "SystemSetupInProgress" SetupInpValue
- Ifint $(RegLastError) == $(!REG_ERROR_SUCCESS)
- Set SetupInp = *($(SetupInpValue),4)
- Debug-Output "NCPASHEL.INF: SetupInp = "$(SetupInp)
- Endif
- Ifint $(SetupInp) == 1
- Set !NTN_InstallPhase = primary
- GetRegValue $(KeySetup) "WinntPath" SetupPathValue
- Ifint $(RegLastError) == $(!REG_ERROR_SUCCESS)
- Set !STF_SRCDIR_WINNT = *($(SetupPathValue),4)
- Debug-Output "NCPASHEL.INF: STF_SRCDIR_WINNT = "$(!STF_SRCDIR_WINNT)
- Endif
- Endif
- CloseRegKey $(KeySetup)
- Endif
- Debug-Output "NCPASHEL.INF: Setup phase = "$(!NTN_InstallPhase)
- Ifstr(i) $(NTN_InfSection) == BindingsReview
- Goto skipdetection
- Endif
- Ifstr(i) $(NTN_InstallMode) == install
- Goto startdetection
- Endif
- Ifstr(i) $(NTN_InstallMode) == configure
- Goto startdetection
- Endif
- Goto skipdetection
- startdetection = +
- Debug-Output "NCPASHEL.INF: Enable netcard detection from NCPA.CPL"
- Shell "NCPARAM.INF" Param_ControlDetection DTSTART
- skipdetection = +
- set STF_PROCESSOR = $(ProcessorID_I386)
- ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_I386)
- set STF_PLATFORM = $(PlatformID_I386)
- set SYS = $(ProcessorID_I386)
- else-ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_I486)
- set STF_PLATFORM = $(PlatformID_I386)
- set SYS = $(ProcessorID_I386)
- else-ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_I586)
- set STF_PLATFORM = $(PlatformID_I386)
- set SYS = $(ProcessorID_I386)
- else-ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_R4000)
- set STF_PLATFORM = $(PlatformID_Mips)
- set SYS = $(ProcessorID_R4000)
- else
- set STF_PLATFORM = $(PlatformID_I386)
- set SYS = $(ProcessorID_I386)
- endif
- Ifstr(i) $(!STF_LANGUAGE) != "ENG"
- Debug-Output "NCPASHEL: Language not set to English; resetting"
- !STF_LANGUAGE = "ENG"
- Endif
- read-syms ProgressCopy$(!STF_LANGUAGE)
- Ifstr(i) $(!NTN_RegBase) == ""
- set !NTN_RegBase = ""
- Endif
- set !NTN_ServiceBase = "SYSTEM\CurrentControlSet\SERVICES"
- Ifstr(i) $(!NTN_InstallMode) == ""
- Debug-Output "NCPASHEL:!NTN_InstallMode was not defined!"
- set !NTN_InstallMode = "configure"
- Endif
- Ifstr(i) $(!NTN_SoftwareBase) == ""
- set !NTN_SoftwareBase = "SOFTWARE"
- Endif
- set !NTN_Origination = "ncpa"
- Ifstr(i) $(!NTN_Infname) == ""
- goto fatalnoinfname
- Endif
- Ifstr(i) $(!NTN_InfSection) == ""
- Set !NTN_InfSection = "InstallOption"
- Endif
- ifstr(i) $(!NTN_InstallMode) == "Update"
- Debug-Output "NCPASHEL.INF: Upgrade mode"
- Shell "" DoAskOemsetupSource $(!STF_SRCDIR)
- Ifstr(i) $($ShellCode) != $(!SHELL_CODE_OK)
- goto shellerror
- Endif
- ifstr(i) $($R0) == STATUS_SUCCESSFUL
- set !STF_SRCDIR = $($R1)
- else-ifstr(i) $($R0) == STATUS_USERCANCEL
- set Exit_Code = 1
- goto end
- else
- set Exit_Code = 2
- goto end
- endif
- Set !NTN_Infname = $(!STF_SRCDIR)oemsetup.inf
- endif
- Ifstr(i) $(!NTN_InstallMode) == install
- set AddCopy = YES
- set DoCopy = YES
- set DoConfig = YES
- Else
- set AddCopy = NO
- set DoCopy = NO
- set DoConfig = NO
- Endif
- Debug-Output "NCPASHEL.INF: Shell to "$(!NTN_Infname)
- Shell $(!NTN_Infname) $(!NTN_InfSection) +
- $(!STF_LANGUAGE) $(!NTN_InfOption) +
- $(!STF_SRCDIR) $(AddCopy) $(DoCopy) $(DoConfig)
- Ifstr(i) $($ShellCode) != $(!SHELL_CODE_OK)
- Debug-Output "NCPASHEL.INF: SHELL ERROR: "$($ShellCode)
- goto shellerror
- Endif
- Debug-Output "NCPASHEL: INF return: "$($R0)
- Ifstr(i) $($R0) == STATUS_SUCCESSFUL
- set Exit_Code = 0
- else-ifstr(i) $($R0) == STATUS_USERCANCEL
- set Exit_Code = 1
- else-ifstr(i) $($R0) == STATUS_NO_EFFECT
- set Exit_Code = 3
- else-ifstr(i) $($R0) == STATUS_REBIND
- set Exit_Code = 4
- else-ifstr(i) $($R0) == STATUS_REBOOT
- set Exit_Code = 5
- else
- set Exit_Code = 2
- Endif
- EndWait
- goto end
- shellerror = +
- read-syms ShellError$(!$ShellCode)$(!STF_LANGUAGE)
- Debug-Output "NCPASHEL: SHELL ERROR: "$(Error)
- goto fatal
- fatalnoinfname = +
- set FatalErrorIndex = 2
- goto fatalmsg
- fatalmsg = +
- read-syms FatalError$(FatalErrorIndex)$(!STF_LANGUAGE)
- Debug-Output "NCPASHEL: FATAL ERROR: "$(Error)
- goto fatal
- fatal = +
- read-syms FatalDlg$(!STF_LANGUAGE)
- ui start "FatalError"
- goto end
- end = +
- Ifstr(i) $(!LIBHANDLE) != ""
- LibraryProcedure DontCare, $(!LIBHANDLE), DeleteAllConnections
- Endif
- Debug-Output "NCPASHEL: NCPASHEL: returning to NCPA"
- goto term
- term = +
- Debug-Output "NCPASHEL: Bye."
- exit
- [Source Media Descriptions]
- 1 = "Windows NT Advanced Server Setup Disk #1" , TAGFILE = disk1
- 2 = "Windows NT Advanced Server Setup Disk #2" , TAGFILE = disk2
- 3 = "Windows NT Advanced Server Setup Disk #3" , TAGFILE = disk3
- 4 = "Windows NT Advanced Server Setup Disk #4" , TAGFILE = disk4
- 5 = "Windows NT Advanced Server Setup Disk #5" , TAGFILE = disk5
- 6 = "Windows NT Advanced Server Setup Disk #6" , TAGFILE = disk6
- 7 = "Windows NT Advanced Server Setup Disk #7" , TAGFILE = disk7
- 8 = "Windows NT Advanced Server Setup Disk #8" , TAGFILE = disk8
- 9 = "Windows NT Advanced Server Setup Disk #9" , TAGFILE = disk9
- 10 = "Windows NT Advanced Server Setup Disk #10" , TAGFILE = disk10
- 11 = "Windows NT Advanced Server Setup Disk #11" , TAGFILE = disk11
- 12 = "Windows NT Advanced Server Setup Disk #12" , TAGFILE = disk12
- 13 = "Windows NT Advanced Server Setup Disk #13" , TAGFILE = disk13
- 14 = "Windows NT Advanced Server Setup Disk #14" , TAGFILE = disk14
- 15 = "Windows NT Advanced Server Setup Disk #15" , TAGFILE = disk15
- 16 = "Windows NT Advanced Server Setup Disk #16" , TAGFILE = disk16
- 17 = "Windows NT Advanced Server Setup Disk #17" , TAGFILE = disk17
- 18 = "Windows NT Advanced Server Setup Disk #18" , TAGFILE = disk18
- 19 = "Windows NT Advanced Server Setup Disk #19" , TAGFILE = disk19
- 20 = "Windows NT Advanced Server Setup Disk #20" , TAGFILE = disk20
- 21 = "Windows NT Advanced Server Setup Disk #21" , TAGFILE = disk21
- 22 = "Windows NT Advanced Server Setup Disk #22" , TAGFILE = disk22
- 23 = "Windows NT Advanced Server Setup Disk #23" , TAGFILE = disk23
- 24 = "Windows NT Advanced Server Setup Disk #24" , TAGFILE = disk24
- 25 = "Windows NT Advanced Server Setup Disk #25" , TAGFILE = disk25
- 26 = "Windows NT Advanced Server Setup Disk #26" , TAGFILE = disk26
- 27 = "Windows NT Advanced Server Setup Disk #27" , TAGFILE = disk27
- 28 = "Windows NT Advanced Server Setup Disk #28" , TAGFILE = disk28
- 29 = "Windows NT Advanced Server Setup Disk #29" , TAGFILE = disk29
- [ProductType]
- STF_PRODUCT = LanmanNT
- STF_PLATFORM = I386
- [Files-Inf]
- 2, oemsetup.inf, SIZE=1000, RENAME=$(!UG_Filename)
- [LanguageID]
- ENG
- [LanguageTextENG]
- "English (American)"
- [ProgressCopyENG]
- ProCaption = "Windows NT Networking Setup"
- ProCancel = "Cancel"
- ProCancelMsg = "Windows NT is not correcly installed. Are you sure you want "+
- "to cancel copying files?"
- ProCancelCap = "Setup Message"
- ProText1 = "Copying:"
- ProText2 = "To:"
- PlatformID_I386 = I386
- PlatformID_Mips = Mips
- [FatalDlgENG]
- STF_MB_TITLE = "Setup Message"
- DlgType = "MessageBox"
- STF_MB_TEXT = $(Error)
- STF_MB_TYPE = 1
- STF_MB_ICON = 3
- STF_MB_DEF = 1
- [FatalError1ENG]
- Error = "Initialization failed"
- [FatalError2ENG]
- Error = "No INF file name given (NTN_Infname)"
- [FatalError3ENG]
- Error = "Invocation of INF file "$(!NTN_Infname)" failed"
- [ShellError1ENG]
- Error = "INF file "$(!NTN_Infname)" does not exist"
- [ShellError2ENG]
- Error = "INF file "$(!NTN_Infname)" does not have a section named "$(!NTN_InfSection)
- [ShellError3ENG]
- Error = "INF file "$(!NTN_Infname)", section "$(!NTN_InfSection)" has syntax errors"
- [DoAskUpgradeSrcDlgTextENG]
- DlgText = "Please enter the full path for the upgrade/update "+
- "OEMSETUP.INF file. Then choose Continue."
-
-
-
-