home *** CD-ROM | disk | FTP | other *** search
Wrap
INI File | 1994-07-14 | 316.1 KB | 7,402 lines
[Shell Commands] set-title "SQL Server Setup" set-subst LF = "\n" set Exit_Code = $(!SETUP_ERROR_GENERAL) install LoadSetupLibrary StartWait read-syms GeneralConstants read-syms LanguageVar detect LanguageVar ifstr(i) $(Debug) == "ON" LibraryProcedure Result, $(!DLLSQL), Debugger "15" endif checksrcdir =+ read-syms UiVars detect UiVars EndWait read-syms InternationalSetup read-syms SetupInit$(!STF_LANGUAGE) LibraryProcedure !ComputerName, $(!DLLSQL), GetMachineName LibraryProcedure !SQLSetupModule, $(!DLLSQL), SQLDLLInit $(STF_HWND) LibraryProcedure !SetupFileVersion, $(!DLLSQL), GetProductFileVersion $(!SQLSetupModule) set !OldDSQuery = "" set !ClientModKey = "" LibraryProcedure ClientKey, $(!DLLSQL), RegOpen "\\"$(!ComputerName),$(!RegSQLClient)"\"$(!RegSQLConnectTo) ifstr(i) $(ClientKey) != "KEY_ERROR" LibraryProcedure !OldDSQuery, $(!DLLSQL), RegRead $(ClientKey),$(!RegValDSQUERY) ifstr(i) $(!OldDSQuery) == "KEY_ERROR" set !OldDSQuery = "" else LibraryProcedure Result, $(!DLLSQL), RegClose $(ClientKey) set ClientKey = "" LibraryProcedure !ClientModKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLClient),$(!RegSQLConnectTo),"" ifstr(i) $(ClientModKey) == "KEY_ERROR" set !ClientModKey = "" else LibraryProcedure Result, $(!DLLSQL), RegSet $(!ClientModKey),$(!RegValDSQUERY),$(!RegTypeString),$(!ClientLibPipes),"" endif endif ifstr(i) $(ClientKey) != "" LibraryProcedure Result, $(!DLLSQL), RegClose $(ClientKey) endif endif shell "" DoNetDefaults read-syms FailedUserSetupQuit$(!STF_LANGUAGE) shell "" DoWelcome ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone endif ifstr(i) $(OSVersionCheck) != "OFF" shell "" DoCheckOS ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone endif endif shell "" DoSetLocalSetup ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone endif set !AllowExit = "YES" set !OldRemoteComputer = $(!RemoteComputer) shell "" DoCheckServerKeyAccess ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone endif ifstr(i) $(!RegistryRebuild) != "" shell "" StopService $(!SQLMonitorService) shell "" StopService $(!SQLServerService) shell "" DoLicense ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone endif shell "" DoNewInstall ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone else read-syms InstalledTag$(!STF_LANGUAGE) goto installdone endif endif poseSetupType =+ shell "" DoSetupType ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone endif ifstr(i) $(!InstallType) != "3" shell "" DoAdminCheck ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone endif endif ifstr(i) $(!InstallType) == "1" shell "" DoNewInstall ifstr(i) $($R0) == "STATUS_BACK" goto poseSetupType else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone else read-syms InstalledTag$(!STF_LANGUAGE) goto installdone endif else-ifstr(i) $(!InstallType) == "2" shell "" DoUpgrade ifstr(i) $($R0) == "STATUS_BACK" goto poseSetupType else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone else read-syms UpgradedTag$(!STF_LANGUAGE) goto installdone endif else-ifstr(i) $(!InstallType) == "3" shell "" DoInstallUtils ifstr(i) $($R0) == "STATUS_BACK" goto poseSetupType else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone else read-syms UtilInstallTag$(!STF_LANGUAGE) goto installdone endif else-ifstr(i) $(!InstallType) == "4" shell "" DoNetInstall ifstr(i) $($R0) == "STATUS_BACK" goto poseSetupType else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone else read-syms STR_CompletionNetworks endif else-ifstr(i) $(!InstallType) == "5" shell "" DoInstallLang ifstr(i) $($R0) == "STATUS_BACK" goto poseSetupType else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone else read-syms CompletionLangInst$(!STF_LANGUAGE) endif else-ifstr(i) $(!InstallType) == "6" read-syms RebuildError$(!STF_LANGUAGE) shell "" DoRebuildDatabase ifstr(i) $($R0) == "STATUS_BACK" goto poseSetupType else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone else read-syms CompletionNewCharSort$(!STF_LANGUAGE) endif else-ifstr(i) $(!InstallType) == "7" shell "" DoServerOptions ifstr(i) $($R0) == "STATUS_BACK" goto poseSetupType else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone else read-syms CompletionOptions$(!STF_LANGUAGE) endif else-ifstr(i) $(!InstallType) == "8" shell "" DoGetSecurityOptions ifstr(i) $($R0) == "STATUS_BACK" goto poseSetupType else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone else read-syms STR_CompletionSecurity endif else-ifstr(i) $(!InstallType) == "9" shell "" DoNuke ifstr(i) $($R0) == "STATUS_BACK" goto poseSetupType else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto setupnotdone else ifstr(i) $(!RemoteComputer) == "" read-syms CompletionNuked$(!STF_LANGUAGE) else read-syms CompletionNukedRemote$(!STF_LANGUAGE) endif endif endif setupdone =+ set Exit_Code = $(!SETUP_ERROR_SUCCESS) setupnotdone =+ ifstr(i) $(!NonCriticalScriptFailure) == "" set !AddlText = "" else read-syms STR_NonCriticalScriptFail endif read-syms SetupDoneDlg$(!STF_LANGUAGE) LibraryProcedure DlgDone, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"","" setnotdone_wait =+ LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) != "DLGBUTTON1" goto setnotdone_wait endif LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgDone) goto end installdone =+ set Exit_Code = $(!SETUP_ERROR_SUCCESS) ifstr(i) $(!RemoteComputer) == "" read-syms InstallCompletedLocal$(!STF_LANGUAGE) else read-syms InstallCompletedRemote$(!STF_LANGUAGE) endif ifstr(i) $(!NonCriticalScriptFailure) == "" set !AddlText = "" else read-syms STR_NonCriticalScriptFail endif read-syms InstallCompleted$(!STF_LANGUAGE) LibraryProcedure DlgDone, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"","" installdone_wait =+ LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "DLGBUTTON1" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgDone) goto end else-ifstr(i) $(DLGEVENT) == "DLGBUTTON2" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgDone) goto rebootend else goto installdone_wait endif rebootend =+ install Install-Shutdown end =+ ifstr(i) $(!RemoteSQLDrive) != "" LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(!RemoteSQLDrive) endif ifstr(i) $(!RemoteNTDrive) != "" LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(!RemoteNTDrive) endif ifstr(i) $(!RemoteDBDrive) != "" LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(!RemoteDBDrive) endif LibraryProcedure Result, $(!DLLSQL), DeleteSecurityAttribute $(!AdminACL) ifstr(i) $(!ClientModKey) != "" ifstr(i) $(!OldDSQuery) != "" LibraryProcedure Result, $(!DLLSQL), RegSet $(!ClientModKey),$(!RegValDSQUERY),$(!RegTypeString),$(!OldDSQuery),"" endif LibraryProcedure Result, $(!DLLSQL), RegClose $(!ClientModKey) endif LibraryProcedure Result, $(!DLLSQL), SQLDLLFinish install FreeSetupLibrary exit [QueryUserQuit] set Status = STATUS_FAILED set UserAction = CANCEL read-syms ExitWarningDlg$(!STF_LANGUAGE) ui start "ExitWarning" ifstr(i) $(DLGEVENT) == "YES" set Status = STATUS_SUCCESSFUL set UserAction = "OK" read-syms FailedUserQuit$(!STF_LANGUAGE) set !MsgText = $(!AddlText) else-ifstr(i) $(DLGEVENT) == "NO" set Status = STATUS_SUCCESSFUL set UserAction = "CANCEL" endif Return $(Status) $(UserAction) [DoAdminCheck] set Status = STATUS_FAILED LibraryProcedure Result, $(!DLLSQL), IsAdmin ifstr(i) $(Result) == "ACCESS_DENIED" read-syms InsufficientPriv LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto admin_end endif ifstr(i) $(!StandAlone) == "" shell "" StartService $(!LANManService) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto admin_end endif endif set Status = STATUS_SUCCESSFUL admin_end =+ Return $(Status) [DoCheckOS] set Status = STATUS_FAILED LibraryProcedure Result, $(!DLLSQL), VerifyNTVersion $(!MinOSVersion) ifstr(i) $(Result) == "" set Status = STATUS_SUCCESSFUL else read-syms STR_InferiorOS set !MsgText = $(!AddlText) endif Return $(Status) [DoCheckServerKeyAccess] set Status = STATUS_FAILED LibraryProcedure Result, $(!DLLSQL), IsAdmin ifstr(i) $(Result) != "ACCESS_DENIED" LibraryProcedure NewSvrKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServer),"","" ifstr(i) $(NewSvrKey) != "KEY_ERROR" LibraryProcedure TmpKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServerServer),"",$(!AdminACL) ifstr(i) $(TmpKey) != "KEY_ERROR" LibraryProcedure Result, $(!DLLSQL), RegClose $(TmpKey) set Status = STATUS_SUCCESSFUL else read-syms STR_InvalidSystemAdmin set !MsgText = $(!AddlText) endif LibraryProcedure Result, $(!DLLSQL), RegClose $(NewSvrKey) else read-syms STR_InvalidSystemAdmin set !MsgText = $(!AddlText) endif else set Status = STATUS_SUCCESSFUL endif Return $(Status) [DoWelcome] set Status = STATUS_FAILED read-syms WelcomeDlg$(!STF_LANGUAGE) LibraryProcedure DlgWelcome, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" welcome = + LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CONTINUE" set Status = STATUS_SUCCESSFUL else-ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT else goto welcome endif endif LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgWelcome) Return $(Status) [DoAlreadyInstalled] set Status = STATUS_FAILED read-syms AlreadyInstalledDlg$(!STF_LANGUAGE) LibraryProcedure DlgAlready, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"","" already =+ LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CONTINUE" set Status = STATUS_SUCCESSFUL else-ifstr(i) $(DLGEVENT) == "CALLCOMBOKILLFOCUS1" goto already endif LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgAlready) Return $(Status) [GetPreviousInstallationInfo] set !Owner = "" set !Organiz = "" set !MasterDBFileName = "" set !Registration = "" set !IntegratedSecurity = "" set !MultipleNetworkSupport = "" LibraryProcedure Key, $(!DLLSQL), RegOpen "\\"$(!ComputerName),$(!RegSQLServerServer)"\"$(!RegSQLServerVer) ifstr(i) $(Key) != "KEY_ERROR" LibraryProcedure !Owner, $(!DLLSQL), RegRead $(Key),$(!RegValRegOwner) LibraryProcedure !Organiz, $(!DLLSQL), RegRead $(Key),$(!RegValRegOrg) ifstr(i) $(!Organiz) == "KEY_ERROR" set !Owner = "" goto prevDisplay endif set !FullName = $(!Owner) set !OrgName = $(!Organiz) set !Registration = $(!Owner)" - "$(!Organiz) LibraryProcedure Result, $(!DLLSQL), RegClose $(Key) shell "" RegGetSecuritySupport ifstr(i) $($R0) == "STATUS_SUCCESSFUL" ifstr(i) $($R1) == "2" set !IntegratedSecurity = "TRUE" endif endif LibraryProcedure OpenServerKey, $(!DLLSQL), RegOpen "\\"$(!ComputerName),$(!RegSQLServer)"\"$(!RegSQLServerSvr) ifstr(i) $(OpenServerKey) != "KEY_ERROR" LibraryProcedure ListenOn, $(!DLLSQL), RegRead $(OpenServerKey),$(!RegValListenOn) ifstr(i) $(ListenOn) != "KEY_ERROR" QueryListSize NumArgs $(ListenOn) ifint $(NumArgs) > "1" set !MultipleNetworkSupport = "TRUE" endif endif LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenServerKey) endif LibraryProcedure Key, $(!DLLSQL), RegOpen "\\"$(!ComputerName),$(!RegSQLSetup) ifstr(i) $(Key) != "KEY_ERROR" LibraryProcedure !SQLPath, $(!DLLSQL), RegRead $(Key),$(!RegValSQLPath) LibraryProcedure Result, $(!DLLSQL), RegClose $(Key) endif shell "" DoExtractMasterAndErrorlog "\\"$(!ComputerName) set !MasterDBPath = $($R2) set !MasterDBFileName = $($R4) set !DefMasterPath = $(!MasterDBPath) set !DefMasterDB = $(!MasterDBFileName) ifstr(i) $(!RemoteSQLDrive) != "" LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!SQLPath),"AFTER",":" set !SQLPath = $(!RemoteSQLDrive)$(Temp) else LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $(!SQLPath),"BEFORE","\" set !LogicalSQLDrive = $(Before) endif ifstr(i) $(!RemoteDBDrive) != "" LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!MasterDBPath),"AFTER",":" set !MasterDBPath = $(!RemoteDBDrive)$(Temp) else LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $(!MasterDBPath),"BEFORE","\" set !LogicalDBDrive = $(Before) endif set !DefSQLPath = $(!SQLPath) endif prevDisplay =+ ifstr(i) $(!RegistryRebuild) == "" ifstr(i) $(!Owner) == "" shell "" DoLicense ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_getprevii endif else shell "" DoAlreadyInstalled ifstr(i) $($R0) != "STATUS_SUCCESSFUL" read-syms FailedUserSetupQuit$(!STF_LANGUAGE) goto end_getprevii endif endif endif LibraryProcedure Result, $(!DLLSQL), DeleteSecurityAttribute $(!AdminACL) LibraryProcedure !AdminACL, $(!DLLSQL), CreateSecurityAttribute "\\"$(!ComputerName),$(!AdministratorsGroup),"GENERIC_ALL","BUILTIN" ifstr(i) $(!AdminACL) == "CANNOT_CREATE_ACL" set !AdminACL = "" endif set Status = STATUS_SUCCESSFUL end_getprevii =+ Return $(Status) [DoNewInstall] set Status = STATUS_FAILED StartWait read-syms InstallError$(!STF_LANGUAGE) ifint $(!LogicalSystemMemory) < $(!MinSystemMemory) read-syms InsufficientMem$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_new_inst endif LibraryProcedure CNChk, $(!DLLSQL), StrBeforeAndAfter $(!ComputerName),"LASTBEFORE"," " ifstr(i) $(CNChk) != "" read-syms STR_SpacedComputerName LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_new_inst endif ifstr(i) $(!GrownPageFile) == "" LibraryProcedure Result, $(!DLLSQL), GrowPageFile "10000000" set !GrownPageFile = "1" endif ifstr(i) $(!RegistryRebuild) == "" shell "" StopService $(!SQLMonitorService) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_new_inst endif shell "" StopService $(!SQLServerService) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_new_inst endif StartWait set GetCost = "TRUE" install InstallBaseInstallFiles set GetCost = "" LibraryProcedure InstallationReqSpace, $(!DLLSQL), CheckStringFormat "FMT_SPACE","KILO",$(SpaceCost) set !AddlScripts = $(!DefScriptList) set !NetSelList = {} set !CheckInstList = $(!CheckInstDefList) set !CheckInstRetList = $(!CheckInstDefRetList) set !CheckInstList = >( $(!CheckInstList), $(!SQLPubs)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!Pubs)) set !CheckInstList = >( $(!CheckInstList), $(!SQLAdmin1)) set !CheckInstList = >( $(!CheckInstList), $(!SQLAdmin2)) set !CheckInstList = >( $(!CheckInstList), $(!SQLObject1)) set !CheckInstList = >( $(!CheckInstList), $(!SQLObject2)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpAdminChk1)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpAdminChk2)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpObjectChk1)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpObjectChk2)) set !CheckInstList = >( $(!CheckInstList), $(!SQLHelpSQL)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!RetHelpSQL)) set !SortOrderSelList = $(!Sort850SelList) set !TheCharSet = *( $(!CharSetSelList), 2 ) set !TheSortFile = *( $(!SortOrderSelList), 2 ) set !TheSortConfigValue = *( $(!SortOrderSelList), 3 ) endif set !ServerNMPipeName = $(!SvrPipe) shell "" DoNetDefaults EndWait backToSQLPath =+ shell "" DoGetSpaceSQLPath GetSpaceSQLPathDlg$(!STF_LANGUAGE),$(InstallationReqSpace),$(SpaceCost),"1","SPACE","",$(!LogicalSQLDrive) ifstr(i) $($R0) == "STATUS_BACK" set Status = STATUS_BACK goto end_new_inst else-ifstr(i) $($R0) == "STATUS_USERQUIT" set Status = "STATUS_USERQUIT" goto end_new_inst else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_new_inst endif set !SQLPath = $($R1)$($R2) set !DefSQLPath = $(!SQLPath) set !CreateSQLPath = $(!SQLPath) ifstr(i) $(!RemoteComputer) == "" set !LogicalSQLDrive = $($R1) set !LogicalDBDrive = $(!LogicalSQLDrive) endif set !DefMasterPath = $(!SQLPath)"\"$(!DataDir)"\"$(!DefMasterDB) backToMasterPath =+ shell "" DoGetSpaceMasterPath GetSpaceMasterPathDlg,$(InstallationReqSpace),$(SpaceCost),"3","SPACE","",$(!LogicalDBDrive) ifstr(i) $($R0) == "STATUS_BACK" goto backToSQLPath else-ifstr(i) $($R0) == "STATUS_USERQUIT" set Status = "STATUS_USERQUIT" goto end_new_inst else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_new_inst endif backToNewOpts =+ shell "" DoNewOptions ifstr(i) $($R0) == "STATUS_BACK" goto backToMasterPath else-ifstr(i) $($R0) == "STATUS_USERQUIT" set Status = "STATUS_USERQUIT" goto end_new_inst else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_new_inst endif shell "" DoNetLibPrompts $(!NetLibList) ifstr(i) $($R0) == "STATUS_BACK" goto backToNewOpts else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_new_inst endif set NewNetLibs = $($R1) set NewNetAddrs = $($R2) ifstr(i) $(!RegistryRebuild) == "" read-syms MailManDlg$(!STF_LANGUAGE) LibraryProcedure DlgMailMan, $(!DLLSQL), BillBoard $(STF_HWND),$(DlgTemplate),$(!SQLDlgNames) read-syms ProgressCopyVars install InstallBaseInstallFiles ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgMailMan) read-syms FileCouldNotBeCopied$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_new_inst endif LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgMailMan) ifstr(i) $(!RemoteComputer) == "" read-syms DLG_BillboardSearchRename LibraryProcedure DlgMailMan, $(!DLLSQL), BillBoard $(STF_HWND),$(DlgTemplate),$(!SQLDlgNames) LibraryProcedure Result, $(!DLLSQL), Sleepy "2" ForListDo $(!ClientDLLList) LibraryProcedure Result, $(!DLLSQL), FindAndRenameVersionFile $(!SQLPath)"\"$(!DLLs)"\"$($) ifstr(i) $(Result) != "" set !OneOffFile = $(Result) LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgMailMan) read-syms STR_DLLRenameError LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_new_inst endif EndForListDo LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgMailMan) endif endif ifstr(i) $(!RegistryRebuild) == "" shell "" DoReBuild "TRUE" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_new_inst endif else shell "" RegWriteSerialNumberInfo ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_new_inst endif shell "" DoPerfmonNuke "\\"$(!ComputerName) shell "" UpdateSCM "TRUE" endif shell "" UpdateRegistry $(NewNetLibs),$(NewNetAddrs),"TRUE" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_new_inst endif ifstr(i) $(!RemoteComputer) == "" install CreateSQLProgmanItems endif set Status = STATUS_SUCCESSFUL end_new_inst = + StartWait ForListDo $(!DelDLLList) LibraryProcedure Result, $(!DLLSQL), Delnode "FILE_DELETE",$(!SystemDirectory)"\"$($) EndForListDo EndWait Return $(Status) [DoInstallUtils] set Status = STATUS_FAILED set DlgMailMan = "" set !UserType = "Admin" read-syms UtilInstallError$(!STF_LANGUAGE) shell "" DoAdminCheck ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set !UserType = "User" endif set !MsgText = "" backToUtilPath =+ shell "" DoGetUtilsAndPath ifstr(i) $($R0) == "STATUS_BACK" set Status = STATUS_BACK goto end_inst_utils else-ifstr(i) $($R0) == "STATUS_SUCCESSFUL" set !SQLPath = $($R1)$($R2) set !CreateSQLPath = $(!SQLPath) ifstr(i) $(!RemoteComputer) == "" set !LogicalSQLDrive = $($R1) endif else goto end_inst_utils endif read-syms MailManDlg$(!STF_LANGUAGE) LibraryProcedure DlgMailMan, $(!DLLSQL), BillBoard $(STF_HWND),$(DlgTemplate),$(!SQLDlgNames) ForListDo $(!ClientDLLList) LibraryProcedure Result, $(!DLLSQL), FindAndRenameVersionFile $(!SQLPath)"\"$(!DLLs)"\"$($) EndForListDo read-syms ProgressCopyVars install InstallUtilFiles ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS" read-syms FileCouldNotBeCopied$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) else ifstr(i) $(!UserType) == "Admin" shell "" RegWriteSystemPaths "\\"$(!ComputerName),$(!RegSystemPaths),"" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_inst_utils endif else shell "" RegWriteSystemPaths "\\"$(!ComputerName),$(!RegUserPaths),"1" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_inst_utils endif endif shell "" RegWriteDBLibDefaults "\\"$(!ComputerName) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_inst_utils endif ifstr(i) $(!RemoteComputer) == "" install CreateUtilProgmanItems endif set Status = STATUS_SUCCESSFUL endif end_inst_utils = + ifstr(i) $(DlgMailMan) != "" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgMailMan) endif EndWait Return $(Status) [DoUpgrade] set Status = STATUS_FAILED set BillyBoard = "" set !UpgErrors = "" set WasSingleMode = "" set Pre42 = "YES" shell "" DoNetDefaults LibraryProcedure OpenServerKey, $(!DLLSQL), RegOpen "\\"$(!ComputerName),$(!RegSQLServer)"\"$(!RegSQLServerSvr) ifstr(i) $(OpenServerKey) != "KEY_ERROR" LibraryProcedure !ListenOn, $(!DLLSQL), RegRead $(OpenServerKey),$(!RegValListenOn) ForListDo $(!ListenOn) LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $($),"BEFORE","," ifstr(i) $(Before) == $(!NetLibTCPIP) set !NetLibList = >( $(!NetLibList), $(!NetLibTCPIP)) endif EndForListDo endif LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenServerKey) set !ServerNMPipeName = $(!SvrPipe) read-syms UpgradeError$(!STF_LANGUAGE) backToWarning1 =+ read-syms UpgradeWarning1$(!STF_LANGUAGE) shell "" UpgradeQ ifstr(i) $($R0) == "STATUS_BACK" set Status = STATUS_BACK goto finish_upgrade else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_upgrade endif LibraryProcedure CNChk, $(!DLLSQL), StrBeforeAndAfter $(!ComputerName),"LASTBEFORE"," " ifstr(i) $(CNChk) != "" read-syms STR_SpacedComputerName LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto finish_upgrade endif backToGetSQLPath =+ shell "" DoGetSpaceSQLPath GetUpgradeSQLPathDlg$(!STF_LANGUAGE),$(InstallationReqSpace),$(SpaceCost),"3","","",$(!LogicalSQLDrive) ifstr(i) $($R0) == "STATUS_BACK" set Status = STATUS_BACK goto backToWarning1 else-ifstr(i) $($R0) == "STATUS_USERQUIT" set Status = "STATUS_USERQUIT" goto finish_upgrade else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_upgrade endif set !SQLPath = $($R1)$($R2) set !DefSQLPath = $(!SQLPath) set !CreateSQLPath = $(!SQLPath) ifstr(i) $(!RemoteComputer) == "" set !LogicalSQLDrive = $($R1) ifstr(i) $(!Owner) == "" set !LogicalDBDrive = $(!LogicalSQLDrive) endif endif ifstr(i) $(!MasterDBFileName) == "" set !DefMasterPath = $(!SQLPath)"\"$(!DataDir)"\"$(!MasterDB) else set !DefMasterPath = $(!MasterDBPath)"\"$(!MasterDBFileName) endif backToGetMaster =+ shell "" DoGetSpaceSQLPath GetUpgradeSQLMasterPathDlg,$(InstallationReqSpace),$(SpaceCost),"3","","MASTERFORMAT_MUSTEXIST",$(!LogicalDBDrive) ifstr(i) $($R0) == "STATUS_BACK" set Status = STATUS_BACK goto backToGetSQLPath else-ifstr(i) $($R0) == "STATUS_USERQUIT" set Status = "STATUS_USERQUIT" goto finish_upgrade else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_upgrade endif set !MasterDBFileName = $($R3) set !MasterDBPath = $($R1)$($R2) set !DefMasterPath = $(!MasterDBPath)"\"$(!MasterDBFileName) ifstr(i) $(!RemoteComputer) == "" set !LogicalDBDrive = $($R1) endif ifstr(i) $(!IntegratedSecurity) == "" shell "" DoGetSAPassword ifstr(i) $($R0) == "STATUS_BACK" goto backToGetMaster else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_upgrade endif endif shell "" StopService $(!SQLMonitorService) shell "" StopService $(!SQLServerService) read-syms MailManDlg$(!STF_LANGUAGE) LibraryProcedure DlgMailMan, $(!DLLSQL), BillBoard $(STF_HWND),$(DlgTemplate),$(!SQLDlgNames) read-syms ProgressCopyVars install InstallBaseInstallFiles ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgMailMan) read-syms FileCouldNotBeCopied$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto finish_upgrade endif LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgMailMan) read-syms DLG_BillboardSearchRename LibraryProcedure BillyBoard, $(!DLLSQL), BillBoard $(STF_HWND),$(DlgTemplate),$(!SQLDlgNames) LibraryProcedure Result, $(!DLLSQL), Sleepy "2" ifstr(i) $(!RemoteComputer) == "" ForListDo $(!ClientDLLList) LibraryProcedure Result, $(!DLLSQL), FindAndRenameVersionFile $(!SQLPath)"\"$(!DLLs)"\"$($) ifstr(i) $(Result) != "" set !OneOffFile = $(Result) read-syms STR_DLLRenameError LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto finish_upgrade endif EndForListDo endif read-syms STR_BillboardPrepUpgrade LibraryProcedure Result, $(!DLLSQL), UpdateBillboard $(BillyBoard),$(!BillName) ifstr(i) $(!Registration) == "" shell "" UpdateSCM "TRUE" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" read-syms SCMError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$($R1) goto finish_upgrade endif else shell "" UpdateSCM "FALSE" endif shell "" RegWriteSerialNumberInfo ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_upgrade endif shell "" StartService $(!SQLServerService) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_upgrade endif LibraryProcedure Result, $(!DLLSQL), SQLLogin "0","4",$(!ServerName),$(!SALogin),$(!SAPassword) ifstr(i) $(Result) == "NO_SERVER" read-syms NoLoginToSQLServer$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto finish_upgrade endif shell "" DoUpgradeChecks set DBOperatingSys = $($R2) ifstr(i) $($R0) == "STATUS_OKFAILED" set Pre42 = "NO" goto upgrade_scripts else-ifstr(i) $($R0) == "STATUS_FAILED" read-syms SQLExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)$($R1) goto finish_upgrade endif ifstr(i) $(!UpgErrors) != "" read-syms CannotUpgrade$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!UpgErrors) goto finish_upgrade endif read-syms UpgradeWarning2$(!STF_LANGUAGE) shell "" UpgradeQ ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_upgrade endif LibraryProcedure Result, $(!DLLSQL), SQLExecute $(!SQLUpgObjects) ifstr(i) $(Result) == "BAD_SQL_EXEC" read-syms SQLExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)" #U7"$(!LF) LibraryProcedure !AddlText, $(!DLLSQL), SQLGetErrorMsg LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto finish_upgrade endif LibraryProcedure Result, $(!DLLSQL), SQLExecute $(!SQLUpgConfigMem) ifstr(i) $(Result) == "BAD_SQL_EXEC" read-syms SQLExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)" #U8"$(!LF) LibraryProcedure !AddlText, $(!DLLSQL), SQLGetErrorMsg LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto finish_upgrade endif LibraryProcedure Result, $(!DLLSQL), SQLLogout shell "" StopService $(!SQLServerService) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_upgrade endif set TmpParamList = {} LibraryProcedure TmpParamList, $(!DLLSQL), RegEnumKeyValues "\\"$(!ComputerName),$(!RegSQLServerServer)"\"$(!RegSQLSvrParam),"VALUEDATA" ifcontains(i) $(!SingleUserMode) in $(TmpParamList) set WasSingleMode = "YES" else set WasSingleMode = "NO" endif ifstr(i) $(WasSingleMode) == "NO" QueryListSize NumArgs $(TmpParamList) LibraryProcedure !OpenParamKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServerServer),$(!RegSQLSvrParam),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(!OpenParamKey),$(!RegValParameter)$(NumArgs),$(!RegTypeString),$(!SingleUserMode),"" LibraryProcedure Result, $(!DLLSQL), RegClose $(!OpenParamKey) endif shell "" StartService $(!SQLServerService) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_upgrade endif read-syms BillboardUpgrading$(!STF_LANGUAGE) LibraryProcedure Result, $(!DLLSQL), UpdateBillboard $(BillyBoard),$(!BillName) StartWait ProcessExecute Result,"WAIT",$(!SQLPath)"\"$(!Binaries)"\"$(!Upgrade)" /S"$(!ServerName)" /P"$(!SAPassword)" /L"$(!SQLPath)"\"$(!UpgradeDirPath)" /o"$(!SQLPath)"\"$(!InstallDir)"\"$(!UpgradeOut) EndWait ifstr(i) $(Result) == "PROCESS_ERROR" read-syms UpgradeExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto finish_upgrade else-ifstr(i) $(Result) != "0" read-syms ProcessRetError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!Upgrade)" "$(!AddlText)" "$(Result) goto finish_upgrade endif upgrade_scripts =+ shell "" RegWriteANSIOEM ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_upgrade endif read-syms BillboardUpgrading$(!STF_LANGUAGE) LibraryProcedure Result, $(!DLLSQL), UpdateBillboard $(BillyBoard),$(!BillName) LibraryProcedure Result, $(!DLLSQL), SQLLogout shell "" StopService $(!SQLServerService) ifstr(i) $(DBOperatingSys) == $(!OS2) StartWait ProcessExecute Result,"WAIT",$(!SQLPath)"\"$(!Binaries)"\"$(!BuildMaster)" /d"$(!MasterDBPath)"\"$(!MasterDBFileName)" /yLRUthreshold=60 /o"$(!SQLPath)"\"$(!InstallDir)"\"$(!BuildMasterOut) ifstr(i) $(Result) == "PROCESS_ERROR" read-syms ProcessExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!BuildMaster)" "$(!AddlText) goto finish_upgrade else-ifstr(i) $(Result) != "0" read-syms ProcessRetError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!BuildMaster)" "$(!AddlText)" "$(Result) goto finish_upgrade endif EndWait endif shell "" ReIndexServer ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_upgrade endif LibraryProcedure Result, $(!DLLSQL), SQLLogin "0","4",$(!ServerName),$(!SALogin),$(!SAPassword) ifstr(i) $(Result) == "NO_SERVER" read-syms NoLoginToSQLServer$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto finish_upgrade endif set !CheckInstList = {} ForListDo $(!CheckInstDefList) set !CheckInstList = >( $(!CheckInstList), $($)) EndForListDo ifstr(i) $(Pre42) == "YES" set TheUpgScripts = $(!UpgScripts11) set TheReqMem = $(!UpgMem11) else-ifstr(i) $(DBOperatingSys) == $(!OS2) set TheUpgScripts = $(!UpgScripts42) set TheReqMem = $(!UpgMem42) else set TheUpgScripts = $(!UpgScriptsNT42) set TheReqMem = $(!UpgMemNT42) endif ifstr(i) $(Pre42) == "NO" shell "" CheckMasterSpace ifstr(i) $($R0) != "STATUS_SUCCESSFUL" LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),"#1" goto finish_upgrade endif ifint $($R1) < $(TheReqMem) ifstr(i) $(!UpgOverride) != "" shell "" Popup "4.2 Upgrade Space insufficient. Requires "$(TheReqMem)", has "$($R1) else LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!UpgErrorMastSpace) goto finish_upgrade endif endif endif LibraryProcedure Result, $(!DLLSQL), SQLLogout set !CheckInstRetList = $(!CheckInstDefRetList) shell "" CheckInstalledScripts $(TheUpgScripts) set TheUpgScripts = $($R1) ForListDo $(TheUpgScripts) StartWait LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $($),"BEFORE","." ProcessExecute Result,"WAIT",$(!SQLPath)"\"$(!Binaries)"\"$(!ISQL)" /S"$(!ServerName)" /Usa /i"$(!SQLPath)"\"$(!InstallDir)"\"$($)" /o"$(!SQLPath)"\"$(!InstallDir)"\"$(Before)".OUT /P"$(!SAPassword) EndWait ifstr(i) $(Result) == "PROCESS_ERROR" read-syms ProcessExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!ISQL)" "$(!AddlText) goto finish_upgrade else-ifstr(i) $(Result) != "0" read-syms ProcessRetError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!ISQL)" "$(!AddlText)" "$(Result) goto finish_upgrade endif EndForListDo shell "" CheckInstallSuccess "TRUE" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_upgrade endif ifstr(i) $(!Locale) != "" shell "" DoLangInst $(!Locale),$(!SAPassword),"CHECKED" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_upgrade endif endif shell "" StopService $(!SQLServerService) shell "" UpdateRegistry $(!NetLibList),$(!NetAddresses),"FALSE" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_upgrade endif ifstr(i) $(!RemoteComputer) == "" install CreateSQLProgmanItems endif set Status = STATUS_SUCCESSFUL finish_upgrade =+ LibraryProcedure Result, $(!DLLSQL), SQLLogout ifstr(i) $(WasSingleMode) == "NO" LibraryProcedure !OpenParamKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServerServer),$(!RegSQLSvrParam),"" LibraryProcedure Result, $(!DLLSQL), RegDelValue $(!OpenParamKey),$(!RegValParameter)$(NumArgs) LibraryProcedure Result, $(!DLLSQL), RegClose $(!OpenParamKey) endif shell "" StopService $(!SQLServerService) ForListDo $(!DelDLLList) LibraryProcedure Result, $(!DLLSQL), Delnode "FILE_DELETE",$(!SystemDirectory)"\"$($) EndForListDo ifstr(i) $(BillyBoard) != "" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(BillyBoard) endif Return $(Status) [UpgradeQ] LibraryProcedure DlgUpg, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(!DlgTemplate),"",$(!SQLDlgNames),"MODAL","" upgradeQ =+ LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto end_upgrade else goto upgradeQ endif else-ifstr(i) $(DLGEVENT) == "CONTINUE" set Status = STATUS_SUCCESSFUL else-ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK endif end_upgrade =+ LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgUpg) Return $(Status) [DoUpgradeChecks] set Status = STATUS_FAILED set DBOperatingSys = "" set !UpgErrors = "" shell "" ExecNReturnSQLCmd $(!SQLGetMasterOS),"STRINGBIND" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set ErrorNumber = " #U0" goto finish_upgrade_check endif LibraryProcedure DBOperatingSys, $(!DLLSQL), StrBeforeAndAfter $($R1),"BEFORE"," " shell "" ExecNReturnSQLCmd $(!SQLCheckVersion),"INTBIND" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set ErrorNumber = " #U1" goto finish_upgrade_check endif ifstr(i) $($R1) != "" ifstr(i) $($R1) != "0" set Status = STATUS_OKFAILED goto finish_upgrade_check endif endif shell "" ExecNReturnSQLCmd $(!SQLCheckRO),"INTBIND" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set ErrorNumber = " #U2" goto finish_upgrade_check endif ifstr(i) $($R1) != "0" LibraryProcedure !UpgErrors, $(!DLLSQL), AppendToString $(!UpgErrors),$(!UpgErrorROs) endif shell "" CheckMasterSpace ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set ErrorNumber = " #U3" goto finish_upgrade_check endif ifint $($R1) < $(!UpgMem11) ifstr(i) $(!UpgOverride) != "" shell "" Popup "1.1 Upgrade Space insufficient Requires "$(!UpgMem11)", has "$($R1) else LibraryProcedure !UpgErrors, $(!DLLSQL), AppendToString $(!UpgErrors),$(!UpgErrorMastSpace) endif endif shell "" ExecNReturnSQLCmd $(!SQLCheckSuspect),"INTBIND" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set ErrorNumber = " #U4" goto finish_upgrade_check endif ifstr(i) $($R1) != "0" LibraryProcedure !UpgErrors, $(!DLLSQL), AppendToString $(!UpgErrors),$(!UpgErrorSuspect) endif shell "" ExecNReturnSQLCmd $(!SQLGetConfOpen),"INTBIND" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set ErrorNumber = " #U5" goto finish_upgrade_check endif set NumDBs = $($R1) shell "" ExecNReturnSQLCmd $(!SQLGetNumDBs),"INTBIND" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set ErrorNumber = " #U6" goto finish_upgrade_check endif ifint $($R1) > $(NumDBs) LibraryProcedure !UpgErrors, $(!DLLSQL), AppendToString $(!UpgErrors),$(!UpgErrorNumDBs) endif endif set Status = STATUS_SUCCESSFUL finish_upgrade_check =+ Return $(Status) $(ErrorNumber) $(DBOperatingSys) [CheckMasterSpace] set Status = STATUS_FAILED set Size = "" LibraryProcedure Result, $(!DLLSQL), SQLAddtoCmdBuff $(!SQLCheckMasterSpace) LibraryProcedure Result, $(!DLLSQL), SQLExecuteCmdBuff ifstr(i) $(Result) == "BAD_SQL_EXEC" read-syms SQLExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)$(!LF) LibraryProcedure !AddlText, $(!DLLSQL), SQLGetErrorMsg LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)$(!LF) goto end_getmasterspace endif LibraryProcedure Result, $(!DLLSQL), SQLGetNextResultSet LibraryProcedure Result, $(!DLLSQL), SQLNextRow $(!PurgeRows) LibraryProcedure Result, $(!DLLSQL), SQLGetNextResultSet LibraryProcedure Result, $(!DLLSQL), SQLNextRow $(!PurgeRows) LibraryProcedure Result, $(!DLLSQL), SQLGetNextResultSet ifstr(i) $(Result) != "BAD_RESULTS" LibraryProcedure Result, $(!DLLSQL), SQLBindColumn "INTBIND", "1" LibraryProcedure Result, $(!DLLSQL), SQLNextRow $(!OneNextRow) LibraryProcedure Size, $(!DLLSQL), SQLGetBindingData "1" LibraryProcedure Result, $(!DLLSQL), SQLNextRow $(!PurgeRows) endif set Status = STATUS_SUCCESSFUL end_getmasterspace=+ Return $(Status) $(Size) [DoInstallLang] set Status = STATUS_FAILED set BillyBoard = "" read-syms LangError$(!STF_LANGUAGE) backToGetLangInfo =+ shell "" DoGetLangInfo ifstr(i) $($R0) == "STATUS_BACK" set Status = STATUS_BACK goto end_instlang else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_instlang endif set LanguageName = $($R1) set SAPassword = $($R2) set DefaultLanguage = $($R3) set !DestPath = $(!SQLPath)"\"$(!LocalesDir)"\"$(LanguageName) read-syms GetLangFileDlg$(!STF_LANGUAGE) shell "" DoGetPath ifstr(i) $($R0) == "STATUS_BACK" goto backToGetLangInfo else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_instlang endif set !SrcPath = $(!PathOut) read-syms ProgressCopyVars install CopyLangFiles ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS" read-syms FileCouldNotBeCopied$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_instlang endif StartWait read-syms InstLangingDlg$(!STF_LANGUAGE) LibraryProcedure BillyBoard, $(!DLLSQL), BillBoard $(STF_HWND),"",$(!SQLDlgNames) shell "" StartService $(!SQLServerService) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_instlang endif shell "" DoLangInst $(LanguageName),$(SAPassword),$(DefaultLanguage) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_instlang endif set Status = STATUS_SUCCESSFUL end_instlang =+ ifstr(i) $(BillyBoard) != "" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(BillyBoard) endif EndWait Return $(Status) [DoLangInst] set Status = "STATUS_FAILED" StartWait ProcessExecute Result,"WAIT",$(!SQLPath)"\"$(!Binaries)"\"$(!LangInst)" /S"$(!ServerName)" /P"$($1)" /o"$(!SQLPath)"\"$(!InstallDir)"\"$(!LangInstOut)" /L"$(!SQLPath)" "$($0) ifstr(i) $(Result) == "PROCESS_ERROR" read-syms ProcessExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!LangInst)" "$(!AddlText) goto end_instlang else-ifstr(i) $(Result) != "0" read-syms ProcessRetError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!LangInst)" "$(!AddlText)" "$(Result) goto end_instlang endif ifstr(i) $($2) == "CHECKED" LibraryProcedure Result, $(!DLLSQL), SQLLogin "0","4",$(!ServerName),$(!SALogin),$($1) ifstr(i) $(Result) != "NO_SERVER" LibraryProcedure Result, $(!DLLSQL), SQLExecute $(!SQLSetLang) ifstr(i) $(Result) == "BAD_SQL_EXEC" read-syms SQLExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)" UST #1"$(!LF) LibraryProcedure !AddlText, $(!DLLSQL), SQLGetErrorMsg LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_instlang endif LibraryProcedure Result, $(!DLLSQL), SQLExecute $(!SQLReconfigure) ifstr(i) $(Result) == "BAD_SQL_EXEC" read-syms SQLExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)" UST #2"$(!LF) LibraryProcedure !AddlText, $(!DLLSQL), SQLGetErrorMsg LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_instlang endif else read-syms NoLoginToSQLServer$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) endif endif set Status = STATUS_SUCCESSFUL end_instlang =+ LibraryProcedure Result, $(!DLLSQL), SQLLogout EndWait Return $(Status) [DoGetServerParameters] set Status = STATUS_FAILED LibraryProcedure ParamList, $(!DLLSQL), RegEnumKeyValues "\\"$(!ComputerName),$(!RegSQLServerServer)"\"$(!RegSQLSvrParam),"VALUEDATA" read-syms ServerParamsDlg$(!STF_LANGUAGE) LibraryProcedure DlgParams, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"1",$(ParamList) ifstr(i) $(ParamList) != "KEY_ERROR" LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgParams),"EDIT1",*($(ParamList),1) endif lang_info =+ LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "EXIT" set Status = STATUS_USERQUIT goto end_langinfo else-ifstr(i) $(DLGEVENT) == "DLGBUTTON1" LibraryProcedure CurSel, $(!DLLSQL), DlgGetCmbCurSel $(DlgParams),"LISTBOX1" LibraryProcedure Param, $(!DLLSQL), DlgGetEditText $(DlgParams),"EDIT1" ifstr(i) $(Param) != "" LibraryProcedure Result, $(!DLLSQL), DlgAddCmbEntry $(DlgParams),"LISTBOX1",$(Param) LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgParams),"EDIT1","" ifstr(i) $(CurSel) == "-1" LibraryProcedure CurSel, $(!DLLSQL), DlgSetCmbCurSel $(DlgParams),"LISTBOX1","0" endif endif goto lang_info else-ifstr(i) $(DLGEVENT) == "DLGBUTTON2" LibraryProcedure CurSel, $(!DLLSQL), DlgGetCmbCurSel $(DlgParams),"LISTBOX1" LibraryProcedure Result, $(!DLLSQL), DlgDeleteCmbEntry $(DlgParams),"LISTBOX1",$(CurSel) ifint $(CurSel) > "1" set-sub CurSel = $(CurSel),1 else set CurSel = 0 endif LibraryProcedure CurSel, $(!DLLSQL), DlgSetCmbCurSel $(DlgParams),"LISTBOX1",$(CurSel) LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgParams),"EDIT1","" goto lang_info else-ifstr(i) $(DLGEVENT) == "LISTBOX1" LibraryProcedure CurSel, $(!DLLSQL), DlgGetCmbCurSel $(DlgParams),"LISTBOX1" LibraryProcedure ListItem, $(!DLLSQL), DlgGetCmbCurText $(DlgParams),"LISTBOX1",$(CurSel) LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgParams),"EDIT1",$(ListItem) goto lang_info else-ifstr(i) $(DLGEVENT) == "CONTINUE" StartWait LibraryProcedure NumParams, $(!DLLSQL), DlgCmbCount $(DlgParams),"LISTBOX1" set Params = {} set CurParam = 0 param_loop =+ ifint $(CurParam) < $(NumParams) LibraryProcedure ListItem, $(!DLLSQL), DlgGetCmbCurText $(DlgParams),"LISTBOX1",$(CurParam) set Params = >( $(Params), $(ListItem)) set-add CurParam = $(CurParam),1 goto param_loop endif LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSQLServerServer),$(!RegSQLSvrParam) LibraryProcedure OpenParamKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServerServer),$(!RegSQLSvrParam),"" ifstr(i) $(OpenParamKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_langinfo else ForListDo $(Params) set-sub Count = $(#),1 LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenParamKey),$(!RegValParameter)$(Count),$(!RegTypeString),$($),"" EndForListDo endif LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenParamKey) set Status = STATUS_SUCCESSFUL else-ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK goto end_langinfo endif set Status = STATUS_SUCCESSFUL end_langinfo =+ EndWait LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgParams) Return $(Status) [DoTapeSupport] set Mins = "" set Status = "STATUS_FAILED" StartWait LibraryProcedure Mins, $(!DLLSQL), RegRead $($0),$(!RegValTapeWait) ifstr(i) $(Mins) == "KEY_ERROR" set !DefRadio = "1" else-ifstr(i) $(Mins) == "0" set !DefRadio = "2" else-ifstr(i) $(Mins) == "-1" set !DefRadio = "1" else set !DefRadio = "3" endif read-syms TapeTimeDlg$(!STF_LANGUAGE) LibraryProcedure DlgTape, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" ifstr(i) $(!DefRadio) == "3" LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgTape),"EDIT1",$(Mins) endif tape_sup =+ ifstr(i) $(!DefRadio) == "3" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgTape),"TEXT1","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgTape),"EDIT1","TRUE" else LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgTape),"TEXT1","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgTape),"EDIT1","FALSE" endif EndWait LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "EXIT" set Status = STATUS_USERQUIT goto end_tape_sup else-ifstr(i) $(DLGEVENT) == "DLGBUTTON1" set !DefRadio = "1" goto tape_sup else-ifstr(i) $(DLGEVENT) == "DLGBUTTON2" set !DefRadio = "2" goto tape_sup else-ifstr(i) $(DLGEVENT) == "DLGBUTTON3" set !DefRadio = "3" goto tape_sup else-ifstr(i) $(DLGEVENT) == "CONTINUE" ifstr(i) $(!DefRadio) == "1" set Mins = "-1" else-ifstr(i) $(!DefRadio) == "2" set Mins = "0" else LibraryProcedure Mins, $(!DLLSQL), DlgGetEditText $(DlgTape),"EDIT1" ifstr(i) $(Mins) == "" goto tape_sup endif endif LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegValTapeWait),$(!RegTypeDWord),$(Mins),"" endif set Status = STATUS_SUCCESSFUL end_tape_sup =+ EndWait LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgTape) Return $(Status) [DoServerOptions] set Status = STATUS_FAILED read-syms ServerOptsError$(!STF_LANGUAGE) read-syms ServerOptsDlg$(!STF_LANGUAGE) LibraryProcedure DlgOpts, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" set NumCPUs = "2" ifstr(i) $(!RemoteComputer) == "" LibraryProcedure NumCPUs, $(!DLLSQL), GetNumProcessors ifint $(NumCPUs) < "2" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgOpts),"UNIBUTTON8","FALSE" endif endif shell "" DoParseServerInfo $(DlgOpts),$(NumCPUs) set OpenSetupKey = $($R1) set OpenSvcKey = $($R2) set SQLPerf = $($R3) set ELogEntry = $($R4) set EMDBEntry = $($R5) set ParamCount = $($R6) set OpenMonSvcKey = $($R7) set OpenServerKey = $($R8) set OpenPerfKey = $($R9) LibraryProcedure NTELogInitial, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"UNIBUTTON4" LibraryProcedure MailInitial, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"UNIBUTTON2" serveropts =+ LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto end_serveropts else goto serveropts endif else-ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK goto end_serveropts else-ifstr(i) $(DLGEVENT) == "DLGBUTTON1" shell "" DoGetServerParameters ifstr(i) $($R0) == "STATUS_FAILED" goto end_serveropts else-ifstr(i) $($R0) == "STATUS_SUCCESSFUL" shell "" DoParseServerInfo $(DlgOpts),$(NumCPUs) endif goto serveropts else-ifstr(i) $(DLGEVENT) == "DLGBUTTON2" shell "" DoTapeSupport $(OpenServerKey) ifstr(i) $($R0) == "STATUS_FAILED" goto end_serveropts endif goto serveropts else-ifstr(i) $(DLGEVENT) == "DLGBUTTON3" LibraryProcedure DoSQLCntrs, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"DLGBUTTON3" ifstr(i) $(DoSQLCntrs) == "CHECKED" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgOpts),"UNIBUTTON6","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgOpts),"UNIBUTTON7","TRUE" else LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgOpts),"UNIBUTTON6","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgOpts),"UNIBUTTON7","FALSE" endif goto serveropts else-ifstr(i) $(DLGEVENT) == "DLGBUTTON4" LibraryProcedure Result, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"DLGBUTTON4" ifstr(i) $(Result) != "CHECKED" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgOpts),"DLGBUTTON5","FALSE" endif goto serveropts else-ifstr(i) $(DLGEVENT) == "DLGBUTTON5" LibraryProcedure Result, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"DLGBUTTON5" ifstr(i) $(Result) == "CHECKED" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgOpts),"DLGBUTTON4","TRUE" endif goto serveropts else-ifstr(i) $(DLGEVENT) == "DLGBUTTON6" shell "" DoGetMailInfo goto serveropts else-ifstr(i) $(DLGEVENT) == "CONTINUE" StartWait LibraryProcedure !SQLPath, $(!DLLSQL), DlgGetEditText $(DlgOpts),"EDIT1" ifstr(i) $(!SQLPath) == "" read-syms NoServerPath$(!STF_LANGUAGE) shell "" MessageError goto serveropts endif LibraryProcedure !PathOut, $(!DLLSQL), DlgGetEditText $(DlgOpts),"EDIT2" LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $(!PathOut),"LASTBEFORE","\" ifstr(i) $(Before) == "" read-syms NoMasterPath$(!STF_LANGUAGE) shell "" MessageError goto serveropts endif LibraryProcedure After, $(!DLLSQL), StrBeforeAndAfter $(!PathOut),"LASTAFTER","\" LibraryProcedure PathAfter, $(!DLLSQL), StrBeforeAndAfter $(After),"LASTAFTER","." ifstr(i) $(PathAfter) == "" read-syms DBNoDat$(!STF_LANGUAGE) shell "" MessageError goto serveropts endif set !MasterDBFileName = $(After) set !MasterDBPath = $(Before) ifstr(i) $(NTELogInitial) == "CHECKED" LibraryProcedure Result, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"UNIBUTTON4" ifstr(i) $(Result) != "CHECKED" read-syms DeleteEventLog$(!STF_LANGUAGE) read-syms YesNoDlg$(!STF_LANGUAGE) ui start $(DlgTemplate) ifstr(i) $(DLGEVENT) == "NO" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgOpts),"UNIBUTTON4", "TRUE" goto serveropts endif endif endif LibraryProcedure MailInfo, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"UNIBUTTON2" ifstr(i) $(MailInitial) != "CHECKED" ifstr(i) $(MailInfo) == "CHECKED" ifstr(i) $(!MSMailUser) == "" shell "" DoGetMailInfo ifstr(i) $($R0) == "STATUS_BACK" goto serveropts endif ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_serveropts endif endif endif endif LibraryProcedure ELogPath, $(!DLLSQL), DlgGetEditText $(DlgOpts),"EDIT3" LibraryProcedure SvcStart, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"DLGBUTTON4" LibraryProcedure MonSvcStart, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"DLGBUTTON5" LibraryProcedure RealTime, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"UNIBUTTON3" LibraryProcedure NTELog, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"UNIBUTTON4" LibraryProcedure DoSQLCntrs, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"DLGBUTTON3" LibraryProcedure PerfSync, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"UNIBUTTON6" LibraryProcedure SMPStat, $(!DLLSQL), IsDlgBtnChecked $(DlgOpts),"UNIBUTTON8" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSetupKey),$(!RegValSQLPath),$(!RegTypeString),$(!SQLPath),"" LibraryProcedure OpenParamKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServerServer),$(!RegSQLSvrParam),"" ifstr(i) $(OpenParamKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) else ifstr(i) $(EMDBEntry) != "" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenParamKey),$(EMDBEntry),$(!RegTypeString),"-d"$(!MasterDBPath)"\"$(!MasterDBFileName),"" else LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenParamKey),$(!RegValParameter)$(ParamCount),$(!RegTypeString),"-d"$(!MasterDBPath)"\"$(!MasterDBFileName),"" set-add ParamCount = $(ParamCount),1 endif ifstr(i) $(ELogPath) == "" ifstr(i) $(ELogEntry) != "" LibraryProcedure Result, $(!DLLSQL), RegDelValue $(OpenParamKey),$(ELogEntry) endif else ifstr(i) $(ELogEntry) != "" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenParamKey),$(ELogEntry),$(!RegTypeString),"-e"$(ELogPath),"" else LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenParamKey),$(!RegValParameter)$(ParamCount),$(!RegTypeString),"-e"$(ELogPath),"" endif endif LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenParamKey) endif ifstr(i) $(NTELog) == "CHECKED" shell "" RegWriteELog $(Server) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_serveropts endif else-ifstr(i) $(NTELogInitial) == "CHECKED" LibraryProcedure MntrRunning, $(!DLLSQL), GetServiceState "\\"$(!ComputerName),$(!SQLMonitorService) ifstr(i) $(MntrRunning) == "SERVICE_RUNNING" shell "" StopService $(!SQLMonitorService) endif LibraryProcedure SvrRunning, $(!DLLSQL), GetServiceState "\\"$(!ComputerName),$(!SQLServerService) ifstr(i) $(SvrRunning) == "SERVICE_RUNNING" shell "" StopService $(!SQLServerService) endif LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegEventAppLog),$(!SQLServerService) LibraryProcedure Result, $(!DLLSQL), ClearEventLogNoBackup ifstr(i) $(SvrRunning) == "SERVICE_RUNNING" shell "" StartService $(!SQLServerService) endif ifstr(i) $(MntrRunning) == "SERVICE_RUNNING" shell "" StartService $(!SQLMonitorService) endif endif shell "" RegWriteSystemPaths $(Server),$(!RegSystemPaths),"" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_serveropts endif ifstr(i) $(OpenSvcKey) != "" ifstr(i) $(SvcStart) == "CHECKED" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSvcKey),$(!RegSvcStart),$(!RegTypeDWord),"2","" else LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSvcKey),$(!RegSvcStart),$(!RegTypeDWord),"3","" endif endif ifstr(i) $(OpenMonSvcKey) != "" ifstr(i) $(MonSvcStart) == "CHECKED" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenMonSvcKey),$(!RegSvcStart),$(!RegTypeDWord),"2","" else LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenMonSvcKey),$(!RegSvcStart),$(!RegTypeDWord),"3","" endif endif ifstr(i) $(OpenServerKey) != "" ifstr(i) $(!CopyMailInfo) == "CHECKED" shell "" RegCopyMailInfo "\\"$(!ComputerName) endif ifstr(i) $(!MSMailUser) != "" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenServerKey),$(!RegValMSMailUser),$(!RegTypeString),$(!MSMailUser),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenServerKey),$(!RegValMSMailPwd),$(!RegTypeString),$(!MSMailPwd),"" endif ifstr(i) $(MailInfo) == "CHECKED" ifstr(i) $(MailInitial) != "CHECKED" shell "" RegWriteMailEnabled "\\"$(!ComputerName) endif else shell "" DoMailNuke "\\"$(!ComputerName) endif ifstr(i) $(RealTime) == "CHECKED" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenServerKey),$(!RegValRealTime),$(!RegTypeDWord),"1","" else LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenServerKey),$(!RegValRealTime),$(!RegTypeDWord),"0","" endif ifint $(NumCPUs) > "1" ifstr(i) $(SMPStat) == "CHECKED" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenServerKey),$(!RegValSMPStat),$(!RegTypeDWord),"0","" else LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenServerKey),$(!RegValSMPStat),$(!RegTypeDWord),"1","" endif endif endif ifstr(i) $(DoSQLCntrs) == "CHECKED" ifstr(i) $(SQLPerf) == "" shell "" RegWritePerfMon "\\"$(!ComputerName) endif ifstr(i) $(PerfSync) == "CHECKED" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenPerfKey),$(!RegValPerfSync),$(!RegTypeDWord),"0","" else LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenPerfKey),$(!RegValPerfSync),$(!RegTypeDWord),"1","" endif else ifstr(i) $(SQLPerf) != "" shell "" DoPerfmonNuke "\\"$(!ComputerName) endif endif set Status = STATUS_SUCCESSFUL else goto serveropts endif end_serveropts =+ ifstr(i) $(OpenSvcKey) != "" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenSvcKey) endif ifstr(i) $(OpenMonSvcKey) != "" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenMonSvcKey) endif ifstr(i) $(OpenSetupKey) != "" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenSetupKey) endif ifstr(i) $(OpenServerKey) != "" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenServerKey) endif ifstr(i) $(OpenPerfKey) != "" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenPerfKey) endif EndWait LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgOpts) Return $(Status) [DoParseServerInfo] StartWait set Status = STATUS_FAILED set ELogEntry = "" set ELogPath = "" set EMDBEntry = "" set NTELog = "" set ParamCount = "" set SvcStart = "" set SvcMonStart = "" set SQLPerf = "" set SQLPerfSync = "0" set SMPStat = "1" set !MasterDBPath = "" set !MasterDBFileName = "" set !SQLPath = "" LibraryProcedure OpenSetupKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLSetup),"","" ifstr(i) $(OpenSetupKey) != "KEY_ERROR" LibraryProcedure !SQLPath, $(!DLLSQL), RegRead $(OpenSetupKey),$(!RegValSQLPath) endif LibraryProcedure TmpParamList, $(!DLLSQL), RegEnumKeyValues "\\"$(!ComputerName),$(!RegSQLServerServer)"\"$(!RegSQLSvrParam),"VALUENAMES" QueryListSize ParamCount $(TmpParamList) LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenPerfKey) shell "" DoExtractMasterAndErrorlog "\\"$(!ComputerName) set EMDBEntry = $($R0) set ELogEntry = $($R1) set !MasterDBPath = $($R2) set ELogPath = $($R3) set !MasterDBFileName = $($R4) LibraryProcedure OpenELogKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegEventAppLog),$(!SQLServerService),"" ifstr(i) $(OpenELogKey) != "KEY_ERROR" LibraryProcedure NTELog, $(!DLLSQL), RegRead $(OpenELogKey),$(!RegValELogMsgFile) LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenELogKey) endif LibraryProcedure OpenSvcKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSCMSQLServer),$(!SQLServerService),"" ifstr(i) $(OpenSvcKey) != "KEY_ERROR" LibraryProcedure SvcStart, $(!DLLSQL), RegRead $(OpenSvcKey),$(!RegSvcStart) else set OpenSvcKey = "" endif LibraryProcedure OpenMonSvcKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSCMSQLServer),$(!SQLMonitorService),"" ifstr(i) $(OpenMonSvcKey) != "KEY_ERROR" LibraryProcedure SvcMonStart, $(!DLLSQL), RegRead $(OpenMonSvcKey),$(!RegSvcStart) else set OpenMonSvcKey = "" endif LibraryProcedure OpenServerKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServer),$(!RegSQLServerSvr),"" ifstr(i) $(OpenServerKey) != "KEY_ERROR" LibraryProcedure RealTime, $(!DLLSQL), RegRead $(OpenServerKey),$(!RegValRealTime) LibraryProcedure SMPStat, $(!DLLSQL), RegRead $(OpenServerKey),$(!RegValSMPStat) LibraryProcedure TmpStartupHandlers, $(!DLLSQL), RegRead $(OpenServerKey),$(!RegValMailEnabled) else set OpenServerKey = "" endif LibraryProcedure OpenPerfKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSCMSQLServer),$(!SQLServerService)"\"$(!RegSQLPerformance),"" ifstr(i) $(OpenPerfKey) != "KEY_ERROR" LibraryProcedure SQLPerf, $(!DLLSQL), RegRead $(OpenPerfKey),$(!RegValLibrary) ifstr(i) $(SQLPerf) == "KEY_ERROR" set SQLPerf = "" endif LibraryProcedure SQLPerfSync, $(!DLLSQL), RegRead $(OpenPerfKey),$(!RegValPerfSync) ifstr(i) $(SQLPerf) == "KEY_ERROR" set SQLPerfSync = "0" endif endif ifstr(i) $(!SQLPath) == "KEY_ERROR" set !SQLPath = "" endif LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $($0),"EDIT1",$(!SQLPath) ifstr(i) $(!MasterDBPath) == "KEY_ERROR" set !MasterDBPath = "" endif ifstr(i) $(!MasterDBFileName) == "KEY_ERROR" set !MasterDBFileName = "" endif LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $($0),"EDIT2",$(!MasterDBPath)"\"$(!MasterDBFileName) LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $($0),"EDIT3",$(ELogPath) ifstr(i) $(NTELog) == "KEY_ERROR" set NTELog = "" endif ifstr(i) $(NTELog) != "" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"UNIBUTTON4","TRUE" else LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"UNIBUTTON4","FALSE" endif ifstr(i) $(SvcStart) == "KEY_ERROR" set SvcStart = "" endif ifstr(i) $(SvcStart) == "2" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"DLGBUTTON4","TRUE" else LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"DLGBUTTON4","FALSE" endif ifstr(i) $(SvcMonStart) == "KEY_ERROR" set SvcMonStart = "" endif ifstr(i) $(SvcMonStart) == "2" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"DLGBUTTON5","TRUE" else LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"DLGBUTTON5","FALSE" endif ifstr(i) $(RealTime) == "KEY_ERROR" set RealTime = "" endif ifstr(i) $(RealTime) == "1" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"UNIBUTTON3","TRUE" else LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"UNIBUTTON3","FALSE" endif ifint $($1) > "1" ifstr(i) $(SMPStat) == "KEY_ERROR" set SMPStat = "1" endif ifstr(i) $(SMPStat) == "1" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"UNIBUTTON8","FALSE" else LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"UNIBUTTON8","TRUE" endif endif ifcontains(i) $(!RegValSqlMailPair) in $(TmpStartupHandlers) LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"UNIBUTTON2","TRUE" else LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"UNIBUTTON2","FALSE" endif ifstr(i) $(SQLPerf) != "" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"DLGBUTTON3","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $($0),"UNIBUTTON6","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $($0),"UNIBUTTON7","TRUE" else LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"DLGBUTTON3","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $($0),"UNIBUTTON6","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $($0),"UNIBUTTON7","FALSE" endif ifstr(i) $(SQLPerfSync) == "1" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"UNIBUTTON7","UNIBUTTON6","UNIBUTTON7" else LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $($0),"UNIBUTTON6","UNIBUTTON6","UNIBUTTON7" endif EndWait Return $(Status),$(OpenSetupKey),$(OpenSvcKey),$(SQLPerf),$(ELogEntry),$(EMDBEntry),$(ParamCount),$(OpenMonSvcKey),$(OpenServerKey),$(OpenPerfKey) [DoExtractMasterAndErrorlog] LibraryProcedure TmpParamList, $(!DLLSQL), RegEnumKeyValues $($0),$(!RegSQLServerServer)"\"$(!RegSQLSvrParam),"VALUENAMESNDATA" ForListDo $(TmpParamList) LibraryProcedure Idx, $(!DLLSQL), IntMultiply $(#),2 set Data = *($(TmpParamList),$(Idx)) ifstr(i) $(Data) != "" LibraryProcedure Result, $(!DLLSQL), StringCopyN $(Data),"0","2" set-sub Idx = $(Idx),1 ifstr(i) $(Result) == "-e" set ErrorLogEntry = *($(TmpParamList),$(Idx)) LibraryProcedure ErrorLogData, $(!DLLSQL), StringCopyN $(Data),"2","N" else-ifstr(i) $(Result) == "-d" set MasterDBEntry = *($(TmpParamList),$(Idx)) LibraryProcedure Tmp, $(!DLLSQL), StringCopyN $(Data),"2","N" LibraryProcedure MasterDBData, $(!DLLSQL), StrBeforeAndAfter $(Tmp),"LASTBEFORE","\" LibraryProcedure MasterName, $(!DLLSQL), StrBeforeAndAfter $(Tmp),"LASTAFTER","\" endif endif endif EndForListDo Return $(MasterDBEntry),$(ErrorLogEntry),$(MasterDBData),$(ErrorLogData),$(MasterName) [DoGetLangInfo] set Status = STATUS_FAILED read-syms GetLangInfoDlg$(!STF_LANGUAGE) LibraryProcedure DlgLang, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" lang_info =+ LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto end_langinfo else goto lang_info endif else-ifstr(i) $(DLGEVENT) == "CONTINUE" LibraryProcedure LanguageName, $(!DLLSQL), DlgGetEditText $(DlgLang),"EDIT1" LibraryProcedure SAPassword, $(!DLLSQL), DlgGetEditText $(DlgLang),"EDIT2" ifstr(i) $(LanguageName) == "" read-syms NoLangInfo$(!STF_LANGUAGE) shell "" MessageError goto lang_info endif LibraryProcedure DefaultLanguage, $(!DLLSQL), IsDlgBtnChecked $(DlgLang),"UNIBUTTON1" else-ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK goto end_langinfo endif set Status = STATUS_SUCCESSFUL end_langinfo =+ LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgLang) Return $(Status) $(LanguageName) $(SAPassword) $(DefaultLanguage) [DoRebuildDatabase] set Status = STATUS_FAILED backToRebuildQ =+ read-syms RebuildDlg$(!STF_LANGUAGE) LibraryProcedure DlgRbld, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" rebuild =+ LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK goto finish_rebuild else-ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto finish_rebuild else goto rebuild endif else-ifstr(i) $(DLGEVENT) == "CONTINUE" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgRbld) set DlgRbld = "" set !AddlScripts = $(!DefScriptList) set !CheckInstList = $(!CheckInstDefList) set !CheckInstRetList = $(!CheckInstDefRetList) set !CheckInstList = >( $(!CheckInstList), $(!SQLPubs)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!Pubs)) set !CheckInstList = >( $(!CheckInstList), $(!SQLAdmin1)) set !CheckInstList = >( $(!CheckInstList), $(!SQLAdmin2)) set !CheckInstList = >( $(!CheckInstList), $(!SQLObject1)) set !CheckInstList = >( $(!CheckInstList), $(!SQLObject2)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpAdminChk1)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpAdminChk2)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpObjectChk1)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpObjectChk2)) set !CheckInstList = >( $(!CheckInstList), $(!SQLHelpSQL)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!RetHelpSQL)) set !SortOrderSelList = $(!Sort850SelList) set !TheCharSet = *( $(!CharSetSelList), 2 ) set !TheSortFile = *( $(!SortOrderSelList), 2 ) set !TheSortConfigValue = *( $(!SortOrderSelList), 3 ) backToRebuildOpts =+ shell "" DoGetRebuildOptions ifstr(i) $($R0) == "STATUS_BACK" goto backToRebuildQ else-ifstr(i) $($R0) == "STATUS_USERQUIT" goto finish_rebuild endif backToSQLPath =+ shell "" DoGetSpaceSQLPath GetSQLPathDlg,$(InstallationReqSpace),$(SpaceCost),"1","","",$(!LogicalSQLDrive) ifstr(i) $($R0) == "STATUS_BACK" goto backToRebuildOpts else-ifstr(i) $($R0) == "STATUS_USERQUIT" set Status = "STATUS_USERQUIT" goto finish_rebuild else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_rebuild endif set !SQLPath = $($R1)$($R2) set !DefSQLPath = $(!SQLPath) set !CreateSQLPath = $(!SQLPath) ifstr(i) $(!RemoteComputer) == "" set !LogicalSQLDrive = $($R1) endif backToMasterPath =+ ifstr(i) $(!MasterDBFileName) == "" set !DefMasterPath = $(!SQLPath)"\"$(!DataDir)"\"$(!DefMasterDB) else set !DefMasterPath = $(!MasterDBPath)"\"$(!MasterDBFileName) endif shell "" DoGetSpaceMasterPath GetMasterPathDlg,$(InstallationReqSpace),$(SpaceCost),"3","","MASTER_DONT_CARE_EXIST",$(!LogicalDBDrive) ifstr(i) $($R0) == "STATUS_BACK" goto backToSQLPath else-ifstr(i) $($R0) == "STATUS_USERQUIT" set Status = "STATUS_USERQUIT" goto finish_rebuild else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_rebuild endif shell "" StopService $(!SQLMonitorService) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_rebuild endif shell "" StopService $(!SQLServerService) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_rebuild endif shell "" DoReBuild "FALSE" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_rebuild endif set Status = STATUS_SUCCESSFUL shell "" StartService $(!SQLServerService) endif finish_rebuild =+ ifstr(i) $(DlgRbld) != "" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgRbld) endif Return $(Status) [DoGetRebuildOptions] StartWait set Status = STATUS_FAILED read-syms RebuildOptionsDlg LibraryProcedure DlgRebOptions, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" EndWait reboptions = + LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto finish_reboptions else goto reboptions endif else-ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK goto finish_reboptions else-ifstr(i) $(DLGEVENT) == "CONTINUE" set !TheCharSetPath = $(!SQLPath)"\"$(!CharSets)"\"$(!TheCharSet) set Status = STATUS_SUCCESSFUL goto finish_reboptions else-ifstr(i) $(DLGEVENT) == "DLGBUTTON1" shell "" DoCharSet goto reboptions else-ifstr(i) $(DLGEVENT) == "DLGBUTTON2" shell "" DoSortOrder goto reboptions else-ifstr(i) $(DLGEVENT) == "DLGBUTTON3" shell "" DoScripts goto reboptions endif finish_reboptions = + LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgRebOptions) Return $(Status) [DoNetDefaults] set !StreetName = $(!ComputerName) set !TCPIPSocketNumber = $(!DefTCPIPSocket) set !SocketNumber = $(!DefSocketNumber) set !ServiceName = $(!ComputerName) set !NetworkSelList = $(!DefNetworkSelList) set !NetAddresses = {} set !NetLibList = $(!NetLibDefList) Return [DoNetInstall] set Status = STATUS_FAILED net_intsall =+ set BillyBoard = "" shell "" DoNetDefaults read-syms NetInstallError$(!STF_LANGUAGE) LibraryProcedure OpenServerKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServer),$(!RegSQLServerSvr),"" ifstr(i) $(OpenServerKey) == "KEY_ERROR" read-syms ErrorReadRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_net_install endif LibraryProcedure OpenMonKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServer),$(!SQLMonitorService)"\"$(!RegSQLSvrParam),"" ifstr(i) $(OpenMonKey) == "KEY_ERROR" read-syms ErrorReadRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_net_install endif LibraryProcedure !ListenOn, $(!DLLSQL), RegRead $(OpenServerKey),$(!RegValListenOn) ForListDo $(!ListenOn) LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $($),"BEFORE","," LibraryProcedure After, $(!DLLSQL), StrBeforeAndAfter $($),"AFTER","," ifstr(i) $(Before) == $(!NetLibPipes) set !ServerNMPipeName = $(After) endif ifcontains(i) $(Before) in $(!NetLibList) else ifstr(i) $(Before) == $(!NetLibSPX) set !NetLibList = >( $(!NetLibList), $(!NetLibSPX)) LibraryProcedure !ServiceName, $(!DLLSQL), StrBeforeAndAfter $(After),"BEFORE","," LibraryProcedure !SocketNumber, $(!DLLSQL), StrBeforeAndAfter $(After),"AFTER","," set !NetSelList = >( $(!NetSelList), *($(!NetworkSelList), 1)) set !NetSelList = >( $(!NetSelList), *($(!NetworkSelList), 2)) set !NetSelList = >( $(!NetSelList), *($(!NetworkSelList), 3)) else-ifstr(i) $(Before) == $(!NetLibVines) set !NetLibList = >( $(!NetLibList), $(!NetLibVines)) set !StreetName = $(After) set !NetSelList = >( $(!NetSelList), *($(!NetworkSelList), 4)) set !NetSelList = >( $(!NetSelList), *($(!NetworkSelList), 5)) set !NetSelList = >( $(!NetSelList), *($(!NetworkSelList), 6)) else-ifstr(i) $(Before) == $(!NetLibTCPIP) set !NetLibList = >( $(!NetLibList), $(!NetLibTCPIP)) set !TCPIPSocketNumber = $(After) set !NetSelList = >( $(!NetSelList), *($(!NetworkSelList), 7)) set !NetSelList = >( $(!NetSelList), *($(!NetworkSelList), 8)) set !NetSelList = >( $(!NetSelList), *($(!NetworkSelList), 9)) else set !NetLibList = >( $(!NetLibList), $(Before)) set !NetworkSelList = >( $(!NetworkSelList), $(Before)) set !NetworkSelList = >( $(!NetworkSelList), $(!UserProvided)) set !NetworkSelList = >( $(!NetworkSelList), $(After))) set !NetSelList = >( $(!NetworkSelList), $(Before)) set !NetSelList = >( $(!NetworkSelList), $(!UserProvided)) set !NetSelList = >( $(!NetworkSelList), $(After))) endif endif EndForListDo set !NetworkSelList = >( $(!NetworkSelList), *($(!DefUserProvNet), 1)) set !NetworkSelList = >( $(!NetworkSelList), *($(!DefUserProvNet), 2)) set !NetworkSelList = >( $(!NetworkSelList), *($(!DefUserProvNet), 3)) set !AllowExit = "YES" shell "" DoNetwork ifstr(i) $($R0) == "STATUS_USERQUIT" goto end_net_install else-ifstr(i) $($R0) == "STATUS_BACK" set Status = STATUS_BACK goto end_net_install endif shell "" DoNetLibPrompts $(!NetLibList) ifstr(i) $($R0) == "STATUS_BACK" set Status = $($R0) goto net_intsall else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_net_install endif set NewNetLibs = $($R1) set NewNetAddrs = $($R2) shell "" RegWriteListenOn $(OpenServerKey) $(NewNetLibs) $(NewNetAddrs),"FORCE" shell "" RegWriteMonitor $(OpenMonKey) $(NewNetLibs),"FORCE" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenServerKey) LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenMonKey) set Status = STATUS_SUCCESSFUL end_net_install =+ Return $(Status) [DoGetSecurityOptions] scratch =+ set Status = STATUS_FAILED read-syms SetSecError$(!STF_LANGUAGE) shell "" RegGetSecuritySupport set !DefRadio = $($R1) ifstr(i) $(!MultipleNetworkSupport) != "" ifstr(i) $(!DefRadio) == "2" set !DefRadio = "1" endif endif read-syms SecurityDlg$(!STF_LANGUAGE) LibraryProcedure DlgSec, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgSec),"EDIT1",$($R2) LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgSec),"EDIT2",$($R3) ForListDo $(!DefSecurityTokens) LibraryProcedure Result, $(!DLLSQL), DlgAddCmbEntry $(DlgSec),"CALLCOMBO1",$($) LibraryProcedure Result, $(!DLLSQL), DlgAddCmbEntry $(DlgSec),"CALLCOMBO2",$($) LibraryProcedure Result, $(!DLLSQL), DlgAddCmbEntry $(DlgSec),"CALLCOMBO3",$($) EndForListDo LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(DlgSec),"CALLCOMBO1","BYEDIT",$($R5) LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(DlgSec),"CALLCOMBO2","BYEDIT",$($R6) LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(DlgSec),"CALLCOMBO3","BYEDIT",$($R7) shell "" DoSecurityComboChecking $(DlgSec),"CALLCOMBO1" shell "" DoSecurityComboChecking $(DlgSec),"CALLCOMBO2" shell "" DoSecurityComboChecking $(DlgSec),"CALLCOMBO3" set OldAccount = $($R2) set OldRadio = $(!DefRadio) ifstr(i) $($R4) == "1" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgSec),"UNIBUTTON1","TRUE" endif ifstr(i) $($R4) == "2" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgSec),"UNIBUTTON2","TRUE" endif ifstr(i) $($R4) == "3" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgSec),"UNIBUTTON1","TRUE" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgSec),"UNIBUTTON2","TRUE" endif ifstr(i) $($R8) == "1" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgSec),"UNIBUTTON3","TRUE" endif ifstr(i) $(!MultipleNetworkSupport) != "" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"DLGBUTTON2","FALSE" endif sec =+ ifstr(i) $(!DefRadio) != "1" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"TEXT1","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"TEXT2","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"TEXT3","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"TEXT4","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"TEXT5","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"TEXT6","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"EDIT1","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"EDIT2","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"UNIBUTTON3","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"CALLCOMBO1","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"CALLCOMBO2","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"CALLCOMBO3","TRUE" else LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"TEXT1","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"TEXT2","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"TEXT3","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"TEXT4","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"TEXT5","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"TEXT6","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"EDIT1","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"EDIT2","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"UNIBUTTON3","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"CALLCOMBO1","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"CALLCOMBO2","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSec),"CALLCOMBO3","FALSE" endif LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK goto finish_sec else-ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto finish_sec else goto sec endif else-ifstr(i) $(DLGEVENT) == "CONTINUE" set LoginMode = "0" set DefaultAccount = "" set DefaultDomain = "" set AuditLevel = "0" set SetHostname = "0" set Map1 = $(!DefSecMap1) set Map2 = $(!DefSecMap2) set Map3 = $(!DefSecMap3) LibraryProcedure ChkSucc, $(!DLLSQL), IsDlgBtnChecked $(DlgSec),"UNIBUTTON1" LibraryProcedure ChkFailed, $(!DLLSQL), IsDlgBtnChecked $(DlgSec),"UNIBUTTON2" LibraryProcedure Mode, $(!DLLSQL), IsDlgBtnChecked $(DlgSec),"DLGBUTTON1" ifstr(i) $(Mode) != "CHECKED" LibraryProcedure DefaultAccount, $(!DLLSQL), DlgGetEditText $(DlgSec),"EDIT1" LibraryProcedure DefaultDomain, $(!DLLSQL), DlgGetEditText $(DlgSec),"EDIT2" LibraryProcedure Map1, $(!DLLSQL), DlgGetCmbCurText $(DlgSec),"CALLCOMBO1","" LibraryProcedure Map2, $(!DLLSQL), DlgGetCmbCurText $(DlgSec),"CALLCOMBO2","" LibraryProcedure Map3, $(!DLLSQL), DlgGetCmbCurText $(DlgSec),"CALLCOMBO3","" shell "" DoGetTokenFromMap $(Map1) set Map1 = $($R0) shell "" DoGetTokenFromMap $(Map2) set Map2 = $($R0) shell "" DoGetTokenFromMap $(Map3) set Map3 = $($R0) ifstr(i) $(Map1) == $(Map2) ifstr(i) $(Map2) != "" read-syms STR_DuplicateMap shell "" MessageError goto sec endif endif ifstr(i) $(Map1) == $(Map3) ifstr(i) $(Map3) != "" read-syms STR_DuplicateMap shell "" MessageError goto sec endif endif ifstr(i) $(Map2) == $(Map3) ifstr(i) $(Map3) != "" read-syms STR_DuplicateMap shell "" MessageError goto sec endif endif LibraryProcedure Mode, $(!DLLSQL), IsDlgBtnChecked $(DlgSec),"DLGBUTTON2" LibraryProcedure ChkSetHostname, $(!DLLSQL), IsDlgBtnChecked $(DlgSec),"UNIBUTTON3" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgSec) set DlgSec = "" ifstr(i) $(DefaultAccount) != $(OldAccount) shell "" DoAddLogin $(DefaultAccount) ifstr(i) $($R0) == "STATUS_BACK" goto scratch else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_sec endif endif ifstr(i) $(OldRadio) == "1" ifstr(i) $(DefaultAccount) == $(OldAccount) shell "" DoAddLogin $(DefaultAccount) ifstr(i) $($R0) == "STATUS_BACK" goto scratch else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto finish_sec endif endif endif ifstr(i) $(Mode) == "CHECKED" set LoginMode = "1" else set LoginMode = "2" endif ifstr(i) $(ChkSetHostname) == "CHECKED" set SetHostname = "1" else set SetHostname = "0" endif endif ifstr(i) $(ChkSucc) == "CHECKED" set-add AuditLevel = $(AuditLevel),1 endif ifstr(i) $(ChkFailed) == "CHECKED" set-add AuditLevel = $(AuditLevel),2 endif shell "" RegWriteSecuritySupport $(LoginMode),$(DefaultAccount),$(DefaultDomain),$(AuditLevel),$(Map1),$(Map2),$(Map3),$(SetHostname),"FORCE" set Status = STATUS_SUCCESSFUL else-ifstr(i) $(DLGEVENT) == "DLGBUTTON1" set !DefRadio = "1" goto sec else-ifstr(i) $(DLGEVENT) == "DLGBUTTON2" set !DefRadio = "2" goto sec else-ifstr(i) $(DLGEVENT) == "DLGBUTTON3" set !DefRadio = "3" goto sec else-ifstr(i) $(DLGEVENT) == "CALLCOMBOKILLFOCUS1" shell "" DoSecurityComboChecking $(DlgSec),"CALLCOMBO1" goto sec else-ifstr(i) $(DLGEVENT) == "CALLCOMBOKILLFOCUS2" shell "" DoSecurityComboChecking $(DlgSec),"CALLCOMBO2" goto sec else-ifstr(i) $(DLGEVENT) == "CALLCOMBOKILLFOCUS3" shell "" DoSecurityComboChecking $(DlgSec),"CALLCOMBO3" goto sec else goto sec endif finish_sec =+ ifstr(i) $(DlgSec) != "" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgSec) endif Return $(Status) [DoGetTokenFromMap] set Ret = $($0) ifstr(i) $($0) == $(!SecStrNotUsed) set Ret = "" endif ifstr(i) $($0) == $(!SecStrDomSep) set Ret = $(!SecTokDomainSep) endif ifstr(i) $($0) == $(!SecStrSpace) set Ret = $(!SecTokSpace) endif Return $(Ret) [DoSecurityComboChecking] set Status = STATUS_SUCCESSFUL LibraryProcedure Text, $(!DLLSQL), DlgGetCmbCurText $($0),$($1),"" ifstr(i) $(Text) == "" LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $($0),$($1),"BYEDIT",$(!SecStrNotUsed) else-ifstr(i) $(Text) == $(!SecTokDomainSep) LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $($0),$($1),"BYEDIT",$(!SecStrDomSep) else-ifstr(i) $(Text) == $(!SecTokSpace) LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $($0),$($1),"BYEDIT",$(!SecStrSpace) endif Return $(Status) [DoAddLogin] set Status = STATUS_FAILED shell "" DoGetSAPassword ifstr(i) $($R0) == "STATUS_BACK" set Status = STATUS_BACK goto end_addlogin else-ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_addlogin endif shell "" StartService $(!SQLServerService) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_addlogin endif StartWait LibraryProcedure Result, $(!DLLSQL), SQLLogin $(!LoginSleepPeriod),$(!LoginSleepRetrys),$(!ServerName),$(!SALogin),$(!SAPassword) ifstr(i) $(Result) == "NO_SERVER" read-syms NoLoginToSQLServer$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_addlogin endif StartWait LibraryProcedure Result, $(!DLLSQL), SQLExecute $(!SQLAddLogin)"'"$($0)"',NULL,'master'" ifstr(i) $(Result) == "BAD_SQL_EXEC" read-syms SQLExecError$(!STF_LANGUAGE) LibraryProcedure !AddlText, $(!DLLSQL), SQLGetErrorMsg LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_addlogin endif set Status = STATUS_SUCCESSFUL end_addlogin =+ LibraryProcedure Result, $(!DLLSQL), SQLLogout EndWait Return $(Status) [DoNuke] set Status = STATUS_FAILED read-syms NukeError$(!STF_LANGUAGE) read-syms NukeDlg$(!STF_LANGUAGE) LibraryProcedure DlgNuke, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" nuke =+ LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK goto finish_nuke else-ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto finish_nuke else goto nuke endif else-ifstr(i) $(DLGEVENT) == "CONTINUE" StartWait shell "" StopService $(!SQLMonitorService) StartWait shell "" StopService $(!SQLServerService) StartWait shell "" DoPerfmonNuke "\\"$(!ComputerName) shell "" DoGroupOrderNuke "\\"$(!ComputerName) LibraryProcedure Result, $(!DLLSQL), DoServiceOp "\\"$(!ComputerName),"SERVICE_REMOVE",$(!SQLServerService),"","" LibraryProcedure Result, $(!DLLSQL), DoServiceOp "\\"$(!ComputerName),"SERVICE_REMOVE",$(!SQLMonitorService),"","" LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSQLServerServer),$(!RegSQLServerVer) LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSQLServerServer),$(!RegSQLSvrParam) LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSQLServer),$(!RegSQLServerSvr) LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSWMS),$(!SQLServerService) LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegEventAppLog),$(!SQLServerService) LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSQLServer),$(!RegSQLSetupKey) LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSQLServer),$(!RegSQLAdmin) LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSQLServer),$(!RegSQLOM) LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSQLServer),$(!RegISQLW) LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSQLServer),$(!RegSecMan) LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSQLServer),$(!RegSQLSvcMgr) shell "" RegUpdateTCPIPSupport "FALSE" StartWait LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSQLServer),$(!SQLMonitorService)"\"$(!RegSQLSvrParam) LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSQLServer),$(!SQLMonitorService) LibraryProcedure Result, $(!DLLSQL), IsDlgBtnChecked $(DlgNuke),"UNIBUTTON1" ifstr(i) $(Result) == "CHECKED" LibraryProcedure Result, $(!DLLSQL), Delnode "TREE_DELETE",$(!DefSQLPath) endif EndWait shell "" RegDeleteSystemPaths $(!RegSystemPaths), "" ifstr(i) $(!RemoteComputer) == "" install NukeSQLProgmanItems endif set Status = STATUS_SUCCESSFUL endif finish_nuke =+ LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgNuke) EndWait Return $(Status) [DoLicense] set Status = STATUS_FAILED start_fullnameorgname =+ read-syms QueryFullNameOrgNameDlg$(!STF_LANGUAGE) LibraryProcedure DlgLicense, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" fullnameorgname =+ LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CONTINUE" LibraryProcedure EditTextOut1, $(!DLLSQL), DlgGetEditText $(DlgLicense),"EDIT1" LibraryProcedure EditTextOut2, $(!DLLSQL), DlgGetEditText $(DlgLicense),"EDIT2" ifstr(i) $(EditTextOut1) == "" read-syms DBNoNameNOrg$(!STF_LANGUAGE) shell "" MessageError goto fullnameorgname else LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgLicense) set !FullName = $(EditTextOut1) set !OrgName = $(EditTextOut2) goto start_verifyfullnameorgname endif else-ifstr(i) $(DLGEVENT) == "CALLCOMBOKILLFOCUS1" goto fullnameorgname else-ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto finish_license else set ReInit = NO goto fullnameorgname endif else goto finish_license endif start_verifyfullnameorgname = + read-syms VerifyFullNameOrgNameDlg$(!STF_LANGUAGE) LibraryProcedure DlgLicense, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" verifyfullnameorgname =+ LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CONTINUE" set Status = STATUS_SUCCESSFUL goto finish_license else-ifstr(i) $(DLGEVENT) == "CALLCOMBOKILLFOCUS1" goto verifyfullnameorgname else-ifstr(i) $(DLGEVENT) == "BACK" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgLicense) goto start_fullnameorgname else-ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto finish_license else goto verifyfullnameorgname endif else goto finish_license endif finish_license = + ifstr(i) $(DlgLicense) != "" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgLicense) endif Return $(Status) [DoSetupType] StartWait set Status = STATUS_FAILED ifstr(i) $(!Owner) == "" set PrevInstallType = "1" else set PrevInstallType = "2" endif read-syms InstallTypeChoicesDlg$(!STF_LANGUAGE) LibraryProcedure SetupTypeDlg, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" ifstr(i) $(!StandAlone) != "" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(SetupTypeDlg),"DLGBUTTON1","FALSE" endif start_setuptype =+ ifstr(i) $(!Owner) == "" ForListDo $(!InstallSet) LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(SetupTypeDlg),"UNIBUTTON"$($),"FALSE" EndForListDo else ForListDo $(!InstallSetInstld) LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(SetupTypeDlg),"UNIBUTTON"$($),"FALSE" EndForListDo endif LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(SetupTypeDlg),"UNIBUTTON"$(PrevInstallType),"UNIBUTTON1","UNIBUTTON9" setuptype = + EndWait LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CONTINUE" set Status = STATUS_SUCCESSFUL LibraryProcedure !InstallType, $(!DLLSQL), GetCheckedRadio $(SetupTypeDlg) ifstr(i) $(!InstallType) == "4" ifstr(i) $(!StandAlone) != "" read-syms NoNetChangeDevVer shell "" MessageError goto setuptype else-ifstr(i) $(!IntegratedSecurity) != "" read-syms NoNetChangeIntSec shell "" MessageError goto setuptype endif endif else-ifstr(i) $(DLGEVENT) == "DLGBUTTON1" LibraryProcedure PrevInstallType, $(!DLLSQL), GetCheckedRadio $(SetupTypeDlg) read-syms RemoteCancel$(!STF_LANGUAGE) shell "" DoGetRemoteSetup ifstr(i) $($R0) == "STATUS_USERQUIT" set Status = $($R0) goto finish_options endif ifstr(i) $(!RemoteComputer) != $(!OldRemoteComputer) StartWait set !OldRemoteComputer = $(!RemoteComputer) ForListDo $(!CompleteInstSet) LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(SetupTypeDlg),"UNIBUTTON"$($),"TRUE" EndForListDo ifstr(i) $(!Owner) == "" ifcontains(i) $(PrevInstallType) in $(!InstallSet) set PrevInstallType = "1" endif else ifcontains(i) $(PrevInstallType) in $(!InstallSetInstld) set PrevInstallType = "2" endif endif goto start_setuptype else goto setuptype endif else-ifstr(i) $(DLGEVENT) == "CALLCOMBOKILLFOCUS1" goto setuptype else-ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT else goto setuptype endif endif finish_options = + LibraryProcedure Result, $(!DLLSQL), CloseDialog $(SetupTypeDlg) Return $(Status) [DoGetRemoteSetup] set Status = STATUS_FAILED set RemSQLLog = "C" set RemNTLog = "" set RemDBLog = "" set LocalRemoteSQLDrive = "" set LocalRemoteNTDrive = "" set LocalRemoteDBDrive = "" set RemMode = "DLGBUTTON2" read-syms RemoteDlg$(!STF_LANGUAGE) LibraryProcedure RemoteDlg, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" ForListDo $(!SupportedRemoteShares) LibraryProcedure Result, $(!DLLSQL), DlgAddCmbEntry $(RemoteDlg),"CALLCOMBO1",$($) EndForListDo ifstr(i) $(!RemoteComputer) == "" LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(RemoteDlg),"CALLCOMBO1","BYINDEX","0" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"DLGBUTTON2","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"DLGBUTTON3","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"DLGBUTTON4","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"EDIT1","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"CALLCOMBO1","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"TEXT1","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"TEXT2","FALSE" else LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(RemoteDlg),"DLGBUTTON1","TRUE" LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(RemoteDlg),"EDIT1",$(!RemoteComputer) LibraryProcedure RemSQLLog, $(!DLLSQL), StrBeforeAndAfter $(!LogicalSQLDrive),"BEFORE",":" LibraryProcedure RemNTLog, $(!DLLSQL), StrBeforeAndAfter $(!LogicalNTDrive),"BEFORE",":" LibraryProcedure RemDBLog, $(!DLLSQL), StrBeforeAndAfter $(!LogicalDBDrive),"BEFORE",":" LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(RemoteDlg),"CALLCOMBO1","BYENTRY",$(RemSQLLog) endif ifstr(i) $(!StandAlone) != "" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"DLGBUTTON1","FALSE" endif remoteset = + LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CONTINUE" LibraryProcedure LocalCB, $(!DLLSQL), IsDlgBtnChecked $(RemoteDlg),"DLGBUTTON1" ifstr(i) $(LocalCB) != "CHECKED" ifstr(i) $(!RemoteSQLDrive) != "" LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(!RemoteSQLDrive) set !RemoteSQLDrive = "" endif ifstr(i) $(!RemoteNTDrive) != "" LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(!RemoteNTDrive) set !RemoteNTDrive = "" endif ifstr(i) $(!RemoteDBDrive) != "" LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(!RemoteDBDrive) set !RemoteDBDrive = "" endif shell "" DoSetLocalSetup ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set Status = STATUS_USERQUIT else set Status = STATUS_SUCCESSFUL endif goto end_remoteset endif LibraryProcedure LocalRemoteComputer, $(!DLLSQL), DlgGetEditText $(RemoteDlg),"EDIT1" LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(LocalRemoteComputer),"LASTAFTER","\" ifstr(i) $(Temp) != "" set LocalRemoteComputer = $(Temp) endif ifstr(i) $(LocalRemoteComputer) == "" read-syms NoRemoteSpec$(!STF_LANGUAGE) shell "" MessageError goto remoteset endif ifstr(i) $(RemNTLog) == "" set RemNTLog = $(RemSQLLog) endif ifstr(i) $(RemDBLog) == "" set RemDBLog = $(RemSQLLog) endif detect ReadUnusedDrives shell "" AllocateUnusedDrive ifstr(i) $(R0) == "STATUS_FAILED" read-syms CannotAllocUnusedDrive$(!STF_LANGUAGE) shell "" MessageError goto remoteset else set LocalRemoteSQLDrive = $($R1) endif ifstr(i) $(RemNTLog) != $(RemSQLLog) shell "" AllocateUnusedDrive ifstr(i) $(R0) == "STATUS_FAILED" read-syms CannotAllocUnusedDrive$(!STF_LANGUAGE) shell "" MessageError goto remoteset else set LocalRemoteNTDrive = $($R1) endif else set LocalRemoteNTDrive = $(LocalRemoteSQLDrive) endif ifstr(i) $(RemDBLog) != $(RemSQLLog) ifstr(i) $(RemDBLog) != $(RemNTLog) shell "" AllocateUnusedDrive ifstr(i) $(R0) == "STATUS_FAILED" read-syms CannotAllocUnusedDrive$(!STF_LANGUAGE) shell "" MessageError goto remoteset else set LocalRemoteDBDrive = $($R1) endif else set LocalRemoteDBDrive = $(LocalRemoteNTDrive) endif else set LocalRemoteDBDrive = $(LocalRemoteSQLDrive) endif set ErrText = "" LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "CONNECT","\\"$(LocalRemoteComputer)"\"$(RemSQLLog)"$","",$(LocalRemoteSQLDrive) ifstr(i) $(Result) != "" read-syms NetworkDriveConnectError$(!STF_LANGUAGE) LibraryProcedure ErrText, $(!DLLSQL), AppendToString $(ErrText),$(!AddlText) read-syms NetworkDriveConnectSQLInst$(!STF_LANGUAGE) LibraryProcedure ErrText, $(!DLLSQL), AppendToString $(ErrText),$(!AddlText) LibraryProcedure !AddlText, $(!DLLSQL), AppendToString $(ErrText),$(Result) shell "" MessageError goto remoteset endif ifstr(i) $(RemNTLog) != $(RemSQLLog) LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "CONNECT","\\"$(LocalRemoteComputer)"\"$(RemNTLog)"$","",$(LocalRemoteNTDrive) ifstr(i) $(Result) != "" read-syms NetworkDriveConnectError$(!STF_LANGUAGE) LibraryProcedure ErrText, $(!DLLSQL), AppendToString $(ErrText),$(!AddlText) read-syms NetworkDriveConnectNTInst$(!STF_LANGUAGE) LibraryProcedure ErrText, $(!DLLSQL), AppendToString $(ErrText),$(!AddlText) LibraryProcedure !AddlText, $(!DLLSQL), AppendToString $(ErrText),$(Result) shell "" MessageError LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(LocalRemoteSQLDrive) goto remoteset endif endif ifstr(i) $(RemDBLog) != $(RemSQLLog) ifstr(i) $(RemDBLog) != $(RemNTLog) LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "CONNECT","\\"$(LocalRemoteComputer)"\"$(RemDBLog)"$","",$(LocalRemoteDBDrive) ifstr(i) $(Result) != "" read-syms NetworkDriveConnectError$(!STF_LANGUAGE) LibraryProcedure ErrText, $(!DLLSQL), AppendToString $(ErrText),$(!AddlText) read-syms NetworkDriveConnectDBInst$(!STF_LANGUAGE) LibraryProcedure ErrText, $(!DLLSQL), AppendToString $(ErrText),$(!AddlText) LibraryProcedure !AddlText, $(!DLLSQL), AppendToString $(ErrText),$(Result) shell "" MessageError LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(LocalRemoteSQLDrive) ifstr(i) $(RemNTLog) != $(RemSQLLog) LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(LocalRemoteNTDrive) endif goto remoteset endif endif endif ifstr(i) $(!RemoteSQLDrive) != "" LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(!RemoteSQLDrive) endif ifstr(i) $(!RemoteNTDrive) != "" LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(!RemoteNTDrive) endif ifstr(i) $(!RemoteDBDrive) != "" LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(!RemoteDBDrive) endif set !StandAlone = "" set !RemoteSQLDrive = $(LocalRemoteSQLDrive) set !RemoteNTDrive = $(LocalRemoteNTDrive) set !RemoteDBDrive = $(LocalRemoteDBDrive) set !LogicalSQLDrive = $(RemSQLLog)":" set !LogicalDBDrive = $(RemDBLog)":" set !LogicalNTDrive = $(RemNTLog)":" set !ComputerName = $(LocalRemoteComputer) set !ServerName = $(!ComputerName) set !RemoteComputer = $(!ComputerName) set !DefSQLPath = $(!RemoteSQLDrive)"\"$(!DefSQLStub) set !LogicalSystemMemory = $(!MinSystemMemory) LibraryProcedure Key, $(!DLLSQL), RegOpen "\\"$(!ComputerName),$(!RegSQLWinNT) ifstr(i) $(Key) != "KEY_ERROR" LibraryProcedure !SystemDirectory, $(!DLLSQL), RegRead $(Key),$(!RegValSystemRoot) LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!SystemDirectory),"AFTER",":" set !SystemDirectory = $(!RemoteNTDrive)$(Temp)"\"$(!SystemDir) LibraryProcedure Result, $(!DLLSQL), RegClose $(Key) endif shell "" GetPreviousInstallationInfo ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set Status = STATUS_USERQUIT goto end_remoteset endif set Status = STATUS_SUCCESSFUL else-ifstr(i) $(DLGEVENT) == "DLGBUTTON1" LibraryProcedure Result, $(!DLLSQL), IsDlgBtnChecked $(RemoteDlg),"DLGBUTTON1" ifstr(i) $(Result) == "CHECKED" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"EDIT1","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"CALLCOMBO1","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"TEXT1","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"TEXT2","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"DLGBUTTON2","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"DLGBUTTON3","TRUE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"DLGBUTTON4","TRUE" goto remoteset else LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"EDIT1","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"CALLCOMBO1","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"TEXT1","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"TEXT2","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"DLGBUTTON2","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"DLGBUTTON3","FALSE" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(RemoteDlg),"DLGBUTTON4","FALSE" goto remoteset endif else-ifstr(i) $(DLGEVENT) == "DLGBUTTON2" set RemMode = $(DLGEVENT) LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(RemoteDlg),"CALLCOMBO1","BYENTRY",$(RemSQLLog) goto remoteset else-ifstr(i) $(DLGEVENT) == "DLGBUTTON3" set RemMode = $(DLGEVENT) ifstr(i) $(RemNTLog) == "" set TheLog = $(RemSQLLog) else set TheLog = $(RemNTLog) endif LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(RemoteDlg),"CALLCOMBO1","BYENTRY",$(TheLog) goto remoteset else-ifstr(i) $(DLGEVENT) == "DLGBUTTON4" set RemMode = $(DLGEVENT) ifstr(i) $(RemDBLog) == "" set TheLog = $(RemSQLLog) else set TheLog = $(RemDBLog) endif LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(RemoteDlg),"CALLCOMBO1","BYENTRY",$(TheLog) goto remoteset else-ifstr(i) $(DLGEVENT) == "CALLCOMBOKILLFOCUS1" goto remoteset else-ifstr(i) $(DLGEVENT) == "CALLCOMBO1" LibraryProcedure Result, $(!DLLSQL), DlgGetCmbCurText $(RemoteDlg),"CALLCOMBO1","" ifstr(i) $(RemMode) == "DLGBUTTON2" set RemSQLLog = $(Result) else-ifstr(i) $(RemMode) == "DLGBUTTON3" set RemNTLog = $(Result) else-ifstr(i) $(RemMode) == "DLGBUTTON4" set RemDBLog = $(Result) endif goto remoteset else-ifstr(i) $(DLGEVENT) == "EXIT" set Status = STATUS_BACK else goto remoteset endif end_remoteset =+ ifstr(i) $(Status) != "STATUS_SUCCESSFUL" ifstr(i) $(LocalRemoteSQLDrive) != "" LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(LocalRemoteSQLDrive) endif ifstr(i) $(LocalRemoteNTDrive) != "" LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(LocalRemoteNTDrive) endif ifstr(i) $(LocalRemoteDBDrive) != "" LibraryProcedure Result, $(!DLLSQL), NETDriveOperation "DISCONNECT","","",$(LocalRemoteDBDrive) endif endif LibraryProcedure Result, $(!DLLSQL), CloseDialog $(RemoteDlg) Return $(Status) [DoSetLocalSetup] set Status = STATUS_SUCCESSFUL set !RemoteComputer = "" set !LogicalSQLDrive = $(!Primary) set !LogicalDBDrive = $(!Primary) set !LogicalNTDrive = $(!Primary) set !SystemDirectory = $(!STF_WINDOWSSYSPATH) set !LogicalSystemMemory = $(!SystemMemory) LibraryProcedure !ComputerName, $(!DLLSQL), GetMachineName ifstr(i) $(!SQLReleaseNumber) == $(!StandAloneRelease) set !StandAlone = "1" set !ServerName = "" else LibraryProcedure Result, $(!DLLSQL), GetServiceState "\\"$(!ComputerName),$(!LANManWksta) ifstr(i) $(Result) != "SERVICE_RUNNING" set !StandAlone = "1" set !ServerName = "" else set !StandAlone = "" set !ServerName = $(!ComputerName) endif endif set !DefSQLPath = $(!Primary)"\"$(!DefSQLStub) ifstr(i) $(!RegistryRebuild) == "" shell "" GetPreviousInstallationInfo ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set Status = STATUS_FAILED endif else LibraryProcedure !AdminACL, $(!DLLSQL), CreateSecurityAttribute "\\"$(!ComputerName),$(!AdministratorsGroup),"GENERIC_ALL","BUILTIN" ifstr(i) $(!AdminACL) == "CANNOT_CREATE_ACL" set !AdminACL = "" endif endif Return $(Status) [DoNewOptions] StartWait set Status = STATUS_FAILED read-syms NewInstallOptionsDlg$(!STF_LANGUAGE) LibraryProcedure DlgNewOptions, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" QueryListSize NumNets $(!NetLibList) ifstr(i) $(!StandAlone) == "" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgNewOptions),"DLGBUTTON4","TRUE" else LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgNewOptions),"DLGBUTTON4","FALSE" endif EndWait newoptions = + LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto finish_newoptions else goto newoptions endif else-ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK goto finish_newoptions else-ifstr(i) $(DLGEVENT) == "CONTINUE" LibraryProcedure !AutoServerService, $(!DLLSQL), IsDlgBtnChecked $(DlgNewOptions),"DLGBUTTON6" LibraryProcedure !AutoMonitorService, $(!DLLSQL), IsDlgBtnChecked $(DlgNewOptions),"DLGBUTTON7" set !TheCharSetPath = $(!SQLPath)"\"$(!CharSets)"\"$(!TheCharSet) set Status = STATUS_SUCCESSFUL goto finish_newoptions else-ifstr(i) $(DLGEVENT) == "DLGBUTTON1" shell "" DoCharSet goto newoptions else-ifstr(i) $(DLGEVENT) == "DLGBUTTON2" shell "" DoSortOrder goto newoptions else-ifstr(i) $(DLGEVENT) == "DLGBUTTON3" shell "" DoLanguage goto newoptions else-ifstr(i) $(DLGEVENT) == "DLGBUTTON4" set !AllowExit = "NO" shell "" DoNetwork set !AllowExit = "YES" goto newoptions else-ifstr(i) $(DLGEVENT) == "DLGBUTTON5" shell "" DoScripts goto newoptions else-ifstr(i) $(DLGEVENT) == "DLGBUTTON6" LibraryProcedure Result, $(!DLLSQL), IsDlgBtnChecked $(DlgNewOptions),"DLGBUTTON6" ifstr(i) $(Result) != "CHECKED" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgNewOptions),"DLGBUTTON7","FALSE" endif goto newoptions else-ifstr(i) $(DLGEVENT) == "DLGBUTTON7" LibraryProcedure Result, $(!DLLSQL), IsDlgBtnChecked $(DlgNewOptions),"DLGBUTTON7" ifstr(i) $(Result) == "CHECKED" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgNewOptions),"DLGBUTTON6","TRUE" endif goto newoptions endif finish_newoptions = + LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgNewOptions) Return $(Status) [DoSetFreeDiskSpace] LibraryProcedure FreeFormattedSpace, $(!DLLSQL), GetDriveFreeSpace $($1)"\" LibraryProcedure FreeSpace, $(!DLLSQL), GetDriveFreeSpace $($1)"\","UNFORMATTED" ifstr(i) $(FreeFormattedSpace) == "PLENTY" read-syms STR_Plenty LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $($0),$($2),$(!AddlText) else LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $($0),$($2),$(FreeFormattedSpace) endif set Status = STATUS_SUCCESSFUL Return $(Status),$(FreeSpace) [ExecNReturnSQLCmd] set Status = STATUS_FAILED set Data = "" LibraryProcedure Result, $(!DLLSQL), SQLAddtoCmdBuff $($0) LibraryProcedure Result, $(!DLLSQL), SQLExecuteCmdBuff ifstr(i) $(Result) == "BAD_SQL_EXEC" read-syms SQLExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)$(!LF) LibraryProcedure !AddlText, $(!DLLSQL), SQLGetErrorMsg LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)$(!LF) set Status = STATUS_FAILED goto finish_sqlexec endif LibraryProcedure Result, $(!DLLSQL), SQLGetNextResultSet ifstr(i) $(Result) != "BAD_RESULTS" LibraryProcedure Result, $(!DLLSQL), SQLBindColumn $($1), "1" LibraryProcedure Result, $(!DLLSQL), SQLNextRow $(!OneNextRow) LibraryProcedure Data, $(!DLLSQL), SQLGetBindingData "1" LibraryProcedure Result, $(!DLLSQL), SQLNextRow $(!PurgeRows) endif set Status = STATUS_SUCCESSFUL finish_sqlexec =+ Return $(Status) $(Data) [DoGetPath] set Status = STATUS_FAILED start_getpath = + ifstr(i) $(!DlgEdit) == "" read-syms GetPathDlg$(!STF_LANGUAGE) LibraryProcedure !DlgEdit, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"","" endif getpath = + LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "EXIT" ifstr(i) $(!AllowExit) == "YES" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT else goto getpath endif else set Status = STATUS_CANCEL endif else-ifstr(i) $(DLGEVENT) == "BACK" set Status = "STATUS_BACK" else-ifstr(i) $(DLGEVENT) == "CONTINUE" LibraryProcedure EditTextOut, $(!DLLSQL), DlgGetEditText $(!DlgEdit),"EDIT1" ifstr(i) $(EditTextOut) == "" ifstr(i) $(!PermitNullName) == "NO" read-syms $(!NoNameText) shell "" MessageError goto getpath endif endif set Status = STATUS_SUCCESSFUL set !PathOut = $(EditTextOut) ifstr(i) $(!CreatePathPrompt) == "YES" set DEST = $(!PathOut) detect DetectDirectory ifstr $(DirectoryThere) == "NO" shell "" DoCreateDirectory ifstr(i) $($R0) == "STATUS_YES" set !CreatePath = "YES" else goto getpath endif endif endif endif ifstr(i) $(!AutoPopoff) == "YES" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(!DlgEdit) set !DlgEdit = "" endif Return $(Status) [DoGetSpaceSQLPath] StartWait read-syms $($0) LibraryProcedure DlgSpaceSQLPath, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" ifstr(i) $(!RemoteComputer) == "" LibraryProcedure HardDrives, $(!DLLSQL), ListDriveTypes $($3) ForListDo $(HardDrives) LibraryProcedure Result, $(!DLLSQL), DlgAddCmbEntry $(DlgSpaceSQLPath),"CALLCOMBO1",$($) EndForListDo ifstr(i) $($6) != "" LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(DlgSpaceSQLPath),"CALLCOMBO1","BYENTRY",$($6) else LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(DlgSpaceSQLPath),"CALLCOMBO1","BYINDEX","0" endif else LibraryProcedure Result, $(!DLLSQL), DlgAddCmbEntry $(DlgSpaceSQLPath),"CALLCOMBO1",$(!RemoteSQLDrive) LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(DlgSpaceSQLPath),"CALLCOMBO1","BYINDEX","0" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSpaceSQLPath),"CALLCOMBO1","FALSE" endif LibraryProcedure CurDrv, $(!DLLSQL), DlgGetCmbCurText $(DlgSpaceSQLPath),"CALLCOMBO1","" ifstr(i) $($4) != "" shell "" DoSetFreeDiskSpace $(DlgSpaceSQLPath),$(CurDrv),"TEXT2" set UnformattedSpace = $($R1) LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgSpaceSQLPath),"TEXT1",$($1) endif LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!DefInPath),"AFTER",":" ifstr(i) $(Temp) == "" set Temp = $(!DefInPath) endif LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgSpaceSQLPath),"EDIT1",$(Temp) spacesqlpath =+ EndWait LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CALLCOMBO1" LibraryProcedure CurDrv, $(!DLLSQL), DlgGetCmbCurText $(DlgSpaceSQLPath),"CALLCOMBO1","" ifstr(i) $($4) != "" shell "" DoSetFreeDiskSpace $(DlgSpaceSQLPath),$(CurDrv),"TEXT2" set UnformattedSpace = $($R1) endif goto spacesqlpath else-ifstr(i) $(DLGEVENT) == "CONTINUE" ifstr(i) $($4) != "" ifstr(i) $(!RegistryRebuild) == "" ifstr(i) $(!SpaceChecking) != "OFF" ifstr(i) $(UnformattedSpace) != "PLENTY" LibraryProcedure MegSize, $(!DLLSQL), IntMultiply $($2),"1024","DIVIDE" ifint $(UnformattedSpace) < $(MegSize) read-syms STR_InsufficientDiskSpace shell "" MessageError goto spacesqlpath endif endif endif endif endif LibraryProcedure PathOut, $(!DLLSQL), DlgGetEditText $(DlgSpaceSQLPath),"EDIT1" LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(PathOut),"AFTER",":" ifstr(i) $(Temp) == "" set Temp = $(PathOut) endif ifstr(i) $($5) == "MASTERFORMAT_MUSTEXIST" LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $(PathOut),"LASTAFTER","\" ifstr(i) $(Before) == "" read-syms DBNoPath$(!STF_LANGUAGE) shell "" MessageError goto spacesqlpath endif LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $(PathOut),"LASTBEFORE","\" LibraryProcedure After, $(!DLLSQL), StrBeforeAndAfter $(PathOut),"LASTAFTER","\" LibraryProcedure PathAfter, $(!DLLSQL), StrBeforeAndAfter $(After),"LASTAFTER","." ifstr(i) $(PathAfter) == "" read-syms DBNoDat$(!STF_LANGUAGE) shell "" MessageError goto spacesqlpath endif LibraryProcedure Result, $(!DLLSQL), DoesFileExist $(CurDrv)$(PathOut) ifstr(i) $(Result) != "" read-syms MasterMustExist$(!STF_LANGUAGE) shell "" MessageError goto spacesqlpath endif set Temp = $(Before) set File = $(After) endif set Status = STATUS_SUCCESSFUL else-ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK goto end_spacesqlpath else-ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto end_spacesqlpath else goto spacesqlpath endif else goto spacesqlpath endif end_spacesqlpath =+ LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgSpaceSQLPath) Return $(Status),$(CurDrv),$(Temp),$(File) [DoGetSpaceMasterPath] StartWait read-syms $($0) LibraryProcedure DlgSpaceMasterSQLPath, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" ifstr(i) $(!RemoteComputer) == "" LibraryProcedure HardDrives, $(!DLLSQL), ListDriveTypes $($3) ForListDo $(HardDrives) LibraryProcedure Result, $(!DLLSQL), DlgAddCmbEntry $(DlgSpaceMasterSQLPath),"CALLCOMBO1",$($) EndForListDo ifstr(i) $($6) != "" LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(DlgSpaceMasterSQLPath),"CALLCOMBO1","BYENTRY",$($6) else LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(DlgSpaceMasterSQLPath),"CALLCOMBO1","BYINDEX","0" endif else LibraryProcedure Result, $(!DLLSQL), DlgAddCmbEntry $(DlgSpaceMasterSQLPath),"CALLCOMBO1",$(!RemoteDBDrive) LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(DlgSpaceMasterSQLPath),"CALLCOMBO1","BYINDEX","0" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgSpaceMasterSQLPath),"CALLCOMBO1","FALSE" endif LibraryProcedure CurDrv, $(!DLLSQL), DlgGetCmbCurText $(DlgSpaceMasterSQLPath),"CALLCOMBO1","" ifstr(i) $($4) != "" shell "" DoSetFreeDiskSpace $(DlgSpaceMasterSQLPath),$(CurDrv),"TEXT2" set UnformattedSpace = $($R1) LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgSpaceMasterSQLPath),"TEXT1",$($1)" "$(!MasterDBSize) endif LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!DefMasterPath),"AFTER",":" ifstr(i) $(Temp) == "" set Temp = $(!DefMasterPath) endif LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgSpaceMasterSQLPath),"EDIT1",$(Temp) spacesqlpath =+ EndWait LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CALLCOMBO1" LibraryProcedure CurDrv, $(!DLLSQL), DlgGetCmbCurText $(DlgSpaceMasterSQLPath),"CALLCOMBO1","" ifstr(i) $($4) != "" shell "" DoSetFreeDiskSpace $(DlgSpaceMasterSQLPath),$(CurDrv),"TEXT2" set UnformattedSpace = $($R1) endif goto spacesqlpath else-ifstr(i) $(DLGEVENT) == "CONTINUE" LibraryProcedure PathOut, $(!DLLSQL), DlgGetEditText $(DlgSpaceMasterSQLPath),"EDIT1" LibraryProcedure MstrSize, $(!DLLSQL), DlgGetEditText $(DlgSpaceMasterSQLPath),"EDIT2" LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(PathOut),"AFTER",":" ifstr(i) $(Temp) == "" set Temp = $(PathOut) endif LibraryProcedure After, $(!DLLSQL), StrBeforeAndAfter $(PathOut),"LASTAFTER","\" LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $(PathOut),"LASTBEFORE","\" LibraryProcedure PathAfter, $(!DLLSQL), StrBeforeAndAfter $(After),"LASTAFTER","." ifstr(i) $(PathAfter) == "" read-syms DBNoDat$(!STF_LANGUAGE) shell "" MessageError goto spacesqlpath endif ifstr(i) $(!RegistryRebuild) == "" LibraryProcedure Result, $(!DLLSQL), DoesFileExist $(CurDrv)$(PathOut) ifstr(i) $(Result) == "" ifstr(i) $($5) != "MASTER_DONT_CARE_EXIST" read-syms MasterExists$(!STF_LANGUAGE) read-syms YesNoDlg$(!STF_LANGUAGE) ui start $(DlgTemplate) ifstr(i) $(DLGEVENT) == "NO" goto spacesqlpath endif endif endif LibraryProcedure Result, $(!DLLSQL), CheckStringFormat "FMT_DATABASE_SIZE",$(!MinMasterSize),$(MstrSize) ifstr(i) $(Result) == "BAD_FORMAT" read-syms DBSizeInvalid$(!STF_LANGUAGE) shell "" MessageError goto spacesqlpath else ifstr(i) $(Result) == "TOO_SMALL" read-syms DBSizeInvalid$(!STF_LANGUAGE) shell "" MessageError goto spacesqlpath else ifstr(i) $($4) != "" ifstr(i) $(!SpaceChecking) != "OFF" ifstr(i) $(UnformattedSpace) != "PLENTY" LibraryProcedure MasterK, $(!DLLSQL), IntMultiply $(MstrSize),"1024" LibraryProcedure FilesK, $(!DLLSQL), IntMultiply $($2),"1024","DIVIDE" LibraryProcedure TotalK, $(!DLLSQL), IntMultiply $(MasterK),$(FilesK),"ADD" ifint $(UnformattedSpace) < $(TotalK) read-syms STR_InsufficientDiskSpace shell "" MessageError goto spacesqlpath endif endif endif endif set !SQLMasterSize = $(Result) endif endif endif set Status = STATUS_SUCCESSFUL set !MasterDBFileName = $(After) ifstr(i) $(!RemoteComputer) == "" set !LogicalDBDrive = $(CurDrv) set !MasterDBPath = $(!LogicalDBDrive)$(Before) else set !MasterDBPath = $(!RemoteDBDrive)$(Before) endif set !DefMasterPath = $(!MasterDBPath)"\"$(!MasterDBFileName) set Status = STATUS_SUCCESSFUL else-ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK goto end_spacesqlpath else-ifstr(i) $(DLGEVENT) == "EXIT" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto end_spacesqlpath else goto spacesqlpath endif else goto spacesqlpath endif end_spacesqlpath =+ LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgSpaceMasterSQLPath) Return $(Status) [DoGetUtilsAndPath] StartWait read-syms GetSpaceUtilOptsDlg LibraryProcedure DlgUtilPath, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"MODAL","" ifstr(i) $(!RemoteComputer) == "" LibraryProcedure HardDrives, $(!DLLSQL), ListDriveTypes "1" ForListDo $(HardDrives) LibraryProcedure Result, $(!DLLSQL), DlgAddCmbEntry $(DlgUtilPath),"CALLCOMBO1",$($) EndForListDo LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(DlgUtilPath),"CALLCOMBO1","BYINDEX","0" else LibraryProcedure Result, $(!DLLSQL), DlgAddCmbEntry $(DlgUtilPath),"CALLCOMBO1",$(!RemoteSQLDrive) LibraryProcedure Result, $(!DLLSQL), DlgSetCmbCurSel $(DlgUtilPath),"CALLCOMBO1","BYINDEX","0" LibraryProcedure Result, $(!DLLSQL), EnableDlgBtn $(DlgUtilPath),"CALLCOMBO1","FALSE" endif LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgUtilPath),"DLGBUTTON1","TRUE" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgUtilPath),"DLGBUTTON2","TRUE" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgUtilPath),"DLGBUTTON3","TRUE" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgUtilPath),"DLGBUTTON4","TRUE" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgUtilPath),"DLGBUTTON5","TRUE" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgUtilPath),"DLGBUTTON6","TRUE" LibraryProcedure CurDrv, $(!DLLSQL), DlgGetCmbCurText $(DlgUtilPath),"CALLCOMBO1","" shell "" DoSetFreeDiskSpace $(DlgUtilPath),$(CurDrv),"TEXT2" set UnformattedSpace = $($R1) shell "" DoGetUtilSelectionList $(DlgUtilPath) set GetCost = "TRUE" install InstallUtilFiles set GetCost = "" LibraryProcedure Result, $(!DLLSQL), CheckStringFormat "FMT_SPACE","KILO",$(SpaceCost) LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgUtilPath),"TEXT1",$(Result) LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!DefInPath),"AFTER",":" ifstr(i) $(Temp) == "" set Temp = $(!DefInPath) endif LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgUtilPath),"EDIT1",$(Temp) spacesqlpath =+ EndWait LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CALLCOMBO1" LibraryProcedure CurDrv, $(!DLLSQL), DlgGetCmbCurText $(DlgUtilPath),"CALLCOMBO1","" shell "" DoSetFreeDiskSpace $(DlgUtilPath),$(CurDrv),"TEXT2" set UnformattedSpace = $($R1) goto spacesqlpath else-ifstr(i) $(DLGEVENT) == "CALLCOMBOKILLFOCUS1" goto spacesqlpath else-ifstr(i) $(DLGEVENT) == "CONTINUE" shell "" DoGetUtilSelectionList $(DlgUtilPath) QueryListSize NumNets $(!UtilFiles) ifint $(NumNets) == "0" read-syms NoUtils$(!STF_LANGUAGE) shell "" MessageError goto spacesqlpath endif ifstr(i) $(!SpaceChecking) != "OFF" ifstr(i) $(UnformattedSpace) != "PLENTY" LibraryProcedure MegSize, $(!DLLSQL), IntMultiply $(SpaceCost),"1024","DIVIDE" ifint $(UnformattedSpace) < $(MegSize) read-syms STR_InsufficientDiskSpace shell "" MessageError goto spacesqlpath endif endif endif LibraryProcedure PathOut, $(!DLLSQL), DlgGetEditText $(DlgUtilPath),"EDIT1" LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(PathOut),"AFTER",":" ifstr(i) $(Temp) == "" set Temp = $(PathOut) endif set Status = STATUS_SUCCESSFUL else-ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK goto end_spacesqlpath else-ifstr(i) $(DLGEVENT) == "EXIT" ifstr(i) $(!AllowExit) == "YES" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto end_spacesqlpath else goto spacesqlpath endif endif else StartWait shell "" DoGetUtilSelectionList $(DlgUtilPath) set GetCost = "TRUE" install InstallUtilFiles set GetCost = "" LibraryProcedure Result, $(!DLLSQL), CheckStringFormat "FMT_SPACE","KILO",$(SpaceCost) LibraryProcedure Result, $(!DLLSQL), DlgSetEditText $(DlgUtilPath),"TEXT1",$(Result) EndWait goto spacesqlpath endif end_spacesqlpath =+ LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgUtilPath) Return $(Status),$(CurDrv),$(Temp) [DoGetUtilSelectionList] set !UtilFiles = {} LibraryProcedure BtnState, $(!DLLSQL), IsDlgBtnChecked $($0),"DLGBUTTON1" ifstr(i) $(BtnState) == "CHECKED" set !UtilFiles = >( $(!UtilFiles), $(!BCP)) endif LibraryProcedure BtnState, $(!DLLSQL), IsDlgBtnChecked $($0),"DLGBUTTON2" ifstr(i) $(BtnState) == "CHECKED" set !UtilFiles = >( $(!UtilFiles), $(!ISQL)) endif LibraryProcedure BtnState, $(!DLLSQL), IsDlgBtnChecked $($0),"DLGBUTTON3" ifstr(i) $(BtnState) == "CHECKED" set !UtilFiles = >( $(!UtilFiles), $(!SQLAdminEXE)) endif LibraryProcedure BtnState, $(!DLLSQL), IsDlgBtnChecked $($0),"DLGBUTTON4" ifstr(i) $(BtnState) == "CHECKED" set !UtilFiles = >( $(!UtilFiles), $(!SQLObjectEXE)) endif LibraryProcedure BtnState, $(!DLLSQL), IsDlgBtnChecked $($0),"DLGBUTTON5" ifstr(i) $(BtnState) == "CHECKED" set !UtilFiles = >( $(!UtilFiles), $(!SQLSecManEXE)) endif LibraryProcedure BtnState, $(!DLLSQL), IsDlgBtnChecked $($0),"DLGBUTTON6" ifstr(i) $(BtnState) == "CHECKED" set !UtilFiles = >( $(!UtilFiles), $(!ReadPipe)) endif Return [DoGetPathNCopy] set Status = STATUS_FAILED getnetpath =+ read-syms $(!CopyPathTemplate) shell "" DoGetPath ifstr(i) $($R0) == "STATUS_SUCCESSFUL" ifstr(i) $(!ExtraEdit) != "" LibraryProcedure !ExtraEditText, $(!DLLSQL), DlgGetEditText $(!DlgEdit),$(!ExtraEdit) ifstr(i) $(!ExtraEditText) == "" set !AddlText = $(!ExtraEditFail) shell "" MessageError goto getnetpath endif endif LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $(!PathOut),"BEFORE","\" LibraryProcedure Type, $(!DLLSQL), GetDrvType $(Before)"\" ifstr(i) $(Type) == "DRIVE_REMOVEABLE" set !TmpDrive = $(Before) read-syms InsertDisk$(!STF_LANGUAGE) shell "" MessageError endif LibraryProcedure Result, $(!DLLSQL), DoesFileExist $(!PathOut) ifstr(i) $(Result) != "" read-syms FileDoesntExist$(!STF_LANGUAGE) shell "" MessageError goto getnetpath endif LibraryProcedure After, $(!DLLSQL), StrBeforeAndAfter $(!PathOut),"AFTER","\" ifstr(i) $(After) == "" read-syms FileDoesntExist$(!STF_LANGUAGE) shell "" MessageError goto getnetpath endif LibraryProcedure !TheStripped, $(!DLLSQL), GetStrippedFilename $(!PathOut) LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $(!PathOut),"LASTBEFORE","\" set !SrcCopyPath = $(Before)"\" set !DestCopyPath = $(!DestPath) set !OneOffFile = $(!TheStripped) read-syms ProgressCopyVars install InstallOneOffFileCopy ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS" read-syms FileCouldNotBeCopied$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_getpathncopy endif set Status = STATUS_SUCCESSFUL else-ifstr(i) $($R0) == "STATUS_BACK" set Status = STATUS_BACK endif end_getpathncopy =+ LibraryProcedure Result, $(!DLLSQL), CloseDialog $(!DlgEdit) set !DlgEdit = "" Return $(Status) [DoReBuild] set Status = STATUS_FAILED set !DlgHandle = "" ifstr(i) $(!TheSortFile) == $(!UserDefined) shell "" DoGetSortFileName ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_rebuild endif endif read-syms InstallingDlg$(!STF_LANGUAGE) LibraryProcedure !DlgHandle, $(!DLLSQL), BillBoard $(STF_HWND),"",$(!SQLDlgNames) StartWait ProcessExecute Result,"WAIT",$(!SQLPath)"\"$(!Binaries)"\"$(!BuildMaster)" /d"$(!MasterDBPath)"\"$(!MasterDBFileName)" /s"$(!SQLMasterSize)" /o"$(!SQLPath)"\"$(!InstallDir)"\"$(!BuildMasterOut) EndWait ifstr(i) $(Result) == "PROCESS_ERROR" read-syms ProcessExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!BuildMaster)" "$(!AddlText) goto end_rebuild else-ifstr(i) $(Result) != "0" read-syms ProcessRetError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!BuildMaster)" "$(!AddlText)" "$(Result) goto end_rebuild endif shell "" UpdateSCM $($0) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" read-syms SCMError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$($R1) goto end_rebuild endif shell "" RegWriteSerialNumberInfo ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_rebuild endif shell "" RegWriteANSIOEM ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_rebuild endif read-syms BillboardRunningNConnSQL$(!STF_LANGUAGE) LibraryProcedure Result, $(!DLLSQL), UpdateBillboard $(!DlgHandle),$(!BillName) shell "" StartService $(!SQLServerService) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_rebuild endif LibraryProcedure Result, $(!DLLSQL), SQLLogin $(!LoginSleepPeriod),$(!LoginSleepRetrys),$(!ServerName),$(!SALogin),$(!SAPassword) ifstr(i) $(Result) == "NO_SERVER" read-syms NoLoginToSQLServer$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto end_rebuild endif LibraryProcedure Result, $(!DLLSQL), SQLLogout read-syms BillboardCharset$(!STF_LANGUAGE) LibraryProcedure Result, $(!DLLSQL), UpdateBillboard $(!DlgHandle),$(!BillName) StartWait ProcessExecute Result,"WAIT",$(!SQLPath)"\"$(!Binaries)"\"$(!CharSet)" /S"$(!ServerName)" /P /o"$(!SQLPath)"\"$(!InstallDir)"\"$(!CharSetOut)" /L"$(!TheCharSetPath)" "$(!TheSortFile) EndWait ifstr(i) $(Result) == "PROCESS_ERROR" read-syms ProcessExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!CharSet)" "$(!AddlText) goto end_rebuild else-ifstr(i) $(Result) != "0" read-syms ProcessRetError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!CharSet)" "$(!AddlText)" "$(Result) goto end_rebuild endif shell "" UpdateSystemTables ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_rebuild endif shell "" StopService $(!SQLServerService) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_rebuild endif read-syms BillboardIndexing$(!STF_LANGUAGE) LibraryProcedure Result, $(!DLLSQL), UpdateBillboard $(!DlgHandle),$(!BillName) shell "" ReIndexServer ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_rebuild endif read-syms BillboardInstScripts$(!STF_LANGUAGE) LibraryProcedure Result, $(!DLLSQL), UpdateBillboard $(!DlgHandle),$(!BillName) shell "" CreateConfig ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_rebuild endif shell "" InstallScripts ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_rebuild endif ifstr(i) $(!Locale) != "" shell "" DoLangInst $(!Locale),"","CHECKED" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_rebuild endif endif shell "" CheckInstallSuccess "FALSE" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto end_rebuild endif set Status = STATUS_SUCCESSFUL end_rebuild =+ shell "" StopService $(!SQLServerService) ifstr(i) $(!DlgHandle) != "" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(!DlgHandle) endif Return $(Status) [DoGetNetLibPath] set Status = STATUS_FAILED set !CopyPathTemplate = GetNetLibPathDlg$(!STF_LANGUAGE) set !DestPath = $(!SQLPath)"\"$(!DLLs) shell "" DoGetPathNCopy set Status = $($R0) ifstr(i) $(Status) == "STATUS_SUCCESSFUL" LibraryProcedure !UserNetLib, $(!DLLSQL), StrBeforeAndAfter $(!TheStripped),"BEFORE","." endif Return $(Status) [DoGetSortFileName] set Status = STATUS_FAILED set !CopyPathTemplate = GetSortFileDlg$(!STF_LANGUAGE) set !DestPath = $(!SQLPath)"\"$(!CharSets) shell "" DoGetPathNCopy ifstr(i) $($R0) == "STATUS_SUCCESSFUL" set Status = STATUS_SUCCESSFUL set !TheCharSetPath = $(!SQLPath)"\"$(!CharSets) set !TheSortFile = $(!TheStripped) set !TheSortConfigValue = $(!ExtraEditText) endif Return $(Status) [DoGetSAPassword] set !AllowExit = "YES" set Status = STATUS_FAILED ifstr(i) $(!DlgEdit) == "" read-syms GetSAPasswordDlg$(!STF_LANGUAGE) set !SAPassword = "" LibraryProcedure !DlgEdit, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"","" endif getsapass = + LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "EXIT" ifstr(i) $(!AllowExit) == "YES" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT else goto getsapass endif else set Status = STATUS_CANCEL endif else-ifstr(i) $(DLGEVENT) == "BACK" set Status = "STATUS_BACK" else-ifstr(i) $(DLGEVENT) == "CONTINUE" LibraryProcedure EditTextOut1, $(!DLLSQL), DlgGetEditText $(!DlgEdit),"EDIT1" LibraryProcedure EditTextOut2, $(!DLLSQL), DlgGetEditText $(!DlgEdit),"EDIT2" ifstr(i) $(EditTextOut1) != $(EditTextOut2) read-syms PasswordsDontMatch$(!STF_LANGUAGE) shell "" MessageError goto getsapass endif set Status = STATUS_SUCCESSFUL set !SAPassword = $(EditTextOut1) endif ifstr(i) $(!AutoPopoff) == "YES" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(!DlgEdit) set !DlgEdit = "" endif Return $(Status) [DoGetMailInfo] set Status = STATUS_FAILED ifstr(i) $(!DlgEdit) == "" read-syms GetMailInfoDlg$(!STF_LANGUAGE) set !MSMailUser = "" set !MSMailPwd = "" set !CopyMailInfo = "" LibraryProcedure !DlgEdit, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"","" LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(!DlgEdit),"UNIBUTTON1","TRUE" endif getmailinfo = + LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "EXIT" ifstr(i) $(!AllowExit) == "YES" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT else goto getmailinfo endif else set Status = STATUS_CANCEL endif else-ifstr(i) $(DLGEVENT) == "BACK" set Status = "STATUS_BACK" else-ifstr(i) $(DLGEVENT) == "CONTINUE" LibraryProcedure EditTextOut1, $(!DLLSQL), DlgGetEditText $(!DlgEdit),"EDIT1" LibraryProcedure EditTextOut2, $(!DLLSQL), DlgGetEditText $(!DlgEdit),"EDIT2" LibraryProcedure EditTextOut3, $(!DLLSQL), DlgGetEditText $(!DlgEdit),"EDIT3" ifstr(i) $(EditTextOut2) != $(EditTextOut3) read-syms PasswordsDontMatch$(!STF_LANGUAGE) shell "" MessageError goto getmailinfo endif LibraryProcedure !CopyMailInfo, $(!DLLSQL), IsDlgBtnChecked $(!DlgEdit),"UNIBUTTON1" set Status = STATUS_SUCCESSFUL set !MSMailUser = $(EditTextOut1) set !MSMailPwd = $(EditTextOut2) else goto getmailinfo endif ifstr(i) $(!AutoPopoff) == "YES" LibraryProcedure Result, $(!DLLSQL), CloseDialog $(!DlgEdit) set !DlgEdit = "" endif Return $(Status) [DoGetStreetName] set Status = STATUS_FAILED read-syms GetStreetNameDlg$(!STF_LANGUAGE) shell "" DoGetPath set Status = $($R0) ifstr(i) $(Status) == "STATUS_SUCCESSFUL" set !StreetName = $(!PathOut) endif Return $(Status) [DoGetTCPIPSocket] set Status = STATUS_FAILED read-syms GetTCPIPSocketDlg$(!STF_LANGUAGE) shell "" DoGetPath set Status = $($R0) ifstr(i) $(Status) == "STATUS_SUCCESSFUL" set !TCPIPSocketNumber = $(!PathOut) endif Return $(Status) [DoGetServiceName] set Status = STATUS_FAILED read-syms GetServiceNameDlg$(!STF_LANGUAGE) shell "" DoGetPath set Status = $($R0) ifstr(i) $(Status) == "STATUS_SUCCESSFUL" set !ServiceName = $(!PathOut) endif Return $(Status) [DoGetGenericNetAddress] set Status = STATUS_FAILED read-syms GetNetAddressDlg$(!STF_LANGUAGE) shell "" DoGetPath set Status = $($R0) ifstr(i) $(Status) == "STATUS_SUCCESSFUL" set !NetAddress = $(!PathOut) endif Return $(Status) [DoCreateDirectory] read-syms YesNoDlg$(!STF_LANGUAGE) ui start $(DlgTemplate) ifstr(i) $(DLGEVENT) == "YES" set Status = STATUS_YES else set Status = STATUS_NO endif Return $(Status) [MessageError] set Status = STATUS_FAILED read-syms InfoMessage$(!STF_LANGUAGE) ui start $(DlgTemplate) Return $(Status) [DoCharSet] StartWait set Status = STATUS_CANCEL ifstr(i) $(!AllowExit) == "YES" set TheCharList = $(!CharSetUserSelList) else set TheCharList = $(!CharSetSelList) endif set ListIdx = 0 ForListDo $(TheCharList) set-sub LoopIdx = $(#),1 LibraryProcedure Idx, $(!DLLSQL), IntMultiply $(LoopIdx),2 set-add Idx = $(Idx),2 set TheCharIdx = *( $(TheCharList), $(Idx) ) ifstr(i) $(TheCharIdx) == $(!TheCharSet) goto doneLoop else set-add ListIdx = $(ListIdx),1 endif EndForListDo doneLoop =+ set DefListItem = $(ListIdx) read-syms CharSetsDlg$(!STF_LANGUAGE) LibraryProcedure DlgCharSets, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"2",$(TheCharList) dosetsel =+ EndWait LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CONTINUE" set Status = STATUS_OK set SortType = "Normal" LibraryProcedure CharRetList, $(!DLLSQL), ExtractListSet $(DlgCharSets),"1" set !TheCharSet = *( $(CharRetList),2 ) ifstr(i) $(!TheCharSet) == "cpISO" set !SortOrderSelList = $(!SortISOSelList) else-ifstr(i) $(!TheCharSet) == "cp850" set !SortOrderSelList = $(!Sort850SelList) else-ifstr(i) $(!TheCharSet) == "cp437" set !SortOrderSelList = $(!Sort437SelList) else set SortType = "Defined" endif ifstr(i) $(SortType) != "Normal" set !TheSortFile = $(!TheCharSet) set !TheSortConfigValue = "0" else set !TheSortFile = *( $(!SortOrderSelList), 2 ) set !TheSortConfigValue = *( $(!SortOrderSelList), 3 ) endif else-ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK goto end_docharset else-ifstr(i) $(DLGEVENT) == "EXIT" endif end_docharset =+ LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgCharSets) Return $(Status) [DoSortOrder] StartWait set Status = STATUS_CANCEL set ListIdx = 0 ForListDo $(!SortOrderSelList) set-sub LoopIdx = $(#),1 LibraryProcedure Idx, $(!DLLSQL), IntMultiply $(LoopIdx),3 set-add Idx = $(Idx),2 set TheSortIdx = *( $(!SortOrderSelList), $(Idx) ) ifstr(i) $(TheSortIdx) == $(!TheSortFile) goto doneLoop else set-add ListIdx = $(ListIdx),1 endif EndForListDo doneLoop =+ set DefListItem = $(ListIdx) read-syms SortOrderDlg$(!STF_LANGUAGE) LibraryProcedure DlgSortOrder, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"3",$(!SortOrderSelList) dosortsel =+ EndWait LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CONTINUE" set Status = STATUS_OK LibraryProcedure SortRetList, $(!DLLSQL), ExtractListSet $(DlgSortOrder),"1" set !TheSortFile = *( $(SortRetList),2 ) set !TheSortConfigValue = *( $(SortRetList), 3 ) else-ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK goto end_dosortorder else-ifstr(i) $(DLGEVENT) == "EXIT" endif end_dosortorder =+ LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgSortOrder) Return $(Status) [DoLanguage] set Status = STATUS_CANCEL read-syms LanguageDlg$(!STF_LANGUAGE) LibraryProcedure DlgLanguage, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"2",$(!LangSelList) LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CONTINUE" set Status = STATUS_OK endif LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgLanguage) Return $(Status) [DoNetwork] StartWait set Status = STATUS_CANCEL set DefListItems = {} set TheCheckIdx = 0 ForListDo $(!NetworkSelList) set-sub LoopIdx = $(#),1 LibraryProcedure NetIdx, $(!DLLSQL), IntMultiply $(LoopIdx),3 set-add NetIdx = $(NetIdx),2 set NetTmpList = *( $(!NetworkSelList), $(NetIdx) ) ifcontains(i) $(NetTmpList) in $(!ValidNetLibs) ifstr(i) $(NetTmpList) == $(!UserProvided) set DefListItems = >( $(DefListItems), $(TheCheckIdx)) else ForListDo $(!NetLibList) ifstr(i) $(NetTmpList) == $($) set DefListItems = >( $(DefListItems), $(TheCheckIdx)) EndForListDo goto endLoop endif EndForListDo endif endLoop =+ set-add TheCheckIdx = $(TheCheckIdx),1 endif EndForListDo ifstr(i) $(!AllowExit) == "YES" read-syms NetworkDlgEx$(!STF_LANGUAGE) else read-syms NetworkDlg$(!STF_LANGUAGE) endif LibraryProcedure DlgNetwork, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"3",$(!NetworkSelList),$(DefListItems) donet =+ EndWait LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CONTINUE" set Status = STATUS_OK LibraryProcedure !NetSelList, $(!DLLSQL), ExtractListSet $(DlgNetwork),"1" set !NetLibList = $(!NetLibDefList) set !NetAddresses = {} ForListDo $(!NetSelList) set-sub LoopIdx = $(#),1 LibraryProcedure NetIdx, $(!DLLSQL), IntMultiply $(LoopIdx),3 set-add NetIdx = $(NetIdx),2 set NetTmpList = *( $(!NetSelList), $(NetIdx) ) ifcontains(i) $(NetTmpList) in $(!ValidNetLibs) ifstr(i) $(NetTmpList) == $(!UserProvided) set-add NetIdx = $(NetIdx),1 set NetAddress = *( $(!NetSelList), $(NetIdx) ) set !NetAddresses = >( $(!NetAddresses), $(NetAddress)) set-sub NetIdx = $(NetIdx),2 set NetTmpList = *( $(!NetSelList), $(NetIdx) ) set !NetLibList = >( $(!NetLibList), $(NetTmpList)) else ifstr(i) $(NetTmpList) == $(!NetLibTCPIP) LibraryProcedure Result, $(!DLLSQL), GetServiceState "\\"$(!ComputerName),$(!TCPIPService) ifstr(i) $(Result) != "SERVICE_RUNNING" read-syms TCPIPNotRunning$(!STF_LANGUAGE) read-syms YesNoDlg$(!STF_LANGUAGE) ui start $(DlgTemplate) ifstr(i) $(DLGEVENT) == "NO" goto donet endif endif endif set !NetLibList = >( $(!NetLibList), $(NetTmpList)) endif endif EndForListDo else-ifstr(i) $(DLGEVENT) == "EXIT" ifstr(i) $(!AllowExit) == "YES" shell "" QueryUserQuit $(!STF_LANGUAGE) ifstr(i) $($R1) == "OK" set Status = STATUS_USERQUIT goto end_donet else goto donet endif endif else-ifstr(i) $(DLGEVENT) == "BACK" set Status = STATUS_BACK endif end_donet =+ LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgNetwork) Return $(Status) [DoScripts] set Status = STATUS_CANCEL read-syms ScriptsDlg$(!STF_LANGUAGE) LibraryProcedure DlgScripts, $(!DLLSQL), SQLDlgDisplay $(STF_HWND),$(DlgTemplate),"",$(!SQLDlgNames),"","" ifcontains(i) $(!InstPubs) in $(!AddlScripts) LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgScripts),"UNIBUTTON1","TRUE" endif ifcontains(i) $(!InstAdmin2) in $(!AddlScripts) LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgScripts),"UNIBUTTON2","TRUE" endif ifcontains(i) $(!HelpSQL) in $(!AddlScripts) LibraryProcedure Result, $(!DLLSQL), DlgCheckButton $(DlgScripts),"UNIBUTTON3","TRUE" endif LibraryProcedure DLGEVENT, $(!DLLSQL), WaitEvent ifstr(i) $(DLGEVENT) == "CONTINUE" set !AddlScripts = {} set !CheckInstList = $(!CheckInstDefList) set !CheckInstRetList = $(!CheckInstDefRetList) set Status = STATUS_OK LibraryProcedure Result, $(!DLLSQL), IsDlgBtnChecked $(DlgScripts),"UNIBUTTON1" ifstr(i) $(Result) == "CHECKED" set !AddlScripts = >( $(!AddlScripts), $(!InstPubs)) set !CheckInstList = >( $(!CheckInstList), $(!SQLPubs)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!Pubs)) endif LibraryProcedure Result, $(!DLLSQL), IsDlgBtnChecked $(DlgScripts),"UNIBUTTON2" ifstr(i) $(Result) == "CHECKED" set !AddlScripts = >( $(!AddlScripts), $(!InstAdmin2)) set !AddlScripts = >( $(!AddlScripts), $(!InstObject)) set !CheckInstList = >( $(!CheckInstList), $(!SQLAdmin1)) set !CheckInstList = >( $(!CheckInstList), $(!SQLAdmin2)) set !CheckInstList = >( $(!CheckInstList), $(!SQLObject1)) set !CheckInstList = >( $(!CheckInstList), $(!SQLObject2)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpAdminChk1)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpAdminChk2)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpObjectChk1)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpObjectChk2)) endif LibraryProcedure Result, $(!DLLSQL), IsDlgBtnChecked $(DlgScripts),"UNIBUTTON3" ifstr(i) $(Result) == "CHECKED" set !AddlScripts = >( $(!AddlScripts), $(!HelpSQL) ) set !CheckInstList = >( $(!CheckInstList), $(!SQLHelpSQL)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!RetHelpSQL)) endif endif LibraryProcedure Result, $(!DLLSQL), CloseDialog $(DlgScripts) Return $(Status) [UpdateRegistry] StartWait set Status = STATUS_FAILED LibraryProcedure OpenVersionKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServerServer),$(!RegSQLServerVer),$(!AdminACL) ifstr(i) $(OpenVersionKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto upd_regend endif LibraryProcedure OpenServerKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServer),$(!RegSQLServerSvr),$(!AdminACL) ifstr(i) $(OpenServerKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto upd_regend endif LibraryProcedure OpenSetupKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLSetup),"","" ifstr(i) $(OpenSetupKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto upd_regend endif LibraryProcedure OpenMonKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServer),$(!SQLMonitorService)"\"$(!RegSQLSvrParam),$(!AdminACL) ifstr(i) $(OpenMonKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto upd_regend endif LibraryProcedure OpenMgrKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServer),$(!RegSQLSvcMgr),"" ifstr(i) $(OpenMgrKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto upd_regend endif LibraryProcedure OpenMManagementKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegMManagement),"","" ifstr(i) $(OpenMManagementKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto upd_regend endif LibraryProcedure OpenLMSvrKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegLMSvrParams),$(!RegSQLSvrParam),"" ifstr(i) $(OpenLMSvrKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto upd_regend endif LibraryProcedure OpenPriorityKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegPriorityCtrl),"","" ifstr(i) $(OpenPriorityKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto upd_regend endif shell "" RegWriteELog "\\"$(!ComputerName) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto upd_regend endif shell "" RegWriteSystemPaths "\\"$(!ComputerName),$(!RegSystemPaths),"" ifstr(i) $($R0) != "STATUS_SUCCESSFUL" goto upd_regend endif shell "" RegWriteDBLibDefaults "\\"$(!ComputerName) shell "" RegWriteVersion $(OpenVersionKey) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenServerKey),$(!RegValTapeWait),$(!RegTypeDWord),"-1","NOEXIST_WRITE" LibraryProcedure DefDomain, $(!DLLSQL), GetDefaultWkstaDomain ifstr(i) $(DefDomain) == "WORKGROUP" set DefDomain = $(!ComputerName) else-ifstr(i) $(DefDomain) == "DOMAIN" set DefDomain = $(!ComputerName) endif shell "" RegWriteSecuritySupport "0",$(!DefGuest),$(DefDomain),"0",$(!DefSecMap1),$(!DefSecMap2),$(!DefSecMap3),"0","NOFORCE" shell "" RegWriteMonitor $(OpenMonKey),$($0),"NOFORCE" shell "" RegWriteListenOn $(OpenServerKey),$($0),$($1),"NOFORCE" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenServerKey),$(!RegValRealTime),$(!RegTypeDWord),"0","NOEXIST_WRITE" LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!SQLPath),"AFTER",":" LibraryProcedure NewSQLPath, $(!DLLSQL), AppendToString $(!LogicalSQLDrive),$(Temp) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSetupKey),$(!RegValSQLPath),$(!RegTypeString),$(NewSQLPath),"" shell "" RegWriteMonitorSvc $(OpenMonKey) shell "" RegWritePerfMon "\\"$(!ComputerName) shell "" RegWriteGroupOrder "\\"$(!ComputerName) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenLMSvrKey),$(!RegValLMSvrAnno),$(!RegTypeDWord),"1","" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenLMSvrKey),$(!RegLMSize),$(!RegTypeDWord),"3","" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenMManagementKey),$(!RegMMSystemCache),$(!RegTypeDWord),"0","" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenPriorityKey),$(!RegSysPriority),$(!RegTypeDWord),"0","" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenMgrKey),$(!RegValSvcMgrVerify),$(!RegTypeDWord),"0","NOEXIST_WRITE" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenMgrKey),$(!RegValSvcMgrSvcs),$(!RegTypeMulti),$(!DefSvcMgrServices),"NOEXIST_WRITE" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenMgrKey),$(!RegValSvcMgrDefSvc),$(!RegTypeString),$(!SQLServerService),"NOEXIST_WRITE" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenMgrKey),$(!RegValSvcMgrRemote),$(!RegTypeDWord),"1","NOEXIST_WRITE" set Status = STATUS_SUCCESSFUL upd_regend =+ LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenVersionKey) LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenServerKey) LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenSetupKey) LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenMonKey) LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenMgrKey) LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenMManagementKey) LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenLMSvrKey) LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenPriorityKey) EndWait Return $(Status) [RegWriteSystemPaths] set Status = STATUS_FAILED shell "" RegDeleteSystemPaths $($1),$($2) ifstr(i) $($R0) == "STATUS_SUCCESSFUL" LibraryProcedure OpenSysPathKey, $(!DLLSQL), RegMakeKey $($0),$($1),"","",$($2) ifstr(i) $(OpenSysPathKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) else LibraryProcedure SysPath, $(!DLLSQL), RegRead $(OpenSysPathKey),$(!RegValSysPath) LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!SQLPath),"AFTER",":" LibraryProcedure NewSQLPath, $(!DLLSQL), AppendToString $(!LogicalSQLDrive),$(Temp) ifstr(i) $(SysPath) != "KEY_ERROR" ifstr(i) $(SysPath) == "" LibraryProcedure SysPath, $(!DLLSQL), AppendToString $(SysPath),$(NewSQLPath)"\"$(!Binaries)";"$(NewSQLPath)"\"$(!DLLs) else LibraryProcedure SysPath, $(!DLLSQL), AppendToString $(SysPath),";"$(NewSQLPath)"\"$(!Binaries)";"$(NewSQLPath)"\"$(!DLLs) endif else set SysPath = $(NewSQLPath)"\"$(!Binaries)";"$(NewSQLPath)"\"$(!DLLs) endif LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSysPathKey),$(!RegValSysPath),$(!RegTypeExpString),$(SysPath),"" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenSysPathKey) set Status = STATUS_SUCCESSFUL endif endif Return $(Status) [RegWriteTapeSupport] set Status = STATUS_FAILED LibraryProcedure OpenDOSDevKey, $(!DLLSQL), RegMakeKey $($0),$(!RegSystemPaths),$(!RegSysDOSDev),"" ifstr(i) $(OpenDOSDevKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) else LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenDOSDevKey),$(!RegValType0),$(!RegTypeString),$(!DefTapeDev),"" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenDOSDevKey) set Status = STATUS_SUCCESSFUL endif Return $(Status) [RegWriteSecuritySupport] set Status = STATUS_FAILED LibraryProcedure OpenSecKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServer)"\"$(!RegSQLServerSvr),"","" ifstr(i) $(OpenDBLibKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) else ifstr(i) $($8) == "FORCE" set UpdateMode = "" else set UpdateMode = "NOEXIST_WRITE" endif LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSecKey),$(!RegSecLoginMode),$(!RegTypeDWord),$($0),$(UpdateMode) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSecKey),$(!RegSecDefAccount),$(!RegTypeString),$($1),$(UpdateMode) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSecKey),$(!RegSecDefDomain),$(!RegTypeString),$($2),$(UpdateMode) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSecKey),$(!RegSecAuditLevel),$(!RegTypeDWord),$($3),$(UpdateMode) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSecKey),$(!RegSecMap1),$(!RegTypeString),$($4),$(UpdateMode) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSecKey),$(!RegSecMap2),$(!RegTypeString),$($5),$(UpdateMode) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSecKey),$(!RegSecMap3),$(!RegTypeString),$($6),$(UpdateMode) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSecKey),$(!RegSecHostname),$(!RegTypeDWord),$($7),$(UpdateMode) LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenSecKey) set Status = STATUS_SUCCESSFUL endif Return $(Status) [RegGetSecuritySupport] set Status = STATUS_FAILED set LoginMode = "1" set DefAccount = $(!DefGuest) LibraryProcedure DefDomain, $(!DLLSQL), GetDefaultWkstaDomain ifstr(i) $(DefDomain) == "WORKGROUP" set DefDomain = $(!ComputerName) else-ifstr(i) $(DefDomain) == "DOMAIN" set DefDomain = $(!ComputerName) endif set DefAuditLevel = "0" set DefMap1 = $(!DefSecMap1) set DefMap2 = $(!DefSecMap2) set DefMap3 = $(!DefSecMap3) set DefSetHostname = "0" LibraryProcedure OpenSecKey, $(!DLLSQL), RegOpen "\\"$(!ComputerName),$(!RegSQLServer)"\"$(!RegSQLServerSvr) ifstr(i) $(OpenSecKey) != "KEY_ERROR" LibraryProcedure LoginMode, $(!DLLSQL), RegRead $(OpenSecKey),$(!RegSecLoginMode) ifstr(i) $(LoginMode) == "KEY_ERROR" set LoginMode = "1" else ifstr(i) $(LoginMode) != "" set-add LoginMode = $(LoginMode),1 else set LoginMode = "1" endif endif LibraryProcedure Result, $(!DLLSQL), RegRead $(OpenSecKey),$(!RegSecDefAccount) ifstr(i) $(Result) != "KEY_ERROR" ifstr(i) $(Result) != "" set DefAccount = $(Result) endif endif LibraryProcedure Result, $(!DLLSQL), RegRead $(OpenSecKey),$(!RegSecDefDomain) ifstr(i) $(Result) != "KEY_ERROR" ifstr(i) $(Result) != "" set DefDomain = $(Result) endif endif LibraryProcedure Result, $(!DLLSQL), RegRead $(OpenSecKey),$(!RegSecAuditLevel) ifstr(i) $(Result) != "KEY_ERROR" ifstr(i) $(Result) != "" set DefAuditLevel = $(Result) endif endif LibraryProcedure Result, $(!DLLSQL), RegRead $(OpenSecKey),$(!RegSecHostname) ifstr(i) $(Result) != "KEY_ERROR" ifstr(i) $(Result) != "" set DefSetHostname = $(Result) endif endif LibraryProcedure Result, $(!DLLSQL), RegRead $(OpenSecKey),$(!RegSecMap1) ifstr(i) $(Result) != "KEY_ERROR" set DefMap1 = $(Result) endif LibraryProcedure Result, $(!DLLSQL), RegRead $(OpenSecKey),$(!RegSecMap2) ifstr(i) $(Result) != "KEY_ERROR" set DefMap2 = $(Result) endif LibraryProcedure Result, $(!DLLSQL), RegRead $(OpenSecKey),$(!RegSecMap3) ifstr(i) $(Result) != "KEY_ERROR" set DefMap3 = $(Result) endif LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenSecKey) set Status = STATUS_SUCCESSFUL endif Return $(Status),$(LoginMode),$(DefAccount),$(DefDomain),$(DefAuditLevel),$(DefMap1),$(DefMap2),$(DefMap3),$(DefSetHostname) [RegWriteSerialNumberInfo] set Status = STATUS_FAILED LibraryProcedure OpenVersionKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServerServer),$(!RegSQLServerVer),$(!AdminACL) ifstr(i) $(OpenVersionKey) != "KEY_ERROR" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenVersionKey),$(!RegValRegOwner),$(!RegTypeString),$(!FullName),"" LibraryProcedure SerialNo, $(!DLLSQL), CreateSerialNumber $(!SQLReleaseNumber),$(!FullName) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenVersionKey),$(!RegValSerialNumber),$(!RegTypeDWord),$(SerialNo),"" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenVersionKey) set Status = STATUS_SUCCESSFUL endif Return $(Status) [RegUpdateTCPIPSupport] set Status = STATUS_FAILED LibraryProcedure OpenTCPIPKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegTCPIPService),$(!RegSQLSvrParam),"" ifstr(i) $(OpenTCPIPKey) != "KEY_ERROR" ifstr(i) $($0) == "TRUE" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenTCPIPKey),$(!RegValTCPTries),$(!RegTypeDWord),"4","" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenTCPIPKey),$(!RegValTCPCnt),$(!RegTypeDWord),"30","" else LibraryProcedure Result, $(!DLLSQL), RegDelValue $(OpenTCPIPKey),$(!RegValTCPTries) LibraryProcedure Result, $(!DLLSQL), RegDelValue $(OpenTCPIPKey),$(!RegValTCPCnt) endif LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenTCPIPKey) set Status = STATUS_SUCCESSFUL endif Return $(Status) [RegWriteANSIOEM] set Status = STATUS_FAILED LibraryProcedure OpenDBLibKey, $(!DLLSQL), RegMakeKey $($0),$(!RegSQLClient),$(!RegSQLDBLib),"" ifstr(i) $(OpenDBLibKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) else LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenDBLibKey),$(!RegValANSIToOEM),$(!RegTypeString),$(!Chosen),"" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenDBLibKey) set Status = STATUS_SUCCESSFUL endif Return $(Status) [RegWriteDBLibDefaults] set Status = STATUS_FAILED LibraryProcedure OpenDBLibKey, $(!DLLSQL), RegMakeKey $($0),$(!RegSQLClient),$(!RegSQLDBLib),"" ifstr(i) $(OpenDBLibKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) else LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenDBLibKey),$(!RegValANSIToOEM),$(!RegTypeString),$(!ANSItoOEMDef),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenDBLibKey),$(!RegValUseIntl),$(!RegTypeString),$(!Chosen),"" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenDBLibKey) set Status = STATUS_SUCCESSFUL endif LibraryProcedure OpenClientKey, $(!DLLSQL), RegMakeKey $($0),$(!RegSQLClient),$(!RegMonMonitor),"" ifstr(i) $(OpenClientKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) else LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenClientKey),$(!ClientLibPipes),$(!RegTypeString),$(!MonNetLibPipeCon),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenClientKey),$(!ClientLibSPX),$(!RegTypeString),$(!MonNetLibSPXCon),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenClientKey),$(!ClientLibVine),$(!RegTypeString),$(!MonNetLibVineCon),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenClientKey),$(!ClientLibTCPIP),$(!RegTypeString),$(!MonNetLibTCPIPCon),"" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenClientKey) set Status = STATUS_SUCCESSFUL endif Return $(Status) [RegDeleteSystemPaths] set Status = STATUS_FAILED LibraryProcedure OpenSysPathKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$($0),"","",$($1) ifstr(i) $(OpenSysPathKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) else LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!SQLPath),"AFTER",":" ifstr(i) $(!RemoteComputer) == "" set !NewDefSQLPath = $(!SQLPath) else set !NewDefSQLPath = $(!LogicalSQLDrive)$(Temp) endif LibraryProcedure SysPath, $(!DLLSQL), RegRead $(OpenSysPathKey),$(!RegValSysPath) ifstr(i) $(SysPath) != "KEY_ERROR" LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $(SysPath),"BEFORESTRING",";"$(!NewDefSQLPath)"\"$(!Binaries) LibraryProcedure After, $(!DLLSQL), StrBeforeAndAfter $(SysPath),"AFTERSTRING",";"$(!NewDefSQLPath)"\"$(!Binaries) ifstr(i) $(Before) == "" LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $(SysPath),"BEFORESTRING",$(!NewDefSQLPath)"\"$(!Binaries) endif ifstr(i) $(After) == "" LibraryProcedure After, $(!DLLSQL), StrBeforeAndAfter $(SysPath),"AFTERSTRING",$(!NewDefSQLPath)"\"$(!Binaries) endif set NewSysPath = "" ifstr(i) $(Before) != "" set NewSysPath = $(Before) endif ifstr(i) $(After) != "" ifstr(i) $(NewSysPath) == "" LibraryProcedure NewSysPath, $(!DLLSQL), AppendToString $(NewSysPath),$(After) else LibraryProcedure NewSysPath, $(!DLLSQL), AppendToString $(NewSysPath),";"$(After) endif endif ifstr(i) $(NewSysPath) == "" set NewSysPath = $(SysPath) endif set OldNewSysPath = $(NewSysPath) LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $(NewSysPath),"BEFORESTRING",";"$(!NewDefSQLPath)"\"$(!DLLs) LibraryProcedure After, $(!DLLSQL), StrBeforeAndAfter $(NewSysPath),"AFTERSTRING",";"$(!NewDefSQLPath)"\"$(!DLLs) ifstr(i) $(Before) == "" LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $(NewSysPath),"BEFORESTRING",$(!NewDefSQLPath)"\"$(!DLLs) endif ifstr(i) $(After) == "" LibraryProcedure After, $(!DLLSQL), StrBeforeAndAfter $(NewSysPath),"AFTERSTRING",$(!NewDefSQLPath)"\"$(!DLLs) endif set NewSysPath = "" ifstr(i) $(Before) != "" set NewSysPath = $(Before) endif ifstr(i) $(After) != "" ifstr(i) $(NewSysPath) == "" LibraryProcedure NewSysPath, $(!DLLSQL), AppendToString $(NewSysPath),$(After) else LibraryProcedure NewSysPath, $(!DLLSQL), AppendToString $(NewSysPath),";"$(After) endif endif ifstr(i) $(NewSysPath) == "" set NewSysPath = $(OldNewSysPath) endif LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenSysPathKey),$(!RegValSysPath),$(!RegTypeExpString),$(NewSysPath),"" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenSysPathKey) endif set Status = STATUS_SUCCESSFUL endif Return $(Status) [RegWriteELog] set Status = STATUS_FAILED LibraryProcedure OpenELogKey, $(!DLLSQL), RegMakeKey $($0),$(!RegEventAppLog),$(!SQLServerService),"" ifstr(i) $(OpenELogKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) else LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!SQLPath),"AFTER",":" LibraryProcedure NewSQLPath, $(!DLLSQL), AppendToString $(!LogicalSQLDrive),$(Temp) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenELogKey),$(!RegValELogMsgFile),$(!RegTypeString),$(NewSQLPath)"\"$(!DLLs)"\"$(!SQLEventDLL),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenELogKey),$(!RegValELogTypes),$(!RegTypeDWord),"255","" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenELogKey),$(!RegValELogCMsgFile),$(!RegTypeString),$(NewSQLPath)"\"$(!DLLs)"\"$(!SQLEventDLL),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenELogKey),$(!RegValELogCCount),$(!RegTypeDWord),"5","" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenELogKey) set Status = STATUS_SUCCESSFUL endif LibraryProcedure OpenELogKey, $(!DLLSQL), RegMakeKey $($0),$(!RegEventAppLog),$(!SQLCtrs),"" ifstr(i) $(OpenELogKey) == "KEY_ERROR" read-syms ErrorUpdatingRegistry$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) else LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!SQLPath),"AFTER",":" LibraryProcedure NewSQLPath, $(!DLLSQL), AppendToString $(!LogicalSQLDrive),$(Temp) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenELogKey),$(!RegValELogMsgFile),$(!RegTypeString),$(NewSQLPath)"\"$(!DLLs)"\"$(!EventCtrsDLL),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenELogKey),$(!RegValELogTypes),$(!RegTypeDWord),"7","" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenELogKey) set Status = STATUS_SUCCESSFUL endif Return $(Status) [RegWriteVersion] set Status = STATUS_SUCCESSFUL LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegValBuild),$(!RegTypeString),$(!BuildVersion),"" LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegValVersion),$(!RegTypeString),$(!ProductVersion),"" LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegValRegOrg),$(!RegTypeString),$(!OrgName),"" LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegValSoftType),$(!RegTypeString),$(!RegSQLSysType),"" Return $(Status) [RegWriteMonitorSvc] set Status = STATUS_SUCCESSFUL LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegMonAutoRestart),$(!RegTypeString),$(!RegValAutoStart),"NOEXIST_WRITE" LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegMonPassword),$(!RegTypeString),$(!SAPassword),"" LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegMonServer),$(!RegTypeString),$(!RegValServer),"NOEXIST_WRITE" LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegMonBackupTime),$(!RegTypeString),$(!RegValBackupTime),"NOEXIST_WRITE" LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegMonTime),$(!RegTypeString),$(!RegValTime),"NOEXIST_WRITE" LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegMonLogsize),$(!RegTypeString),$(!RegValLogsize),"NOEXIST_WRITE" LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegMonTableSize),$(!RegTypeString),$(!RegValTableSize),"NOEXIST_WRITE" LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegMonTimeout),$(!RegTypeString),$(!RegValTimeout),"NOEXIST_WRITE" LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegMonMonitor),$(!RegTypeString),$(!RegValMntr),"NOEXIST_WRITE" LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegMonBackup),$(!RegTypeString),$(!RegValBackup),"NOEXIST_WRITE" LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegMonBackupRetry),$(!RegTypeString),$(!RegValBackupRetry),"NOEXIST_WRITE" Return $(Status) [RegWriteMonitor] set Status = STATUS_SUCCESSFUL set TmpMonRegList = {} set TmpMonRegList = >( $(TmpMonRegList), $(!NetLibPipes)","$(!MonitorPipe)) ifcontains(i) $(!NetLibSPX) in $($1) set TmpMonRegList = >( $(TmpMonRegList), $(!NetLibSPX)","$(!ServiceName)"_mon,-H") endif ifcontains(i) $(!NetLibTCPIP) in $($1) set TmpMonRegList = >( $(TmpMonRegList), $(!NetLibTCPIP)","$(!DefMonTCPIPSocket)) endif ifcontains(i) $(!NetLibVines) in $($1) LibraryProcedure Occurences, $(!DLLSQL), NumOccurrences $(!StreetName),"@" ifstr(i) $(Occurences) == "0" set TmpMonRegList = >( $(TmpMonRegList), $(!NetLibVines)","$(!StreetName)"_mon,-H") else LibraryProcedure KeyBefore, $(!DLLSQL), StrBeforeAndAfter $(!StreetName),"BEFORE","@" LibraryProcedure KeyAfter, $(!DLLSQL), StrBeforeAndAfter $(!StreetName),"AFTER","@" set TmpMonRegList = >( $(TmpMonRegList), $(!NetLibVines)","$(KeyBefore)"_mon@"$(KeyAfter)",-H") endif endif ifstr(i) $($2) == "FORCE" set UpdateMode = "" else set UpdateMode = "NOEXIST_WRITE" endif LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegValListenOn),$(!RegTypeMulti),$(TmpMonRegList),$(UpdateMode) Return $(Status) [RegWriteListenOn] set Status = STATUS_SUCCESSFUL set NewNetLibList = {} set CurrentUserAddrIdx = 1 ForListDo $($1) ifstr(i) $($) == $(!NetLibVines) set NewNetLibList = >( $(NewNetLibList), $($)","$(!StreetName)) else-ifstr(i) $($) == $(!NetLibSPX) ifstr(i) $(!SocketNumber) == "" set NewNetLibList = >( $(NewNetLibList), $($)","$(!ServiceName)) else set NewNetLibList = >( $(NewNetLibList), $($)","$(!ServiceName)","$(!SocketNumber)) endif else-ifstr(i) $($) == $(!NetLibTCPIP) set NewNetLibList = >( $(NewNetLibList), $($)","$(!TCPIPSocketNumber)) else-ifstr(i) $($) == $(!NetLibPipes) set NewNetLibList = >( $(NewNetLibList), $($)","$(!ServerNMPipeName)) else set NewNetLibList = >( $(NewNetLibList), $($)","*($($2),$(CurrentUserAddrIdx))) set-add CurrentUserAddrIdx = $(CurrentUserAddrIdx),1 endif ifcontains(i) $(!NetLibTCPIP) in $($1) shell "" RegUpdateTCPIPSupport "TRUE" else shell "" RegUpdateTCPIPSupport "FALSE" endif EndForListDo ifstr(i) $($3) == "FORCE" set UpdateMode = "" else set UpdateMode = "NOEXIST_WRITE" endif LibraryProcedure Result, $(!DLLSQL), RegSet $($0),$(!RegValListenOn),$(!RegTypeMulti),$(NewNetLibList),$(UpdateMode) Return $(Status) [RegWriteGroupOrder] set Status = STATUS_SUCCESSFUL shell "" DoGroupOrderNuke $($0) set AppendedHandle = "0" LibraryProcedure GrpOrderKey, $(!DLLSQL), RegMakeKey $($0),$(!RegSystemGrpOrder),"","" ifstr(i) $(GrpOrderKey) != "KEY_ERROR" LibraryProcedure CntrsMem, $(!DLLSQL), RegRead $(GrpOrderKey),$(!RegValGrpOrderList),"ALLOC_HANDLE" ifstr(i) $(CntrsMem) != "KEY_ERROR" set OneEntry = {} set OneEntry = >( $(OneEntry), $(!SQLServerService)) set OneEntry = >( $(OneEntry), $(!SQLMonitorService)) LibraryProcedure AppendedHandle, $(!DLLSQL), AppendToHandle $(CntrsMem),$(!RegTypeMulti),$(OneEntry) LibraryProcedure Result, $(!DLLSQL), RegSet $(GrpOrderKey),$(!RegValGrpOrderList),$(!RegTypeMulti),$(AppendedHandle),"","HANDLE" endif LibraryProcedure Result, $(!DLLSQL), RegClose $(GrpOrderKey) endif Return $(Status) [RegWriteMailEnabled] set Status = STATUS_SUCCESSFUL set AppendedHandle = "0" LibraryProcedure OpenCntrKey, $(!DLLSQL), RegMakeKey $($0),$(!RegSQLServerServer),"","" ifstr(i) $(OpenCntrKey) != "KEY_ERROR" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenCntrKey),$(!RegValMailEnabled),$(!RegTypeMulti),"","NOEXIST_WRITE" LibraryProcedure CntrsMem, $(!DLLSQL), RegRead $(OpenCntrKey),$(!RegValMailEnabled),"ALLOC_HANDLE" ifstr(i) $(CntrsMem) != "KEY_ERROR" set OneEntry = {} set OneEntry = >( $(OneEntry), $(!RegValSqlMailPair)) LibraryProcedure AppendedHandle, $(!DLLSQL), AppendToHandle $(CntrsMem),$(!RegTypeMulti),$(OneEntry) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenCntrKey),$(!RegValMailEnabled),$(!RegTypeMulti),$(AppendedHandle),"","HANDLE" endif LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenCntrKey) endif Return $(Status) [RegCopyMailInfo] set Status = STATUS_SUCCESSFUL LibraryProcedure OpenCUMailKey, $(!DLLSQL), RegMakeKey $($0),$(!RegSWMS),"Mail","" ,"TRUE" ifstr(i) $(OpenCUMailKey) != "KEY_ERROR" LibraryProcedure Result, $(!DLLSQL), Delnode "FILE_DELETE", $(!SQLPath)"\TMPMAIL0" LibraryProcedure Result, $(!DLLSQL), RegSave, $(OpenCUMailKey), $(!SQLPath)"\TMPMAIL0" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenCUMailKey) LibraryProcedure OpenDefMailKey, $(!DLLSQL), RegMakeKey $($0),".DEFAULT",$(!RegSWMS)"\Mail","","", "TRUE" ifstr(i) $(OpenDefMailKey) != "KEY_ERROR" LibraryProcedure Result, $(!DLLSQL), RegRestore, $(OpenDefMailKey), $(!SQLPath)"\TMPMAIL0" LibraryProcedure Result, $(!DLLSQL), Delnode "FILE_DELETE", $(!SQLPath)"\TMPMAIL0" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenDefMailKey) endif endif Return $(Status) [DoGroupOrderNuke] set Status = STATUS_SUCCESSFUL set AppendedHandle = "0" LibraryProcedure GrpOrderKey, $(!DLLSQL), RegMakeKey $($0),$(!RegSystemGrpOrder),"","" ifstr(i) $(GrpOrderKey) != "KEY_ERROR" LibraryProcedure CntrsMem, $(!DLLSQL), RegRead $(GrpOrderKey),$(!RegValGrpOrderList),"ALLOC_HANDLE" ifstr(i) $(CntrsMem) != "KEY_ERROR" LibraryProcedure PriorHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "BEFORESTRING",$(CntrsMem),$(!SQLMonitorService),"0" ifstr(i) $(PriorHandle) != "0" LibraryProcedure AfterHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "AFTERSTRING",$(CntrsMem),$(!SQLMonitorService),"0" LibraryProcedure AppendedHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "APPEND_HANDLES",$(PriorHandle),$(AfterHandle),"" endif ifstr(i) $(AppendedHandle) != "0" set CntrsMem = $(AppendedHandle) endif LibraryProcedure PriorHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "BEFORESTRING",$(CntrsMem),$(!SQLServerService),"0" ifstr(i) $(PriorHandle) != "0" LibraryProcedure AfterHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "AFTERSTRING",$(CntrsMem),$(!SQLServerService),"0" LibraryProcedure AppendedHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "APPEND_HANDLES",$(PriorHandle),$(AfterHandle),"" endif ifstr(i) $(AppendedHandle) != "0" LibraryProcedure Result, $(!DLLSQL), RegSet $(GrpOrderKey),$(!RegValGrpOrderList),$(!RegTypeMulti),$(AppendedHandle),"","HANDLE" endif endif LibraryProcedure Result, $(!DLLSQL), RegClose $(GrpOrderKey) endif Return $(Status) [DoMailNuke] set Status = STATUS_SUCCESSFUL LibraryProcedure OpenCntrKey, $(!DLLSQL), RegMakeKey $($0),$(!RegSQLServerServer),"","" ifstr(i) $(OpenCntrKey) != "KEY_ERROR" LibraryProcedure CntrsMem, $(!DLLSQL), RegRead $(OpenCntrKey),$(!RegValMailEnabled),"ALLOC_HANDLE" ifstr(i) $(CntrsMem) != "KEY_ERROR" LibraryProcedure PriorHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "BEFORESTRING",$(CntrsMem),$(!RegValSqlMailPair),"0" ifstr(i) $(PriorHandle) != "0" LibraryProcedure AfterHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "AFTERSTRING",$(CntrsMem),$(!RegValSqlMailPair),"0" LibraryProcedure AppendedHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "APPEND_HANDLES",$(PriorHandle),$(AfterHandle),"" ifstr(i) $(AppendedHandle) != "0" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenCntrKey),$(!RegValMailEnabled),$(!RegTypeMulti),$(AppendedHandle),"","HANDLE" endif endif endif LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenCntrKey) endif Return $(Status) [DoPerfmonNuke] set Status = STATUS_SUCCESSFUL LibraryProcedure CurrentLocale, $(!DLLSQL), GetDefaultLocale LibraryProcedure SQLPerfKey, $(!DLLSQL), RegOpen $($0),$(!RegSCMSQLServer)"\"$(!SQLServerService)"\"$(!RegSQLPerformance) ifstr(i) $(SQLPerfKey) != "KEY_ERROR" LibraryProcedure Temp, $(!DLLSQL), RegRead $(SQLPerfKey),$(!RegValFirstCntr) set FirstCntr = *($(Temp),1) LibraryProcedure LastCntr, $(!DLLSQL), RegRead $(SQLPerfKey),$(!RegValLastCntr) LibraryProcedure Temp, $(!DLLSQL), RegRead $(SQLPerfKey),$(!RegValFirstHelp) set FirstHelp = *($(Temp),1) LibraryProcedure LastHelp, $(!DLLSQL), RegRead $(SQLPerfKey),$(!RegValLastHelp) nukeAnotherLocale =+ LibraryProcedure OpenCntrKey, $(!DLLSQL), RegMakeKey $($0),$(!RegNTPerfLib),$(CurrentLocale),"" ifstr(i) $(OpenCntrKey) != "KEY_ERROR" LibraryProcedure CntrsMem, $(!DLLSQL), RegRead $(OpenCntrKey),$(!RegValCounters),"ALLOC_HANDLE" ifstr(i) $(CntrsMem) != "KEY_ERROR" LibraryProcedure PriorHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "BEFORESTRING",$(CntrsMem),$(FirstCntr),"0" ifstr(i) $(PriorHandle) != "0" LibraryProcedure AfterHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "AFTERSTRING",$(CntrsMem),$(LastCntr),"1" LibraryProcedure AppendedHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "APPEND_HANDLES",$(PriorHandle),$(AfterHandle),"" ifstr(i) $(AppendedHandle) != "0" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenCntrKey),$(!RegValCounters),$(!RegTypeMulti),$(AppendedHandle),"","HANDLE" endif endif endif LibraryProcedure HelpMem, $(!DLLSQL), RegRead $(OpenCntrKey),$(!RegValHelp),"ALLOC_HANDLE" ifstr(i) $(HelpMem) != "KEY_ERROR" LibraryProcedure PriorHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "BEFORESTRING",$(HelpMem),$(FirstHelp),"0" ifstr(i) $(PriorHandle) != "0" LibraryProcedure AfterHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "AFTERSTRING",$(HelpMem),$(LastHelp),"1" LibraryProcedure AppendedHandle, $(!DLLSQL), BeforeAndAfterIdxSearchAlloc "APPEND_HANDLES",$(PriorHandle),$(AfterHandle),"" ifstr(i) $(AppendedHandle) != "0" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenCntrKey),$(!RegValHelp),$(!RegTypeMulti),$(AppendedHandle),"","HANDLE" endif endif endif LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenCntrKey) ifstr(i) $(CurrentLocale) != $(!DefPerfLangID) set CurrentLocale = $(!DefPerfLangID) goto nukeAnotherLocale endif endif LibraryProcedure Result, $(!DLLSQL), RegClose $(SQLPerfKey) endif LibraryProcedure Result, $(!DLLSQL), RegEnumDelete "\\"$(!ComputerName),"UNIDELETE",$(!RegSCMSQLServer),$(!SQLServerService)"\"$(!RegSQLPerformance) Return $(Status) [RegWritePerfMon] set Status = STATUS_SUCCESSFUL LibraryProcedure CurrentLocale, $(!DLLSQL), GetDefaultLocale shell "" DoPerfmonNuke $($0) LibraryProcedure OpenNTPerfKey, $(!DLLSQL), RegMakeKey $($0),$(!RegSCMSQLServer),$(!SQLServerService)"\"$(!RegSQLPerformance),"" ifstr(i) $(OpenNTPerfKey) != "KEY_ERROR" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenNTPerfKey),$(!RegValLibrary),$(!RegTypeString),$(!SQLCtrsDLL),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenNTPerfKey),$(!RegValOpen),$(!RegTypeString),"OpenSQLPerformanceData","" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenNTPerfKey),$(!RegValCollect),$(!RegTypeString),"CollectSQLPerformanceData","" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenNTPerfKey),$(!RegValClose),$(!RegTypeString),"CloseSQLPerformanceData","" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenNTPerfKey),$(!RegValLoginTO),$(!RegTypeDWord),$(!LoginSleepPeriod),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenNTPerfKey),$(!RegValQueryTO),$(!RegTypeDWord),"0","" anotherLocale =+ LibraryProcedure OpenPerfKey, $(!DLLSQL), RegMakeKey $($0),$(!RegNTPerfLib),"","" ifstr(i) $(OpenPerfKey) != "KEY_ERROR" LibraryProcedure OpenCntrKey, $(!DLLSQL), RegMakeKey $($0),$(!RegNTPerfLib),$(CurrentLocale),"" ifstr(i) $(OpenCntrKey) != "KEY_ERROR" LibraryProcedure CntrsMem, $(!DLLSQL), RegRead $(OpenCntrKey),$(!RegValCounters),"ALLOC_HANDLE" ifstr(i) $(CntrsMem) == "KEY_ERROR" set CntrsMem = "" endif LibraryProcedure HelpMem, $(!DLLSQL), RegRead $(OpenCntrKey),$(!RegValHelp),"ALLOC_HANDLE" ifstr(i) $(HelpMem) == "KEY_ERROR" set HelpMem = "" endif LibraryProcedure LastCounter, $(!DLLSQL), RegRead $(OpenPerfKey),$(!RegValLastCntr) LibraryProcedure LastHelp, $(!DLLSQL), RegRead $(OpenPerfKey),$(!RegValLastHelp) set CurrentCntr = $(LastCounter) set OrigCntr = $(LastCounter) set CurrentHelp = $(LastHelp) set OrigHelp = $(LastHelp) install LoadPerfLibrary LibraryProcedure NumPerfCntrs, $(!PERFHANDLE), GetNumPerfCounters set PerfNameSQLSvrObj = {} set PerfHelpSQLSvrObj = {} set PerfSQLObjects = {} set ListCntr = "1" set-sub CntrLimit = $(NumPerfCntrs),1 listLoop =+ LibraryProcedure CntrListPair, $(!PERFHANDLE), GetPerfCounter $(ListCntr) set PerfNameSQLSvrObj = >( $(PerfNameSQLSvrObj), *($(CntrListPair), 1)) set PerfHelpSQLSvrObj = >( $(PerfHelpSQLSvrObj), *($(CntrListPair), 2)) ifstr(i) *($(CntrListPair), 1) == *($(CntrListPair), 2) set PerfSQLObjects = >( $(PerfSQLObjects), $(ListCntr)) endif ifint $(ListCntr) > $(CntrLimit) else set-add ListCntr = $(ListCntr),1 goto listLoop endif install FreePerfLibrary set-add CurrentCntr = $(CurrentCntr),"2" set-add CurrentHelp = $(CurrentHelp),"2" shell "" DoCreateObjectCntrList $(PerfSQLObjects),$(CurrentCntr) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenNTPerfKey),$(!RegValFirstCntr),$(!RegTypeMulti),$($R0),"" shell "" DoCreateObjectCntrList $(PerfSQLObjects),$(CurrentHelp) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenNTPerfKey),$(!RegValFirstHelp),$(!RegTypeMulti),$($R0),"" ForListDo $(PerfNameSQLSvrObj) set OneEntry = {} set OneEntry = >( $(OneEntry), $(CurrentCntr)) set OneEntry = >( $(OneEntry), $($)) LibraryProcedure CntrsMem, $(!DLLSQL), AppendToHandle $(CntrsMem),$(!RegTypeMulti),$(OneEntry) set-add CurrentCntr = $(CurrentCntr),"2" EndForListDo set-sub CurrentCntr = $(CurrentCntr),2 LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenCntrKey),$(!RegValCounters),$(!RegTypeMulti),$(CntrsMem),"","HANDLE" LibraryProcedure Result, $(!DLLSQL), FreeHandle $(CntrsMem) ForListDo $(PerfHelpSQLSvrObj) set OneEntry = {} set OneEntry = >( $(OneEntry), $(CurrentHelp)) set OneEntry = >( $(OneEntry), $($)) LibraryProcedure HelpMem, $(!DLLSQL), AppendToHandle $(HelpMem),$(!RegTypeMulti),$(OneEntry) set-add CurrentHelp = $(CurrentHelp),"2" EndForListDo set-sub CurrentHelp = $(CurrentHelp),2 LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenCntrKey),$(!RegValHelp),$(!RegTypeMulti),$(HelpMem),"","HANDLE" LibraryProcedure Result, $(!DLLSQL), FreeHandle $(HelpMem) ifstr(i) $(CurrentLocale) == $(!DefPerfLangID) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenPerfKey),$(!RegValLastCntr),$(!RegTypeDWord),$(CurrentCntr),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenPerfKey),$(!RegValLastHelp),$(!RegTypeDWord),$(CurrentHelp),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenNTPerfKey),$(!RegValLastCntr),$(!RegTypeDWord),$(CurrentCntr),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenNTPerfKey),$(!RegValLastHelp),$(!RegTypeDWord),$(CurrentHelp),"" else LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenPerfKey) LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenCntrKey) set CurrentLocale = $(!DefPerfLangID) goto anotherLocale endif LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenPerfKey) endif LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenCntrKey) endif LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenNTPerfKey) endif Return $(Status) [DoCreateObjectCntrList] set Objects = {} ForListDo $($0) set-sub Cntr = $($),1 LibraryProcedure Idx, $(!DLLSQL), IntMultiply $(Cntr),2 set-add Idx = $(Idx), $($1) set Objects = >( $(Objects), $(Idx)) EndForListDo return $(Objects) [UpdateSCM] set Status = STATUS_FAILED set ErrorNumber = "" set OpenSQLKey = "" read-syms BillboardSCM$(!STF_LANGUAGE) LibraryProcedure Result, $(!DLLSQL), UpdateBillboard $(!DlgHandle),$(!BillName) LibraryProcedure OpenSQLKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServer),"","" LibraryProcedure OpenParamKey, $(!DLLSQL), RegMakeKey "\\"$(!ComputerName),$(!RegSQLServerServer),$(!RegSQLSvrParam),$(!AdminACL) ifstr(i) $(OpenParamKey) == "KEY_ERROR" set ErrorNumber = " #SCM1" goto end_updateSCM endif ifstr(i) $(!RemoteComputer) == "" set NewSQLPath = $(!SQLPath) set NewMasterPath = $(!MasterDBPath) else LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!SQLPath),"AFTER",":" LibraryProcedure NewSQLPath, $(!DLLSQL), AppendToString $(!LogicalSQLDrive),$(Temp) LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!MasterDBPath),"AFTER",":" LibraryProcedure NewMasterPath, $(!DLLSQL), AppendToString $(!LogicalDBDrive),$(Temp) endif ifstr(i) $($0) == "TRUE" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenParamKey),$(!RegValParameter)"0",$(!RegTypeString),"-d"$(NewMasterPath)"\"$(!MasterDBFileName),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenParamKey),$(!RegValParameter)"1",$(!RegTypeString),"-e"$(NewSQLPath)"\"$(!LogDir)"\"$(!ErrorLog),"" LibraryProcedure Result, $(!DLLSQL), DoServiceOp "\\"$(!ComputerName),"SERVICE_REMOVE",$(!SQLMonitorService),"","" LibraryProcedure Result, $(!DLLSQL), DoServiceOp "\\"$(!ComputerName),"SERVICE_REMOVE",$(!SQLServerService),"","" set pollLoop = "1" ifstr(i) $(!AutoServerService) == "CHECKED" set StartType = "A" else set StartType = "" endif pollSvrCreate =+ LibraryProcedure Result, $(!DLLSQL), DoServiceOp "\\"$(!ComputerName),"SERVICE_CREATE",$(!SQLServerService),$(NewSQLPath)"\"$(!Binaries)"\"$(!SQLServer),"","","",$(StartType) ifstr(i) $(Result) != "" ifint $(pollLoop) < "5" set-add pollLoop = $(pollLoop),1 goto pollSvrCreate endif LibraryProcedure Err, $(!DLLSQL), GetLastSetupError set ErrorNumber = " #SCM2 - "$(Err) goto end_updateSCM endif set pollLoop = "1" ifstr(i) $(!AutoMonitorService) == "CHECKED" set StartType = "A" else set StartType = "" endif add_monitor_svc =+ LibraryProcedure Result, $(!DLLSQL), DoServiceOp "\\"$(!ComputerName),"SERVICE_CREATE",$(!SQLMonitorService),$(NewSQLPath)"\"$(!Binaries)"\"$(!SQLMonitorEXE),"","",$(!SQLServerService),$(StartType) ifstr(i) $(Result) != "" ifint $(pollLoop) < "5" set-add pollLoop = $(pollLoop),1 goto add_monitor_svc endif LibraryProcedure Err, $(!DLLSQL), GetLastSetupError set ErrorNumber = " #SCM3 - "$(Err) goto end_updateSCM endif else shell "" DoExtractMasterAndErrorlog "\\"$(!ComputerName) set MasterEntry = $($R0) set ELogEntry = $($R1) LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenParamKey),$(MasterEntry),$(!RegTypeString),"-d"$(NewMasterPath)"\"$(!MasterDBFileName),"" LibraryProcedure Result, $(!DLLSQL), RegSet $(OpenParamKey),$(ELogEntry),$(!RegTypeString),"-e"$(NewSQLPath)"\"$(!LogDir)"\"$(!ErrorLog),"" endif set Status = STATUS_SUCCESSFUL LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenParamKey) end_updateSCM =+ ifstr(i) $(OpenSQLKey) != "" LibraryProcedure Result, $(!DLLSQL), RegClose $(OpenSQLKey) endif Return $(Status) $(ErrorNumber) [StartService] set Status = STATUS_FAILED StartWait restart_service =+ LibraryProcedure Result, $(!DLLSQL), DoServiceOp "\\"$(!ComputerName),"SERVICE_START",$($0),"","" ifstr(i) $(Result) != "" goto endStartServ endif set PollTime = "0" pollstate =+ LibraryProcedure Result, $(!DLLSQL), GetServiceState "\\"$(!ComputerName),$($0) ifstr(i) $(Result) == "SERVICE_LIMBO" ifint $(PollTime) > "120" goto endStartServ endif LibraryProcedure Result, $(!DLLSQL), Sleepy "3" set-add PollTime = $(PollTime),3 goto pollstate endif ifstr(i) $(Result) == "SERVICE_RUNNING" set Status = STATUS_SUCCESSFUL endif endStartServ =+ ifstr(i) $(Status) != "STATUS_SUCCESSFUL" read-syms NetStartError$(!STF_LANGUAGE) LibraryProcedure Err, $(!DLLSQL), GetLastSetupError LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$($0)" - "$(!AddlText)" - "$(Err) endif EndWait Return $(Status) [StopService] set Status = STATUS_FAILED StartWait LibraryProcedure Result, $(!DLLSQL), DoServiceOp "\\"$(!ComputerName),"SERVICE_STOP",$($0),"","" ifstr(i) $(Result) == "SERVICE_NOT_EXIST" set Status = STATUS_SUCCESSFUL goto endStopSQL else-ifstr(i) $(Result) != "" goto endStopSQL endif set PollTime = "0" pollstate =+ LibraryProcedure Result, $(!DLLSQL), GetServiceState "\\"$(!ComputerName),$($0) ifstr(i) $(Result) == "SERVICE_LIMBO" ifint $(PollTime) > "120" goto endStopSQL endif LibraryProcedure Result, $(!DLLSQL), Sleepy "3" set-add PollTime = $(PollTime),3 goto pollstate endif ifstr(i) $(Result) == "SERVICE_STOPPED" set Status = STATUS_SUCCESSFUL endif endStopSQL =+ ifstr(i) $(Status) != "STATUS_SUCCESSFUL" read-syms NetStopError$(!STF_LANGUAGE) LibraryProcedure Err, $(!DLLSQL), GetLastSetupError LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$($0)" - "$(!AddlText)" - "$(Err) endif ifstr(i) $(!RemoteComputer) == "" ifstr(i) $($0) == $(!SQLServerService) LibraryProcedure SemPresent, $(!DLLSQL), IsSQLSemaphoreActive "" ifstr(i) $(SemPresent) == "SEMAPHORE_PRESENT" LibraryProcedure Result, $(!DLLSQL), SQLLogin "0","1",$(!ServerName),$(!SALogin),$(!SAPassword) ifstr(i) $(Result) != "NO_SERVER" LibraryProcedure Result, $(!DLLSQL), SQLExecute $(!SQLShutdown) endif endif endif endif EndWait Return $(Status) [CheckInstalledScripts] set Status = STATUS_FAILED set TempList = $($0) LibraryProcedure Result, $(!DLLSQL), SQLLogin "0","4",$(!ServerName),$(!SALogin),$(!SAPassword) ifstr(i) $(Result) == "NO_SERVER" goto chkinstsp_end endif LibraryProcedure Result, $(!DLLSQL), SQLDBUse $(!Master) ForListDo $(!OptionalScriptList) LibraryProcedure Result, $(!DLLSQL), SQLAddtoCmdBuff $($) EndForListDo LibraryProcedure Result, $(!DLLSQL), SQLExecuteCmdBuff ifstr(i) $(Result) == "BAD_SQL_EXEC" goto chkinstsp_end endif set ListIdx = 0 ForListDo $(!OptionalScriptRetList) LibraryProcedure Result, $(!DLLSQL), SQLGetNextResultSet ifstr(i) $(Result) == "BAD_RESULTS" goto chkinstsp_end endif LibraryProcedure Result, $(!DLLSQL), SQLBindColumn "STRINGBIND", "1" LibraryProcedure Result, $(!DLLSQL), SQLNextRow $(!OneNextRow) LibraryProcedure Data, $(!DLLSQL), SQLGetBindingData "1" LibraryProcedure Result, $(!DLLSQL), NonCaseSensSearch $(Data),$($) ifstr(i) $(Result) != "NOT_FOUND" ifstr(i) $(ListIdx) == "0" set TempList = >( $(TempList), $(!InstAdmin2)) set !CheckInstList = >( $(!CheckInstList), $(!SQLAdmin1)) set !CheckInstList = >( $(!CheckInstList), $(!SQLAdmin2)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpAdminChk1)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpAdminChk2)) else-ifstr(i) $(ListIdx) == "1" set TempList = >( $(TempList), $(!InstObject)) set !CheckInstList = >( $(!CheckInstList), $(!SQLObject1)) set !CheckInstList = >( $(!CheckInstList), $(!SQLObject2)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpObjectChk1)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!SpObjectChk2)) else set TempList = >( $(TempList), $(!HelpSQL)) set !CheckInstList = >( $(!CheckInstList), $(!SQLHelpSQL)) set !CheckInstRetList = >( $(!CheckInstRetList), $(!RetHelpSQL)) endif endif LibraryProcedure Result, $(!DLLSQL), SQLNextRow $(!PurgeRows) set-add ListIdx = $(ListIdx),1 EndForListDo LibraryProcedure Result, $(!DLLSQL), SQLLogout set Status = STATUS_SUCCESSFUL chkinstsp_end =+ LibraryProcedure Result, $(!DLLSQL), SQLLogout Return $(Status) $(TempList) [CheckInstallSuccess] set Status = STATUS_FAILED set !NonCriticalScriptFailure = "" LibraryProcedure Result, $(!DLLSQL), SQLLogin "0","4",$(!ServerName),$(!SALogin),$(!SAPassword) ifstr(i) $(Result) == "NO_SERVER" read-syms NoLoginToSQLServer$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto chkinst_end endif set CheckNonCritList = $(!NonCriticalCheck) set CheckNonCritList = >( $(CheckNonCritList),$(!Pubs)) LibraryProcedure Result, $(!DLLSQL), SQLDBUse $(!Master) ForListDo $(!CheckInstList) LibraryProcedure Result, $(!DLLSQL), SQLAddtoCmdBuff $($) EndForListDo LibraryProcedure Result, $(!DLLSQL), SQLExecuteCmdBuff ifstr(i) $(Result) == "BAD_SQL_EXEC" read-syms SQLExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)" CKI #1"$(!LF) LibraryProcedure !AddlText, $(!DLLSQL), SQLGetErrorMsg LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto chkinst_end endif ForListDo $(!CheckInstRetList) LibraryProcedure Result, $(!DLLSQL), SQLGetNextResultSet ifstr(i) $(Result) == "BAD_RESULTS" read-syms SQLBadResults$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)$($) goto chkinst_end endif LibraryProcedure Result, $(!DLLSQL), SQLBindColumn "STRINGBIND", "1" LibraryProcedure Result, $(!DLLSQL), SQLNextRow $(!OneNextRow) LibraryProcedure Data, $(!DLLSQL), SQLGetBindingData "1" LibraryProcedure Result, $(!DLLSQL), NonCaseSensSearch $(Data),$($) ifstr(i) $(Result) == "NOT_FOUND" ifcontains(i) $($) in $(CheckNonCritList) set !NonCriticalScriptFailure = "1" else read-syms SQLBadResults$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)$($) goto chkinst_end endif endif LibraryProcedure Result, $(!DLLSQL), SQLNextRow $(!PurgeRows) EndForListDo LibraryProcedure Result, $(!DLLSQL), SQLLogout ifstr(i) $($0) != "TRUE" shell "" StopService $(!SQLServerService) ifstr(i) $($R0) != STATUS_SUCCESSFUL goto chkinst_end endif endif set Status = STATUS_SUCCESSFUL chkinst_end =+ LibraryProcedure Result, $(!DLLSQL), SQLLogout Return $(Status) [CreateConfig] set Status = STATUS_FAILED LibraryProcedure ConfigFile, $(!DLLSQL), CreateNOpenFile $(!SQLPath)"\"$(!InstallDir)"\"$(!InstConfig) ifstr(i) $(Result) == "ERROR_FILE_OPEN" read-syms CannotCreateFile$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto crconfig_end endif LibraryProcedure ConfigMemory, $(!DLLSQL), CalcSQLReqMem $(!LogicalSystemMemory) ForListDo $(!ConfigList) LibraryProcedure Result, $(!DLLSQL), WriteToFile $(ConfigFile),$($) EndForListDo LibraryProcedure Temp, $(!DLLSQL), StrBeforeAndAfter $(!MasterDBPath),"AFTER",":" LibraryProcedure NewMasterPath, $(!DLLSQL), AppendToString $(!LogicalDBDrive),$(Temp) LibraryProcedure Result, $(!DLLSQL), WriteToFile $(ConfigFile),$(!SQLPhysName1)$(NewMasterPath)"\"$(!MasterDBFileName)$(!SQLPhysName2)$(!LF) LibraryProcedure Result, $(!DLLSQL), WriteToFile $(ConfigFile),$(!SQLGo)$(!LF) LibraryProcedure Result, $(!DLLSQL), WriteToFile $(ConfigFile),$(!SQLUserConns)$(!LF) LibraryProcedure Result, $(!DLLSQL), WriteToFile $(ConfigFile),$(!SQLGo)$(!LF) LibraryProcedure Result, $(!DLLSQL), WriteToFile $(ConfigFile),$(!SQLMemory)$(ConfigMemory)$(!LF) LibraryProcedure Result, $(!DLLSQL), WriteToFile $(ConfigFile),$(!SQLGo)$(!LF) LibraryProcedure Result, $(!DLLSQL), WriteToFile $(ConfigFile),$(!SQLAllowUpdatesOff)$(!LF) LibraryProcedure Result, $(!DLLSQL), WriteToFile $(ConfigFile),$(!SQLGo)$(!LF) LibraryProcedure Result, $(!DLLSQL), WriteToFile $(ConfigFile),$(!SQLReconfigure)$(!LF) LibraryProcedure Result, $(!DLLSQL), WriteToFile $(ConfigFile),$(!SQLGo)$(!LF) LibraryProcedure Result, $(!DLLSQL), WriteToFile $(ConfigFile),$(!SQLNameServer1)$(!ComputerName)$(!SQLNameServer2)$(!LF) LibraryProcedure Result, $(!DLLSQL), WriteToFile $(ConfigFile),$(!SQLGo)$(!LF) LibraryProcedure Result, $(!DLLSQL), CloseFile $(ConfigFile) ifstr(i) $(Result) == "DISK_FULL" read-syms DiskFull$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto crconfig_end endif set Status = STATUS_SUCCESSFUL crconfig_end =+ Return $(Status) [InstallScripts] set Status = STATUS_FAILED ForListDo $(!InstScriptsList) StartWait LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $($),"BEFORE","." ProcessExecute Result,"WAIT",$(!SQLPath)"\"$(!Binaries)"\"$(!ISQL)" /S"$(!ServerName)" /Usa /i"$(!SQLPath)"\"$(!InstallDir)"\"$($)" /o"$(!SQLPath)"\"$(!InstallDir)"\"$(Before)".OUT /P" EndWait ifstr(i) $(Result) == "PROCESS_ERROR" read-syms ProcessExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!ISQL)" "$(!AddlText) goto instscr_end endif EndForListDo ForListDo $(!AddlScripts) StartWait LibraryProcedure Before, $(!DLLSQL), StrBeforeAndAfter $($),"BEFORE","." ProcessExecute Result,"WAIT",$(!SQLPath)"\"$(!Binaries)"\"$(!ISQL)" /S"$(!ServerName)" /Usa /i"$(!SQLPath)"\"$(!InstallDir)"\"$($)" /o"$(!SQLPath)"\"$(!InstallDir)"\"$(Before)".OUT /P" EndWait ifstr(i) $(Result) == "PROCESS_ERROR" read-syms ProcessExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!ISQL)" "$(!AddlText) goto instscr_end endif EndForListDo set Status = STATUS_SUCCESSFUL instscr_end =+ Return $(Status) [ReIndexServer] set Status = STATUS_FAILED shell "" StartService $(!SQLServerService) LibraryProcedure Result, $(!DLLSQL), Sleepy "15" LibraryProcedure Result, $(!DLLSQL), SQLLogin "5","3",$(!ServerName),$(!SALogin),$(!SAPassword) ifstr(i) $(Result) == "NO_SERVER" shell "" StartService $(!SQLServerService) LibraryProcedure Result, $(!DLLSQL), Sleepy "10" LibraryProcedure Result, $(!DLLSQL), SQLLogin "5","5",$(!ServerName),$(!SALogin),$(!SAPassword) ifstr(i) $(Result) == "NO_SERVER" read-syms NoLoginToSQLServer$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto reindex_end endif endif set Status = STATUS_SUCCESSFUL LibraryProcedure Result, $(!DLLSQL), SQLLogout reindex_end =+ Return $(Status) [UpdateSystemTables] set Status = STATUS_FAILED LibraryProcedure Result, $(!DLLSQL), SQLLogin "0","4",$(!ServerName),$(!SALogin),$(!SAPassword) ifstr(i) $(Result) == "NO_SERVER" read-syms NoLoginToSQLServer$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto update_end endif LibraryProcedure Result, $(!DLLSQL), SQLExecute $(!UpdateSortOrder1)$(!TheSortConfigValue)$(!UpdateSortOrder2) ifstr(i) $(Result) == "BAD_SQL_EXEC" read-syms SQLExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)" UST #1"$(!LF) LibraryProcedure !AddlText, $(!DLLSQL), SQLGetErrorMsg LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto update_end endif LibraryProcedure Result, $(!DLLSQL), SQLExecute $(!SQLReconfigure) ifstr(i) $(Result) == "BAD_SQL_EXEC" read-syms SQLExecError$(!STF_LANGUAGE) LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText)" UST #2"$(!LF) LibraryProcedure !AddlText, $(!DLLSQL), SQLGetErrorMsg LibraryProcedure !MsgText, $(!DLLSQL), AppendToString $(!MsgText),$(!AddlText) goto update_end endif set Status = STATUS_SUCCESSFUL update_end =+ LibraryProcedure Result, $(!DLLSQL), SQLLogout Return $(Status) [DoNetLibPrompts] set Status = STATUS_FAILED set FirstUserDefined = 0 set CurrentGeneric = 1 set NewNetList = {} set NewNetAddresses = {} ForListDo $($0) ifstr(i) $($) == $(!NetLibPipes) set NewNetList = >($(NewNetList), $($)) else-ifstr(i) $($) == $(!NetLibSPX) shell "" DoGetServiceName ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set Status = $($R0) goto end_netlib_prompts endif set NewNetList = >($(NewNetList), $($)) else-ifstr(i) $($) == $(!NetLibVines) shell "" DoGetStreetName ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set Status = $($R0) goto end_netlib_prompts endif set NewNetList = >($(NewNetList), $($)) else-ifstr(i) $($) == $(!NetLibTCPIP) shell "" DoGetTCPIPSocket ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set Status = $($R0) goto end_netlib_prompts endif set NewNetList = >($(NewNetList), $($)) else ifstr(i) $($) == $(!UserDefined) ifstr(i) $(FirstUserDefined) == "0" shell "" DoGetSpaceSQLPath GetSQLPathDlg,$(InstallationReqSpace),$(SpaceCost),"1","","",$(!LogicalSQLDrive) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set Status = $($R0) goto end_netlib_prompts endif set !SQLPath = $($R1)$($R2) set !DefSQLPath = $(!SQLPath) set !CreateSQLPath = $(!SQLPath) ifstr(i) $(!RemoteComputer) == "" set !LogicalSQLDrive = $($R1) endif set FirstUserDefined = 1 endif shell "" DoGetNetLibPath ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set Status = $($R0) goto end_netlib_prompts endif set NewNetList = >($(NewNetList), $(!UserNetLib)) set !UserDefinedName = $(!UserNetLib) set !NetAddress = "" else set NewNetList = >($(NewNetList), $($)) set !UserDefinedName = $($) set !NetAddress = *($(!NetAddresses), $(CurrentGeneric)) set-add CurrentGeneric = $(CurrentGeneric),1 endif shell "" DoGetGenericNetAddress ifstr(i) $($R0) != "STATUS_SUCCESSFUL" set Status = $($R0) goto end_netlib_prompts endif set NewNetAddresses = >($(NewNetAddresses), $(!NetAddress)) endif EndForListDo set Status = STATUS_SUCCESSFUL end_netlib_prompts =+ ifstr(i) $(Status) != "STATUS_SUCCESSFUL" set NewNetList = {} set NewNetAddresses = {} endif Return $(Status) $(NewNetList) $(NewNetAddresses) [Popup] set tmpvar = $($0) read-syms PopupInfo ui start $(DlgTemplate) ui pop 1 Return "STATUS_SUCCESSFUL" [AllocateUnusedDrive] set Status = STATUS_FAILED set Drive = "" ifstr(i) $(!STF_UNUSEDDRIVES) == {} goto finish_allocate else-ifstr(i) $(!STF_UNUSEDDRIVES) == "" goto finish_allocate else set NewDriveList = {} ForListDo $(!STF_UNUSEDDRIVES) ifstr(i) $(#) != 1 set NewDriveList = >($(NewDriveList), $($)) else set Drive = $($) set Status = STATUS_SUCCESSFUL endif EndForListDo set !STF_UNUSEDDRIVES = $(NewDriveList) endif finish_allocate = + Return $(Status) $(Drive) [LoadSetupLibrary] LoadLibrary "x" $(!STF_WINDOWSSYSPATH)setupdll.dll !LIBHANDLE LoadLibrary "y" $(!STF_CWDDIR)sqlsetup.dll !DLLSQL exit [FreeSetupLibrary] FreeLibrary $(!LIBHANDLE) FreeLibrary $(!DLLSQL) exit [LoadPerfLibrary] LoadLibrary "w" $(!SQLPath)"\"$(!DLLs)"\"sqlctrs.dll !PERFHANDLE exit [FreePerfLibrary] FreeLibrary $(!PERFHANDLE) exit [Install-Shutdown] LibraryProcedure STATUS,$(!DLLSQL),ShutdownSystem "\\"$(!ComputerName) exit [LanguageID] ENG [LanguageTextENG] "English (American)" [LanguageVar] STF_LANGUAGE = "" ? $(!LIBHANDLE) GetLanguage LanguageList = ^(LanguageID, 1) [DriveTypeVar] DriveType = "" ? $(!LIBHANDLE) GetTypeOfDrive $(DriveToExamine) [DetectDirectory] DirectoryThere = "-" ? $(!LIBHANDLE) DoesDirExist $(DEST) [NETIsValidName] LibraryProcedure STATUS,$(!LIBHANDLE),NetNameCheck $(Name) exit [CreateSQLDirectory] CreateDir $(!DestPath) exit [InstallOneOffFileCopy] AddSectionFilesToCopyList "OneOffCopyFile", $(!SrcCopyPath), $(!DestCopyPath) CopyFilesInCopyList exit [CopyLangFiles] CreateDir $(!DestPath) AddSectionFilesToCopyList "LocaleFile", $(!SrcPath), $(!DestPath) CopyFilesInCopyList exit [InstallBaseInstallFiles] ifstr(i) $(GetCost) == "" CreateDir $(!MasterDBPath) CreateDir $(!SQLPath) CreateDir $(!SQLPath)"\"$(!Binaries) CreateDir $(!SQLPath)"\"$(!DOSBinaries) CreateDir $(!SQLPath)"\"$(!OS2Binaries) CreateDir $(!SQLPath)"\"$(!InstallDir) CreateDir $(!SQLPath)"\"$(!DLLs) CreateDir $(!SQLPath)"\"$(!CharSets) CreateDir $(!SQLPath)"\"$(!LogDir) CreateDir $(!SQLPath)"\"$(!CharSets)"\"$(!CP437Dir) CreateDir $(!SQLPath)"\"$(!CharSets)"\"$(!CP850Dir) CreateDir $(!SQLPath)"\"$(!CharSets)"\"$(!ISO1Dir) endif AddSectionFilesToCopyList "BaseInstallExes", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) AddSectionFilesToCopyList "DOSInstallExes", $(!STF_CWDDIR), $(!SQLPath)"\"$(!DOSBinaries) AddSectionFilesToCopyList "OS2InstallExes", $(!STF_CWDDIR), $(!SQLPath)"\"$(!OS2Binaries) AddSectionFilesToCopyList "BaseInstallDLLs", $(!STF_CWDDIR), $(!SQLPath)"\"$(!DLLs) AddSectionFilesToCopyList "ClientDLLs", $(!STF_CWDDIR), $(!SQLPath)"\"$(!DLLs) AddSectionFilesToCopyList "ClientDLLs", $(!STF_CWDDIR), $(!SystemDirectory) AddSectionFilesToCopyList "InstallDLLs", $(!SQLPath)"\"$(!DLLs), $(!SystemDirectory) AddSectionFilesToCopyList "InstallExes", $(!SQLPath)"\"$(!Binaries), $(!SystemDirectory) AddSectionFilesToCopyList "BaseInstall", $(!STF_CWDDIR), $(!SQLPath)"\"$(!InstallDir) AddSectionFilesToCopyList "Charset437", $(!STF_CWDDIR), $(!SQLPath)"\"$(!CharSets)"\"$(!CP437Dir) AddSectionFilesToCopyList "Charset850", $(!STF_CWDDIR), $(!SQLPath)"\"$(!CharSets)"\"$(!CP850Dir) AddSectionFilesToCopyList "CharsetISO", $(!STF_CWDDIR), $(!SQLPath)"\"$(!CharSets)"\"$(!ISO1Dir) ifstr(i) $(!Locale) != "" ifstr(i) $(GetCost) == "" CreateDir $(!SQLPath)"\"$(!LocalesDir)"\"$(!Locale) endif AddSectionFilesToCopyList "LocaleFile", $(!STF_CWDDIR), $(!SQLPath)"\"$(!LocalesDir)"\"$(!Locale) endif AddSectionFilesToCopyList "Util1", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) AddSectionFilesToCopyList "Util2", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) AddSectionFilesToCopyList "Util3", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) AddSectionFilesToCopyList "Util3Help", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) AddSectionFilesToCopyList "Util4", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) AddSectionFilesToCopyList "Util4Help", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) AddSectionFilesToCopyList "Util5", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) AddSectionFilesToCopyList "Util6", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) ifstr(i) $(GetCost) == "" CopyFilesInCopyList else GetCopyListSize "SpaceCost","BYTES" ClearCopyList endif exit [InstallUtilFiles] ifstr(i) $(GetCost) == "" CreateDir $(!SQLPath) CreateDir $(!SQLPath)"\"$(!DLLs) CreateDir $(!SQLPath)"\"$(!Binaries) endif ifcontains(i) $(!BCP) in $(!UtilFiles) AddSectionFilesToCopyList "Util1", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) endif ifcontains(i) $(!ISQL) in $(!UtilFiles) AddSectionFilesToCopyList "Util2", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) endif ifcontains(i) $(!SQLAdminEXE) in $(!UtilFiles) AddSectionFilesToCopyList "Util3", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) AddSectionFilesToCopyList "Util3Help", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) endif ifcontains(i) $(!SQLObjectEXE) in $(!UtilFiles) AddSectionFilesToCopyList "Util4", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) AddSectionFilesToCopyList "Util4Help", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) endif ifcontains(i) $(!SQLSecManEXE) in $(!UtilFiles) AddSectionFilesToCopyList "Util5", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) endif ifcontains(i) $(!ReadPipe) in $(!UtilFiles) AddSectionFilesToCopyList "Util6", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) endif AddSectionFilesToCopyList "UtilDLLs", $(!STF_CWDDIR), $(!SQLPath)"\"$(!DLLs) AddSectionFilesToCopyList "ClientDLLs", $(!STF_CWDDIR), $(!SQLPath)"\"$(!DLLs) AddSectionFilesToCopyList "ClientDLLs", $(!STF_CWDDIR), $(!SystemDirectory) AddSectionFilesToCopyList "UtilHelp", $(!STF_CWDDIR), $(!SQLPath)"\"$(!Binaries) ifstr(i) $(GetCost) == "" CopyFilesInCopyList else GetCopyListSize "SpaceCost","BYTES" ClearCopyList endif exit [OneOffCopyFile] 5, $(!OneOffFile) [ReadUnusedDrives] !STF_UNUSEDDRIVES = {} ? $(!LIBHANDLE) GetUnusedDrives [GeneralConstants] Radio1 = "1" Radio2 = "2" Radio3 = "3" Radio4 = "4" Radio5 = "5" Radio6 = "6" Radio7 = "7" Radio8 = "8" Radio9 = "9" Chosen = "ON" NotChosen = "OFF" InstallDefault = $(Radio3) SetupOption = $(InstallDefault) [UiVars] SetupLang = "ENG" BuildVersion = "NT Release 1.0" ProductVersion = "NT 4.2" OS2 = "OS/2" WindowsNT = "WINDOWS/NT" PurgeRows = "1" OneNextRow = "2" LoginSleepPeriod= "5" LoginSleepRetrys= "5" Primary = "C:" SQLServerService= "SQLServer" SQLMonitorService="SQLMonitor" TCPIPService = "TCPIP" LANManService = "LanmanServer" LANManWksta = "LanmanWorkstation" AdministratorsGroup = {"SYSTEM","Administrators"} SystemGroup = "SYSTEM" DefGuest = "guest" DOSBinaries = "BIN" OS2Binaries = "BINP" Binaries = "BINN" DataDir = "DATA" DLLs = "DLL" UpgradeDirPath = "CHARSETS\CP850" CharSets = "CHARSETS" InstallDir = "INSTALL" LogDir = "LOG" DataDir = "DATA" SystemDir = "SYSTEM32" ExtendedSpExDir = "EXTENDSP" IncludeDir = "INCLUDE" LibDir = "LIB" CP437Dir = "CP437" CP850Dir = "CP850" ISO1Dir = "CPISO" LocalesDir = "LOCALES" ErrorLog = "ERRORLOG" BuildMaster = "BLDMASTR.EXE" CharSet = "CHARSET.EXE" BCP = "BCP.EXE" SetupEXE = "SETUP.EXE" ConsoleEXE = "CONSOLE.EXE" StopLite = "SQLMGR.EXE" NTWDBVer = "NTWDBVER.EXE" ReadPipe = "READPIPE.EXE" Upgrade = "UPGRADE.EXE" LangInst = "LANGINST.EXE" PerfMonEXE = "PERFMON.EXE" SQLAdminEXE = "SQLADMIN.EXE" SQLObjectEXE = "SQLOBJ.EXE" SQLTransferEXE = "SQLXFR.EXE" SQLSecManEXE = "SQSECMGR.EXE" ISQLWEXE = "ISQLW.EXE" SQLMonitorEXE = "SQLMONTR.EXE" SQLTapeUtil = "WTAPEDIR.EXE" SQLCtrsPMC = "SQLCTRS.PMC" SQLCtrs = "SQLCTRS" SQLCtrsDLL = "SQLCTRS.DLL" DefLangFile = "SERVER.LOC" EventCtrsDLL = "EVNTCTRS.DLL" ISQL = "ISQL.EXE" ISQLOut = "ISQL.OUT" HelpSQLHLP = "HELPSQL.HLP" HelpAdmin = "SQLADMIN.HLP" HelpObject = "SQLOBJ.HLP" HelpSQLNTSetup = "SQLSETUP.HLP" WinHelpEXE = "WINHLP32.EXE" SQLEventDLL = "SQLEVENT.DLL" MasterDB = "MASTER.DAT" DefMasterDB = $(!MasterDB) SQLServer = "SQLSERVR.EXE" SQLOut = "SQLSERVR.OUT" UpgradeOut = "UPGRADE.OUT" LangInstOut = "LANGINST.OUT" CharSetOut = "CHARSET.OUT" BuildMasterOut = "BLDMASTR.OUT" InstConfig = "CONFIG.SQL" InstNT = "INSTNT.SQL" DropAll = "DROPALL.SQL" InstMstr = "INSTMSTR.SQL" InstModl = "INSTMODL.SQL" InstAdmin2 = "ADMIN2.SQL" UnAdmin = "UNADMIN.SQL" InstObject = "OBJECT2.SQL" UnObject = "UNOBJ.SQL" TempSp = "TEMPSP.SQL" InstCat = "INSTCAT.SQL" HelpSQL = "HELPSQL.SQL" InstPubs = "INSTPUBS.SQL" UpdateSortOrder1= "update master.dbo.sysconfigures set value = " UpdateSortOrder2= " where config = 123" SQLGo = "go" SQLReconfigure = "reconfigure with override" SQLShutdown = "shutdown with nowait" SQLAddLogin = "sp_addlogin " SQLAllowUpdatesOn= "sp_configure 'allow_updates', 1" SQLUseMaster = "use master" SQLPhysName1 = "update master.dbo.sysdevices set phyname='" SQLPhysName2 = "' where name = 'master'" SQLRecoveryInterval="sp_configure 'recovery interval', 5" SQLAllowUpdatesOff= "sp_configure 'allow updates', 0" SQLUserConns = "sp_configure 'user connections', 10" SQLMemory = "sp_configure 'memory', " SQLOpenDBs = "sp_configure 'open databases', 20" SQLLocks = "sp_configure 'locks', 5000" SQLOpenObjs = "sp_configure 'open objects', 500" SQLProcCache = "sp_configure 'procedure cache', 20" SQLFillFactor = "sp_configure 'fill factor', 0" SQLTimeSlice = "sp_configure 'time slice', 100" SQLDBSize = "sp_configure 'database size', 2" SQLMediaRetent = "sp_configure 'media retention', 0" SQLRecoveryFlags= "sp_configure 'recovery flags', 0" SQLNameServer1 = "sp_addserver " SQLNameServer2 = ",local" SQLSetLang = "sp_configure 'default language', 1" SQLspWho = "select name from master.dbo.sysobjects where name like 'sp_who' " SQLSPTValues = "select name from master.dbo.sysobjects where name like 'spt_values' " SQLAddXProc = "select name from master.dbo.sysobjects where name like 'sp_addextendedproc' " SQLCtrsUsers = "select name from master.dbo.sysobjects where name like 'MS_sqlctrs_users' " SQLInfoExt = "select name from master.dbo.sysobjects where name like 'spt_datatype_info_ext' " SQLSpecCols = "select name from master.dbo.sysobjects where name like 'sp_special_columns' " SQLAdmin1 = "select name from master.dbo.sysobjects where name like 'sp_MSdevice_list'" SQLAdmin2 = "select name from master.dbo.sysobjects where name like 'sp_MSAdmin_version'" SQLObject1 = "select name from master.dbo.sysobjects where name like 'sp_MSuser_info'" SQLObject2 = "select name from master.dbo.sysobjects where name like 'sp_MSOM_version'" SQLHelpSQL = "select name from master.dbo.sysobjects where name like 'sp_helpsql'" SQLCheckVersion = "select value from master.dbo.sysconfigures where config = 122" SQLGetMasterOS = "select name from master.dbo.spt_values where low = 2048" SQLCheckRO = "select count(*) from master.dbo.sysdatabases where status & 1024 > 0" SQLCheckMasterSpace="declare @dbsize int "$(!LF)+ "declare @dbreserve int "$(!LF)+ "select @dbsize = (sum(size) * 2048) / 1024 from master.dbo.sysusages where dbid = 1 and (segmap = 7 or segmap = 3) "$(!LF)+ "select @dbreserve = (sum(reserved) * 2048) / 1024 from master.dbo.sysindexes where indid in (0, 1, 255) "$(!LF)+ "select @dbsize - @dbreserve"$(!LF)+ "go " SQLCheckSuspect = "select count(*) from master.dbo.sysdatabases where status & 256 > 0" SQLGetConfOpen = "select value from master.dbo.syscurconfigs where config=105" SQLGetNumDBs = "select count(*) from master.dbo.sysdatabases" SQLUpgObjects = "declare @needed int"$(!LF)+ "declare @got int"$(!LF)+ "declare @databases int"$(!LF)+ "select @got = value from master..syscurconfigs where config=107"$(!LF)+ "select @databases = count(*) from master..sysdatabases"$(!LF)+ "select @needed = 13 + 13 * @databases +20"$(!LF)+ "if(@needed > @got and @needed > 100)"$(!LF)+ "begin exec sp_configure 'open objects',@needed"$(!LF)+ "reconfigure with override end" SQLUpgConfigMem = "declare @cfgmem int"$(!LF)+ "declare @numusers int"$(!LF)+ "declare @opendb float"$(!LF)+ "declare @locks float"$(!LF)+ "declare @openobj float"$(!LF)+ "declare @memneed int"$(!LF)+ "select @cfgmem= value from master.dbo.sysconfigures where config=104"$(!LF)+ "select @numusers= 19 * value from master.dbo.sysconfigures where config=103"$(!LF)+ "select @opendb= .5 * value from master.dbo.sysconfigures where config=105"$(!LF)+ "select @openobj= .04 * value from master.dbo.sysconfigures where config=107"$(!LF)+ "select @locks= .0156 * value from master.dbo.sysconfigures where config=106"$(!LF)+ "select @memneed = 2300 + @numusers + @opendb + @openobj + @locks"$(!LF)+ "if @memneed < 2800 select @memneed = 2800"$(!LF)+ "if @memneed > @cfgmem begin"$(!LF)+ "exec sp_configure 'memory',@memneed"$(!LF)+ "reconfigure with override end" InstallSetInstld= {"1","3"} InstallSet = {"4","5","6","7","8","9","10"} CompleteInstSet = {"1","2","3","4","5","6","7","8","9","10"} SupportedRemoteShares = {"C","D","E","F","G","H","I","J","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"} NetLibPipes = "SSNMPNTW" NetLibSPX = "SSMSSPXN" NetLibVines = "SSMSVINN" NetLibTCPIP = "SSMSSOCN" ClientLibPipes = "DBNMPNTW" ClientLibSPX = "DBMSSPXN" ClientLibVine = "DBMSVINN" ClientLibTCPIP = "DBMSSOCN" DBLibDLL = "NTWDBLIB.DLL" DefTCPIPSocket = "1433" DefMonTCPIPSocket = "1434" ConsolePipe = "\\.\pipe\sql\console" MonitorPipe = "\\.\pipe\winsql\backup" SvrPipe = "\\.\pipe\sql\query" MonNetLibPipeCon= "?1:\\?1\pipe\winsql\backup" MonNetLibSPXCon = "?1:?1_mon" MonNetLibVineCon= "?1@?2:?1_mon?2" MonNetLibTCPIPCon= "?1,?2:?1,"$(!DefMonTCPIPSocket) DefSvcMgrServices={$(!SQLServerService),$(!SQLMonitorService)} DefScriptList = {$(!InstPubs),$(!InstAdmin2),$(!InstObject),$(!HelpSQL)} NetLibDefList = {$(NetLibPipes)} NetLibList = {$(NetLibPipes)} AddlScripts = {} NetSelList = {} ConfigList = {$(SQLAllowUpdatesOn)$(!LF),$(!SQLGo)$(!LF), + $(!SQLReconfigure)$(!LF),$(!SQLGo)$(!LF), + $(!SQLUseMaster)$(!LF),$(!SQLGo)$(!LF), + $(!SQLRecoveryInterval)$(!LF),$(!SQLGo)$(!LF), + $(!SQLOpenDBs)$(!LF), $(!SQLGo)$(!LF), + $(!SQLLocks)$(!LF), $(!SQLGo)$(!LF), + $(!SQLOpenObjs)$(!LF), $(!SQLGo)$(!LF), + $(!SQLProcCache)$(!LF), $(!SQLGo)$(!LF), + $(!SQLFillFactor)$(!LF), $(!SQLGo)$(!LF), + $(!SQLTimeSlice)$(!LF), $(!SQLGo)$(!LF), + $(!SQLDBSize)$(!LF), $(!SQLGo)$(!LF), + $(!SQLMediaRetent)$(!LF), $(!SQLGo)$(!LF), + $(!SQLRecoveryFlags)$(!LF), $(!SQLGo)$(!LF)} DelDLLList = {"opendsnt.dll","ssnmpntw.dll","ssmssocn.dll","sqlevent.dll","charset.exe"} ClientDLLList = {$(!ClientLibPipes)".DLL",$(!ClientLibSPX)".DLL",$(!ClientLibVine)".DLL",$(!ClientLibTCPIP)".DLL",$(!DBLibDLL)} CheckInstDefList= {$(!SQLspWho),$(!SQLSPTValues),$(!SQLAddXProc),$(!SQLCtrsUsers),$(!SQLInfoExt),+ $(!SQLSpecCols)} CheckInstDefRetList= {"sp_who","spt_values","sp_addextendedproc","MS_sqlctrs_users",+ "spt_datatype_info_ext","sp_special_columns"} NonCriticalCheck= {"sp_MSdevice_list","sp_MSAdmin_version","sp_MSuser_info","sp_MSOM_version","sp_helpsql"} OptionalScriptRetList= {"sp_MSdevice_list","sp_MSuser_info","sp_helpsql"} OptionalScriptList={$(!SQLAdmin1),$(!SQLObject1),$(!SQLHelpSQL)} CheckInstList = $(!CheckInstDefList) CheckInstRetList= $(!CheckInstDefRetList) SpAdminChk1 = "sp_MSdevice_list" SpAdminChk2 = "sp_MSAdmin_version" SpObjectChk1 = "sp_MSuser_info" SpObjectChk2 = "sp_MSOM_version" Master = "master" RetHelpSQL = "sp_helpsql" STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir STF_UNUSEDDRIVES = {} ? $(!LIBHANDLE) GetUnusedDrives MsgText = "" InstallType = "" DlgHandle = "" TheCharSet = "" TheCharSetPath = "" TheSortFile = "" TheSortConfigValue= "" ComputerName = "" Registration = "" Owner = "" SALogin = "sa" SAPassword = "" YesNoQ = "" CreateSQLPath = "" OrgName = "" FullName = "" SingleUserMode = "-m" MachineName = "" MasterDBPath = "" DefMasterPath = "DATA" CreateMasterPath= "NO" UserDefined = "UU" UserProvided = "PP" DefSQLStub = "SQL" DefNETPath = "A:\" CreateSQLPath = "NO" MasterExistCheck= "NO" DefMasterSize = "15" SQLMasterSize = "" DefMasterSize = "15" MinMasterSize = "15" NETPath = "" CreateNETPath = "NO" DefSocketNumber = "" DefTapeDev = "\DEVICE\Tape0" DefSecMap1 = "\" DefSecMap2 = "-" DefSecMap3 = " " SecTokDomainSep = "\" SecTokSpace = " " CopyMailInfo = "" RegTypeString = "REG_SZ" RegTypeExpString= "REG_EXPAND_SZ" RegTypeMulti = "REG_MULTI_SZ" RegTypeDWord = "REG_DWORD" RegValRegOwner = "RegisteredOwner" RegValRegOrg = "RegisteredOrganization" RegValSoftType = "SoftwareType" RegValSerialNumber= "SerialNumber" RegValVersion = "CurrentVersion" RegValBuild = "CurrentBuild" RegValListenOn = "ListenOn" RegValConsole = "Console" RegValTapeWait = "Tapeloadwaittime" RegValParameter = "SQLArg" RegValSQLPath = "SQLPath" RegValSvcMgrVerify= "Action Verify" RegValSvcMgrSvcs= "Services" RegValSvcMgrRemote= "Remote" RegValSvcMgrDefSvc= "DefaultSvc" RegSQLSysType = "System" RegSWMS = "SOFTWARE\Microsoft" RegEventAppLog = "SYSTEM\CurrentControlSet\Services\EventLog\Application" RegLMSvrParams = "SYSTEM\CurrentControlSet\Services\LanmanServer" RegTCPIPService = "SYSTEM\CurrentControlSet\Services\Tcpip" RegSCMSQLServer = "SYSTEM\CurrentControlSet\Services" RegSystemGrpOrder= "SYSTEM\CurrentControlSet\Control\ServiceGroupOrder" RegSystemPaths = "SYSTEM\CurrentControlSet\Control\Session Manager\Environment" RegMManagement = "SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" RegPriorityCtrl = "SYSTEM\CurrentControlSet\Control\PriorityControl" RegLMSize = "Size" RegMMSystemCache= "LargeSystemCache" RegUserPaths = "Environment" RegSysDOSDev = "DOS Devices" RegSysPriority = "Win32PrioritySeparation" RegValGrpOrderList= "List" RegValTape0 = "Tape0" RegValELogMsgFile= "EventMessageFile" RegValELogTypes = "TypesSupported" RegValELogCMsgFile= "CategoryMessageFile" RegValELogCCount= "CategoryCount" RegValLMSvrAnno = "Lmannounce" RegValSysPath = "Path" RegSQLServer = "SOFTWARE\Microsoft\SQLServer" RegSQLServerServer= "SOFTWARE\Microsoft\SQLServer\Server" RegSQLClient = "SOFTWARE\Microsoft\SQLServer\Client" RegSQLMonitor = "SOFTWARE\Microsoft\SQLServer\SQLMonitor" RegSQLAdmin = "SQL Administrator" RegISQLW = "ISQL/w" RegSQLOM = "SQL Object Manager" RegSecMan = "SQL Security Manager" RegSQLSetup = "SOFTWARE\Microsoft\SQLServer\Setup" RegSQLSetupKey = "Setup" RegSecLoginMode = "LoginMode" RegValRealTime = "RealTime" RegValSMPStat = "SMPStat" RegValSqlMailPair = "SQLMAPI,startmail" RegValMailEnabled = "StartupHandlers" MSMailUser = "" MSMailPwd = "" RegValMSMailUser= "MailAccountName" RegValMSMailPwd = "MailPassword" RegSecDefAccount= "DefaultLogin" RegSecDefDomain = "DefaultDomain" RegSecAuditLevel= "AuditLevel" RegSecHostname = "SetHostname" RegSecMap1 = "Map_" RegSecMap2 = "Map#" RegSecMap3 = "Map$" RegNTPerfLib = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib" RegSQLWinNT = "SOFTWARE\Microsoft\Windows NT\CurrentVersion" RegSQLSvcMgr = "SQL Service Manager" RegSQLDBLib = "DB-Lib" RegSQLConnectTo = "ConnectTo" RegSQLServerVer = "CurrentVersion" RegSQLServerSvr = "Server" RegSQLSvrParam = "Parameters" RegSQLPerformance= "Performance" RegSvcStart = "Start" RegMonAutoRestart= "AutoRestart" RegMonBackupTime= "BackupTime" RegMonTime= "MonitorTime" RegMonTableSize = "MonitorTableSize" RegMonMonitor = "Monitor" RegMonTimeout = "SqlTimeout" RegMonServer = "Server" RegMonPassword = "Password" RegMonBackup = "Backup" RegMonLogsize = "Logsize" RegMonBackupRetry = "BackupRetryAttempts" RegValDSQUERY = "DSQUERY" RegValAutoStart = "10" RegValBackupTime= "15" RegValBackupRetry = "3" RegValTime= "60" RegValTableSize = "1000" RegValMntr = "OFF" RegValTimeout = "360" RegValServer = "" RegValBackup = "ON" RegValLogsize = "4096" RegValLibrary = "Library" RegValPerfSync = "Synchronous" RegValOpen = "Open" RegValCollect = "Collect" RegValClose = "Close" RegValFirstCntr = "FirstCounter" RegValFirstHelp = "FirstHelp" RegValLastCntr = "Last Counter" RegValLastHelp = "Last Help" RegValLoginTO = "LoginTimeOut" RegValQueryTO = "QueryTimeOut" RegValCounters = "Counters" RegValHelp = "Help" RegValSystemRoot= "SystemRoot" RegValANSIToOEM = "AutoAnsiToOem" RegValTCPTries = "TcpKeepTries" RegValTCPCnt = "TcpKeepCnt" RegValUseIntl = "UseIntlSettings" DefPerfLangID = "009" SystemMemory = "" ? $(!LIBHANDLE) GetMemorySize MinSystemMemory = 12000 MinOSVersion = "3.10.495.0" StandAloneRelease= "20971545" SQLReleaseNumber= "4227071" ;************************************************************************* ;************************************************************************* ;* INTERNATIONALIZABLE CODE ;* This file should be appended to setup.src to make setup.inf ;************************************************************************* ;************************************************************************* UpgMemNT42 = "750" UpgMem42 = "750" UpgMem11 = "3500" InstScriptsList = {$(!InstMstr),$(!InstNT),$(!InstModl),$(!InstCat),$(!InstConfig)} UpgScriptsNT42 = {$(!DropAll),$(!UnAdmin),$(!UnObject),$(!InstMstr),$(!InstNT),$(!InstCat)} UpgScripts42 = {$(!DropAll),$(!UnAdmin),$(!UnObject),$(!InstMstr),$(!InstNT),$(!InstCat)} UpgScripts11 = {$(!DropAll),$(!UnAdmin),$(!UnObject),$(!InstMstr),$(!InstNT),$(!InstModl),$(!InstCat)} ANSItoOEMDef = "OFF" Setup_Title = "SQL Server Setup for Windows NT" SQLProgmanGrpName="SQL Server for Windows NT" SQLUtilsGrpName = "SQL Server Utilities for Windows NT" SQLPubs = "select name from master.dbo.sysdatabases where name like 'pubs'" Pubs = "pubs" PleaseWait = "You may continue with another task..." MasterDBSize = " + master size" CharSetSelList = {"850 Multilingual (Default)","cp850", + "437 US English", "cp437", + "ISO Character Set", "cpISO"} CharSetUserSelList = {"850 Multilingual (Default)","cp850", + "437 US English","cp437", + "ISO Character Set", "cpISO", + "Custom",$(!UserDefined)} TCPIPName = "TCP/IP Sockets" ValidNetLibs = {$(!NetLibPipes),$(!NetLibSPX),$(!NetLibTCPIP),$(!NetLibVines),$(!UserDefined),$(!UserProvided)} DefNetworkSelList= {"NWLink IPX/SPX",$(!NetLibSPX),"0",$(!TCPIPName),$(!NetLibTCPIP),"1",+ "Banyan VINES",$(!NetLibVines),"2"} SecStrNotUsed = "(not used)" SecStrDomSep = "(domain separator '\')" SecStrSpace = "(space)" DefSecurityTokens= {$(!SecStrNotUsed),$(!SecStrDomSep),$(!SecStrSpace),"-",".","'",+ "!","@","%","^","&"} UpgErrorMastSpace="There is insufficient space in the master database"$(!LF) UpgErrorROs = "Read Only databases are present"$(!LF) UpgErrorSuspect = "There are suspect databases"$(!LF) UpgErrorNumDBs = "There are too many databases"$(!LF) DefUserProvNet = {"User provided",$(!UserDefined),"3"} NetworkDefList = {"Named Pipes",$(NetLibPipes),"0"} Sort850SelList = {"Binary order","cp850bin.850","40", + "Dictionary order, case-sensitive","diction.850","41", + "Dictionary order, case-insensitive","nocase.850","42",+ "Dictionary order, case-insensitive, uppercase preference","nocasepr.850","43", + "Dictionary order, case-insensitive, accent-insensitive.","noaccent.850","44", + "Strict compatibility with Version 1.x case-insensitive databases","nocase34.850","49", + "Alternate dictionary order, case-sensitive","altdict.850","55",+ "Alternate dictionary order, case-insensitive","altnocs.850","61",+ "Alternate dictionary order, case-insensitive, uppercase preference","altnocsp.850","56",+ "Alternate dictionary order, case-insensitive, accent-insensitive","altnoacc.850","57",+ "Scandinavian dictionary order, case-sensitive","scandict.850","59",+ "Scandinavian dictionary order, case-insensitive, uppercase preference","scannocp.850","58",+ "Custom",$(!UserDefined),""} Sort437SelList= {"Binary order","cp437bin.437","30", + "Dictionary order, case-sensitive","diction.437","31", + "Dictionary order, case-insensitive","nocase.437","32", + "Dictionary order, case-insensitive, uppercase preference","nocasepr.437","33", + "Dictionary order, case-insensitive, accent-insensitive.","noaccent.437","34",+ "Custom",$(!UserDefined),""} SortISOSelList= {"Binary order","iso_1bin.iso","50", + "Dictionary order, case-sensitive","diction.iso","51", + "Dictionary order, case-insensitive","nocase.iso","52",+ "Dictionary order, case-insensitive, uppercase preference","nocasepr.iso","53", + "Dictionary order, case-insensitive, accent-insensitive.","noaccent.iso","54",+ "Custom",$(!UserDefined),""} [CreateSQLProgmanItems] set SQLGroup = $(!SQLProgmanGrpName) CreateProgManGroup $(SQLGroup),"","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Setup","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Service Manager","COMMON" RemoveProgmanItem $(SQLGroup),"ISQL/w","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Tape Utility","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Client Configuration Utility","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Security Manager","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Transfer Manager","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Administrator Win32","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Object Manager Win32","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Performance","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Help","COMMON" RemoveProgmanItem $(SQLGroup),"Release Notes","COMMON" CreateProgmanItem $(SQLGroup),"SQL Setup",$(!SQLPath)"\"$(!Binaries)"\"$(!SetupEXE),$(!SQLPath)"\"$(!Binaries)"\"$(!SetupEXE),0,"COMMON" CreateProgmanItem $(SQLGroup),"SQL Service Manager",$(!SQLPath)"\"$(!Binaries)"\"$(!StopLite),$(!SQLPath)"\"$(!Binaries)"\"$(!StopLite),0,"COMMON" CreateProgmanItem $(SQLGroup),"SQL Tape Utility",$(!SQLPath)"\"$(!Binaries)"\"$(!SQLTapeUtil),$(!SQLPath)"\"$(!Binaries)"\"$(!SQLTapeUtil),0,"COMMON" CreateProgmanItem $(SQLGroup),"ISQL/w",$(!SQLPath)"\"$(!Binaries)"\"$(!ISQLWEXE),$(!SQLPath)"\"$(!Binaries)"\"$(!ISQLWEXE),0,"COMMON" CreateProgmanItem $(SQLGroup),"SQL Security Manager",$(!SQLPath)"\"$(!Binaries)"\"$(!SQLSecManEXE),$(!SQLPath)"\"$(!Binaries)"\"$(!SQLSecManEXE),0,"COMMON" CreateProgmanItem $(SQLGroup),"SQL Client Configuration Utility",$(!SQLPath)"\"$(!Binaries)"\"$(!NTWDBVer),$(!SQLPath)"\"$(!Binaries)"\"$(!NTWDBVer),0,"COMMON" CreateProgmanItem $(SQLGroup),"SQL Transfer Manager",$(!SQLPath)"\"$(!Binaries)"\"$(!SQLTransferEXE),$(!SQLPath)"\"$(!Binaries)"\"$(!SQLTransferEXE),0,"COMMON" CreateProgmanItem $(SQLGroup),"SQL Administrator Win32",$(!SQLPath)"\"$(!Binaries)"\"$(!SQLAdminEXE),$(!SQLPath)"\"$(!Binaries)"\"$(!SQLAdminEXE),0,"COMMON" CreateProgmanItem $(SQLGroup),"SQL Object Manager Win32",$(!SQLPath)"\"$(!Binaries)"\"$(!SQLObjectEXE),$(!SQLPath)"\"$(!Binaries)"\"$(!SQLObjectEXE),0,"COMMON" CreateProgmanItem $(SQLGroup),"SQL Performance",$(!PerfMonEXE)" "$(!SQLPath)"\"$(!Binaries)"\"$(!SQLCtrsPMC),$(!PerfMonEXE),0,"COMMON" CreateProgmanItem $(SQLGroup),"SQL Help",$(!STF_WINDOWSSYSPATH)"\"$(!WinHelpEXE)" "$(!SQLPath)"\"$(!Binaries)"\"$(!HelpSQLHLP),$(!STF_WINDOWSSYSPATH)"\"$(!WinHelpEXE),0,"COMMON" CreateProgmanItem $(SQLGroup),"Release Notes","WINHELP.EXE "$(!SQLPath)"\"$(!InstallDir)"\README.HLP","PROGMAN.EXE",29,"COMMON" exit [NukeSQLProgmanItems] set SQLGroup = $(!SQLProgmanGrpName) RemoveProgmanItem $(SQLGroup),"SQL Setup","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Service Manager","COMMON" RemoveProgmanItem $(SQLGroup),"ISQL/w","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Tape Utility","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Security Manager","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Client Configuration Utility","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Transfer Manager","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Administrator Win32","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Object Manager Win32","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Performance","COMMON" RemoveProgmanItem $(SQLGroup),"SQL Help","COMMON" RemoveProgmanItem $(SQLGroup),"Release Notes","COMMON" RemoveProgManGroup $(SQLGroup),"COMMON" exit [CreateUtilProgmanItems] ifstr(i) $(!UserType) == "Admin" set SQLGroup = $(!SQLProgmanGrpName) set ProgmanType = "COMMON" else set SQLGroup = $(!SQLUtilsGrpName) set ProgmanType = "VITAL" endif CreateProgManGroup $(SQLGroup),"",$(ProgmanType) RemoveProgmanItem $(SQLGroup),"SQL Help",$(ProgmanType) CreateProgmanItem $(SQLGroup),"SQL Help",$(!STF_WINDOWSSYSPATH)"\"$(!WinHelpEXE)" "$(!SQLPath)"\"$(!Binaries)"\"$(!HelpSQLHLP),$(!STF_WINDOWSSYSPATH)"\"$(!WinHelpEXE),0,$(ProgmanType) ifcontains(i) $(!ReadPipe) in $(!UtilFiles) CreateProgManGroup $(SQLGroup),"",$(ProgmanType) RemoveProgmanItem $(SQLGroup),"SQL Client Configuration Utility",$(ProgmanType) CreateProgmanItem $(SQLGroup),"SQL Client Configuration Utility",$(!SQLPath)"\"$(!Binaries)"\"$(!NTWDBVer),$(!SQLPath)"\"$(!Binaries)"\"$(!NTWDBVer),0,$(ProgmanType) endif ifcontains(i) $(!ISQL) in $(!UtilFiles) CreateProgManGroup $(SQLGroup),"",$(ProgmanType) RemoveProgmanItem $(SQLGroup),"ISQL/w",$(ProgmanType) CreateProgmanItem $(SQLGroup),"ISQL/w",$(!SQLPath)"\"$(!Binaries)"\"$(!ISQLWEXE),$(!SQLPath)"\"$(!Binaries)"\"$(!ISQLWEXE),0,$(ProgmanType) endif ifcontains(i) $(!SQLSecManEXE) in $(!UtilFiles) CreateProgManGroup $(SQLGroup),"",$(ProgmanType) RemoveProgmanItem $(SQLGroup),"SQL Security Manager",$(ProgmanType) CreateProgmanItem $(SQLGroup),"SQL Security Manager",$(!SQLPath)"\"$(!Binaries)"\"$(!SQLSecManEXE),$(!SQLPath)"\"$(!Binaries)"\"$(!SQLSecManEXE),0,$(ProgmanType) endif ifcontains(i) $(!SQLAdminEXE) in $(!UtilFiles) CreateProgManGroup $(SQLGroup),"",$(ProgmanType) RemoveProgmanItem $(SQLGroup),"SQL Administrator Win32",$(ProgmanType) CreateProgmanItem $(SQLGroup),"SQL Administrator Win32",$(!SQLPath)"\"$(!Binaries)"\"$(!SQLAdminEXE),$(!SQLPath)"\"$(!Binaries)"\"$(!SQLAdminEXE),0,$(ProgmanType) endif ifcontains(i) $(!SQLObjectEXE) in $(!UtilFiles) CreateProgManGroup $(SQLGroup),"",$(ProgmanType) RemoveProgmanItem $(SQLGroup),"SQL Object Manager Win32",$(ProgmanType) CreateProgmanItem $(SQLGroup),"SQL Object Manager Win32",$(!SQLPath)"\"$(!Binaries)"\"$(!SQLObjectEXE),$(!SQLPath)"\"$(!Binaries)"\"$(!SQLObjectEXE),0,$(ProgmanType) endif exit [Source Media Descriptions] 1 = "SQL Server Diskette #1" , TAGFILE = SRVDISK1 2 = "SQL Server Diskette #2" , TAGFILE = SRVDISK2 3 = "SQL Server Diskette #3" , TAGFILE = SRVDISK3 4 = "SQL Server Diskette #4" , TAGFILE = SRVDISK4 5 = "SQL Server Diskette #5" [QueryFullNameOrgNameDlgENG] DlgTemplate = "DLG_QUERY_FULLNAME_ORGNAME" !SQLDlgNames = {"@Caption",$(!Setup_Title), + "@HELPFILE",$(!HelpSQLNTSetup),+ "@DlgText","Please type your full name in the box below. "+ "You may also specify the name of your company if "+ "SQL Server will be used for business purposes."$(!LF)$(!LF)+ "Then choose Continue or press ENTER."$(!LF)$(!LF)+ "The information you enter will be used by Setup "+ "for subsequent installations of SQL Server.",+ "@Edit1Label","&Name:",+ "@Edit2Label","&Company:",+ "@Continue","C&ontinue",+ "@Exit","E&xit",+ "@EDITIN1",$(!FullName),+ "@EDITIN2",$(!OrgName),+ "@EDITLEN1","100",+ "@EDITLEN2","100"} [VerifyFullNameOrgNameDlgENG] DlgTemplate = "DLG_VERIFY_FULLNAME_ORGNAME" !SQLDlgNames = {"@Caption",$(!Setup_Title), + "@HELPFILE",$(!HelpSQLNTSetup),+ "@DlgText","Please verify that the information you typed is correct."$(!LF)$(!LF)+ "If you want to change the name or the company, "+ "choose Change. Otherwise, choose Continue.",+ "@Static1Label","Name:",+ "@Static1Text",$(!FullName),+ "@Static2Label","Company:",+ "@Static2Text",$(!OrgName),+ "@Continue","C&ontinue",+ "@Cancel","Chan&ge",+ "@Exit","E&xit"} [WelcomeDlgENG] DlgTemplate = "DLG_WELCOME" !SQLDlgNames = {"@Caption","Welcome", + "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","100",+ "@DlgText","Welcome to Setup. "$(!LF)$(!LF)+ "The Setup program for Microsoft SQL Server ("+ $(!ProductVersion)") installs SQL Server on your "+ "computer. Each Setup dialog box contains basic instructions for "+ "completing an installation. If you want additional "+ "information and instructions about a dialog box or an option, "+ "press the Help key, F1."$(!LF)$(!LF)+ "To learn how to use SQL Server Setup, press F1."$(!LF)$(!LF)+ "To install SQL Server on your computer now, choose Continue "+ "or press ENTER."$(!LF)$(!LF)+ "To exit Setup without installing SQL Server, press F3.",+ "@ABOUT","",+ "@Continue","C&ontinue",+ "@Help","&Help",+ "@Exit","E&xit"} [AlreadyInstalledDlgENG] DlgTemplate = "DLG_INSTALLED" !SQLDlgNames = {"@DlgText1","The Setup program has detected that SQL "+ "Server has already been installed by:",+ "@RegInfo",$(!Registration),+ "@DlgText2","It is acceptable for the legal owner to"+ " reinstall this product in order to update"+ " an existing copy or to replace a corrupted"+ " or missing version of the program.",+ "@DlgText3","You can continue to install the product, "+ "but you should be aware that this product "+ "is protected by copyright law and "+ "international treaties.",+ "@DlgText4","Unauthorized reproduction or distribution of"+ " this program or any portion of it may"+ " result in severe civil and criminal penalties"+ " and will be prosecuted to the maximum extent under the law.",+ "@Continue","C&ontinue",+ "@Cancel","E&xit"} [SetupDoneDlgENG] DlgTemplate = "DLG_RESTART" !SQLDlgNames = {"@Caption",$(!Setup_Title),+ "@DlgText",$(!MsgText)$(!LF)$(!LF)$(!AddlText),+ "@WindowsText","Exit to Windows NT",+ "@Windows","E&xit to Windows NT"} [PopupInfo] DlgType = "Info" DlgTemplate = "REBOOT" Caption = $(!Setup_Title) DlgText = $(tmpvar) [InstallTypeChoicesDlgENG] DlgTemplate = "DLG_INSTALLTYPE" !SQLDlgNames = {"@Caption",$(!Setup_Title)" - Options",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","103",+ "@DEFRADIO",$(!DefRadio), + "@DlgText1","Choose one of the following installation options:", + "@DlgText2","When you are ready to proceed with the installation, "+ "choose Continue. To cancel the installation, choose Exit.",+ "@RadioText1","&Install SQL Server and Utilities",+ "@RadioText2","&Upgrade SQL Server", + "@RadioText3","Install U&tilities Only",+ "@RadioText4","Change &Network Support",+ "@RadioText5","Add &Language",+ "@RadioText6","Rebuild &Master Database",+ "@RadioText7","Set Server O&ptions",+ "@RadioText8","Set &Security Options",+ "@RadioText9","&Remove SQL Server", + "@Remote","R&emote",+ "@Continue","C&ontinue",+ "@Help","&Help",+ "@Exit","E&xit"} [NewInstallOptionsDlgENG] DlgTemplate = "DLG_NEWINSTALL" !SQLDlgNames = {"@Caption",$(!Setup_Title)" Installation Options", + "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","104",+ "@DlgText1","Select or clear an option by clicking a check box.", + "@DlgText2","Select individual characteristics for an option by choosing the appropriate button.", + "@DlgCharSet","Character Set ...............................................................", + "@DlgSortOrder","Sort Order ....................................................................", + "@DlgSetText","Se&ts...", + "@DlgOrdersText","O&rders...", + "@DlgNetText","&Networks...", + "@DlgScriptText","Scri&pts...", + "@DlgSetupText","C&ontinue", + "@DlgBackText","&Back", + "@DlgExitText","E&xit", + "@DlgHelpText","&Help",+ "@DlgAddlNets","Additional Network Support ...........................................", + "@DlgOptScripts","Transact-SQL Scripts ....................................................", + "@AutoStart","&Auto Start SQL Server at boot time",+ "@AutoStartMonitor","Auto Start SQL &Monitor at boot time",+ "@Realtime","Start SQL Server in Realtime priorit&y"} [CharSetsDlgENG] DlgTemplate = "DLG_SINGLELIST" !SQLDlgNames = {"@Caption",$(!Setup_Title), + "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","105",+ "@OK","&OK","@Cancel","&Cancel","@Help","&Help",+ "@DEFLISTITEM",$(DefListItem),+ "@DlgText1","Select Character &Sets:"} [SortOrderDlgENG] DlgTemplate = "DLG_SINGLELIST" !SQLDlgNames = {"@Caption",$(!Setup_Title), + "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","106",+ "@DEFLISTITEM",$(DefListItem),+ "@OK","&OK","@Cancel","&Cancel","@Help","&Help",+ "@DlgText1","Sort O&rders:"} [NetworkDlgENG] DlgTemplate = "DLG_SINGLEMULTLIST" !SQLDlgNames = {"@Caption",$(!Setup_Title), + "@Checks","ON",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","107",+ "@OK","&OK","@Cancel","&Cancel","@Help","&Help",+ "@DlgText1","Install/Uninstall &Networks:",+ "@DlgText2","The network(s) you select/cancel will be in addition to Named Pipes."} [NetworkDlgExENG] DlgTemplate = "DLG_SINGLEMULTLISTBACK" !SQLDlgNames = {"@Caption",$(!Setup_Title),+ "@Checks","ON",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","107",+ "@OK","&OK","@Cancel","E&xit","@Help","&Help","@Back","&Back",+ "@DlgText1","Install/Uninstall &Networks:",+ "@DlgText2","The network(s) you select/cancel will be in addition to Named Pipes."} [ScriptsDlgENG] DlgTemplate = "DLG_THREECHECK" !SQLDlgNames = {"@Caption",$(!Setup_Title), + "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","109",+ "@DlgText1","Install Transact-SQL Scripts:",+ "@Check1","&Pubs Database", + "@Check2","SQL &Tools",+ "@Check3","SQL He&lp",+ "@Continue","&OK",+ "@Help","&Help",+ "@Exit","&Cancel"} [InstallCompletedENG] DlgTemplate = "DLG_REBREST" !SQLDlgNames = {"@Caption",$(!Setup_Title), + "@DlgText",$(!RebootType)$(!LF)$(!LF)+ "The system paths have been updated and will become effective "+ "when the system is rebooted. Be sure to remove any floppy disks from "+ "the computer before you reboot."$(!LF)$(!AddlText),+ "@WindowsText","Exit to Windows NT",+ "@Windows","E&xit to Windows NT",+ "@RebootText",$(!RebootText),+ "@Reboot","&Reboot"} [InstallCompletedLocalENG] !RebootText = "Reboot" [InstallCompletedRemoteENG] !RebootText = "Remote Reboot" [UpgradeWarning1ENG] !DlgTemplate = "DLG_THREEBUTS" !SQLDlgNames = {"@Caption","Upgrade SQL Server",+ "@DlgText1","It is advisable that you back up all your databases (including the master database) before upgrading your installation of Microsoft SQL Server.", + "@DlgText2","If you want to terminate the upgrade, choose Exit.",+ "@DlgText3","To proceed with the upgrade, choose Resume.",+ "@Continue","&Resume",+ "@Back","&Back",+ "@Exit","E&xit"} [UpgradeWarning2ENG] !DlgTemplate = "DLG_TWOBUTS" !SQLDlgNames = {"@Caption","Upgrade SQL Server",+ "@DlgText1","Are you sure you want to continue with upgrading SQL Server?", + "@DlgText2","If you want to terminate the upgrade, choose Exit.",+ "@DlgText3","To proceed with the upgrade, choose Resume.",+ "@Continue","&Resume",+ "@Exit","E&xit"} [RebuildOptionsDlg] DlgTemplate = "DLG_REBUILD" !SQLDlgNames = {"@Caption",$(!Setup_Title)" Rebuild Options", + "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","130",+ "@DlgText1","Select the options you want to use for rebuilding the MASTER device by selecting "+ "the appropriate button.",+ "@DlgCharSet","Character Set ...............................................................", + "@DlgSortOrder","Sort Order ....................................................................", + "@DlgOptScripts","Transact-SQL Scripts ....................................................",+ "@DlgSetText","Se&ts...", + "@DlgOrdersText","O&rders...", + "@DlgScriptText","Scri&pts...", + "@DlgSetupText","C&ontinue", + "@DlgBackText","&Back", + "@DlgExitText","E&xit", + "@DlgHelpText","&Help"} [RebuildDlgENG] DlgTemplate = "DLG_THREEBUTS" !SQLDlgNames = {"@Caption","Rebuild MASTER Database",+ "@DlgText1","Rebuilding the master database will result in the "+ "loss of previously created databases.", + "@DlgText2","If you want to terminate the rebuild, choose Exit.",+ "@DlgText3","To proceed with the rebuild, choose Resume.",+ "@Continue","&Resume",+ "@Back","&Back",+ "@Exit","E&xit"} [NukeDlgENG] DlgTemplate = "DLG_NUKE" !SQLDlgNames = {"@Caption","Remove SQL Server",+ "@DlgText1","Selecting this option will remove SQL Server from this computer. If you choose to "+ "remove the SQL Server files from "$(!SQLPath)", all information will be lost and cannot be recovered.", + "@DlgText2","If you want to terminate the operation, choose Exit.",+ "@DlgText3","To proceed with removing SQL Server, choose Resume.",+ "@Check1","Re&move files from: "$(!SQLPath),+ "@Continue","&Resume",+ "@Back","&Back",+ "@Exit","E&xit"} [ServerParamsDlgENG] DlgTemplate = "DLG_SVR_PARAMS" !SQLDlgNames = {"@Caption","Server Parameters",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","108",+ "@DlgText1","&Parameter:",+ "@DlgText2","&Existing Parameters:",+ "@Continue","&OK",+ "@Cancel","&Cancel",+ "@Help","&Help",+ "@Add","&Add",+ "LISTBOX_NOTIFY","",+ "@Remove","&Remove",+ "@Exit","E&xit"} [GetPathDlgENG] DlgTemplate = $(!Template) !SQLDlgNames = {"@Caption",$(!Setup_Title),+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID",$(!HelpID),+ "@DlgText1",$(!Text1),+ "@DlgText2",$(!Text2),+ "@Edit1Label",$(!EditLabel),+ "@Edit2Label",$(!Edit2Label),+ "@EDITIN1",$(!EditIn),+ "@EDITLEN1","256",+ "@Continue","C&ontinue",+ "@Help","&Help",+ "@Back","&Back",+ "@Exit",$(!Ex)} [GetSpaceSQLPathDlgENG] DlgTemplate = "DLG_SPACESQLPATH" !DefInPath = $(!DefSQLPath) !SQLDlgNames = {"@Caption","SQL Server Installation Path",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","112",+ "@DlgText1","The Setup program will copy the SQL Server files into the "+ "following drive and directory:",+ "@DlgText2","To copy the SQL Server files to a different directory on the "+ "selected drive, use the BACKSPACE key to delete characters, and then "+ " type the directory where you want the Setup program to copy the SQL Server files.",+ "@DlgText3","To copy the SQL Server files to a different drive, in the Drive box, "+ "select a drive letter from the list of available drives.",+ "@DlgText4","Dri&ve:",+ "@DlgText5","&Directory:",+ "@DlgSpaceReq","Required Space:",+ "@DlgSpaceAvail","Available Space:",+ "@EDITIN1","",+ "@EDITLEN1","256",+ "@Continue","C&ontinue",+ "@Help","&Help",+ "@Back","&Back",+ "@Exit","E&xit"} [GetSQLPathDlg] DlgTemplate = "DLG_NEWSQLPATH" !DefInPath = $(!DefSQLPath) !SQLDlgNames = {"@Caption","SQL Server Installation Path",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","101",+ "@DlgText1","Please specify where the Setup program can find the existing SQL Server "+ "installation.",+ "@DlgText2","To instruct Setup to use the SQL Server system files in a different directory on the "+ "selected drive, use the BACKSPACE key to delete characters, and then "+ "type the directory containing SQL Server system files you want Setup to use.",+ "@DlgText3","To instruct Setup to use the SQL Server system files on a different drive, in the "+ " Drive box, select a drive letter from the list of available drives.",+ "@DlgText4","Dri&ve:",+ "@DlgText5","&Directory:",+ "@EDITIN1","",+ "@EDITLEN1","256",+ "@Continue","C&ontinue",+ "@Help","&Help",+ "@Back","&Back",+ "@Exit","E&xit"} [GetSpaceMasterPathDlg] DlgTemplate = "DLG_SPACEMASTERPATH" !SQLDlgNames = {"@Caption","MASTER Device Creation",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","102",+ "@DlgText1","The Setup program will create the MASTER device using the following filename and drive:",+ "@DlgText2","To create the MASTER device in a different location, use the BACKSPACE "+ "key to delete characters, and then type the filename that you want the "+ "Setup program to give to the MASTER device.",+ "@DlgText3","To create the MASTER device on a different drive, in the Drive box, "+ "select a drive letter from the list of available drives.",+ "@DlgText4","The minimum MASTER device size is 15 MB, but it's a good idea to "+ "specify extra room for future use. To change the size, use the BACKSPACE "+ "key to delete characters, and then type a new size.",+ "@DlgText5","Dri&ve:",+ "@DlgText6","&Directory:",+ "@DlgText7","Master device Si&ze (MB):",+ "@DlgSpaceReq","Required Space:",+ "@DlgSpaceAvail","Available Space:",+ "@EDITIN1","",+ "@EDITLEN1","256",+ "@EDITIN2",$(!DefMasterSize),+ "@EDITLEN2","5",+ "@EDITRESTRICT2","NUMBERS",+ "@Continue","C&ontinue",+ "@Help","&Help",+ "@Back","&Back",+ "@Exit","E&xit"} [GetMasterPathDlg] DlgTemplate = "DLG_MASTERPATH" !SQLDlgNames = {"@Caption","Rebuild MASTER Device",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","113",+ "@DlgText1","The Setup program will rebuild the MASTER device using the following filename and drive:",+ "@DlgText2","To create the MASTER device in a different location, use the BACKSPACE "+ "key to delete characters, and then type the filename that you want the "+ "Setup program to give to the MASTER device.",+ "@DlgText3","To create the MASTER device on a different drive, in the Drive box, "+ "select a drive letter from the list of available drives.",+ "@DlgText4","The minimum master device size is 15 MB, but it's a good idea to "+ "specify extra room for future use. To change the size, use the BACKSPACE "+ "key to delete characters, and then type a new size.",+ "@DlgText5","Dri&ve:",+ "@DlgText6","&Directory:",+ "@DlgText7","Master device Si&ze (MB):",+ "@EDITIN1","",+ "@EDITLEN1","256",+ "@EDITIN2",$(!DefMasterSize),+ "@EDITLEN2","5",+ "@EDITRESTRICT2","NUMBERS",+ "@Continue","C&ontinue",+ "@Help","&Help",+ "@Back","&Back",+ "@Exit","E&xit"} [GetUpgradeSQLPathDlgENG] DlgTemplate = "DLG_NEWSQLPATH" !DefInPath = $(!DefSQLPath) !SQLDlgNames = {"@Caption","SQL Server Upgrade Path",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","117",+ "@DlgText1","The Setup program will copy the SQL Server files into the "+ "following drive and directory:",+ "@DlgText2","To copy the SQL Server files to a different directory on the "+ "selected drive, use the BACKSPACE key to delete characters, and then "+ " type the directory where you want the Setup program to copy the SQL Server files.",+ "@DlgText3","To copy the SQL Server files to a different drive, in the "+ " Drive box, select a drive letter from the list of available drives.",+ "@DlgText4","Dri&ve:",+ "@DlgText5","&Directory:",+ "@EDITIN1","",+ "@EDITLEN1","256",+ "@Continue","C&ontinue",+ "@Help","&Help",+ "@Back","&Back",+ "@Exit","E&xit"} [GetUpgradeSQLMasterPathDlg] DlgTemplate = "DLG_NEWSQLPATH" !DefInPath = $(!DefMasterPath) !SQLDlgNames = {"@Caption","SQL Server Upgrade MASTER Device Path",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","127",+ "@DlgText1","The Setup program will upgrade the MASTER device file "+ "contained in the following drive and directory:",+ "@DlgText2","To upgrade the MASTER device within in a different directory on the "+ "selected drive, use the BACKSPACE key to delete characters, and then "+ " type the filename of the MASTER device that the Setup program will upgrade.",+ "@DlgText3","To upgrade the MASTER device on a different drive, in the "+ " Drive box, select a drive letter from the list of available drives.",+ "@DlgText4","Dri&ve:",+ "@DlgText5","&Directory:",+ "@EDITIN1","",+ "@EDITLEN1","256",+ "@Continue","C&ontinue",+ "@Help","&Help",+ "@Back","&Back",+ "@Exit","E&xit"} [GetSpaceUtilOptsDlg] DlgTemplate = "DLG_CLIENT_UTILS" !DefInPath = $(!DefSQLPath) !SQLDlgNames = {"@Caption","Install Client Utilities",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","110",+ "@DlgText1","The Setup program will copy the SQL Server utility files into the "+ "following drive and directory:",+ "@DlgText2","To copy the SQL Server utility files to a different directory on the "+ "selected drive, use the BACKSPACE key to delete characters, and then "+ " type the directory where you want the Setup program to copy the SQL Server utility files.",+ "@DlgText3","To copy the SQL Server utility files to a different drive, in the "+ " Drive box, select a drive letter from the list of available drives.",+ "@DlgText4","Dri&ve:",+ "@DlgText5","&Directory:",+ "@DlgText6","Utilities to be installed:",+ "@Chk1","BCP",+ "@Chk2","ISQL",+ "@Chk3","SQL Administrator",+ "@Chk4","SQL Object Manager",+ "@Chk5","SQL Security Manager",+ "@Chk6","Configuration Diagnostics",+ "@DlgSpaceReq","Required Space:",+ "@DlgSpaceAvail","Available Space:",+ "@EDITIN1","",+ "@EDITLEN1","256",+ "@Continue","C&ontinue",+ "@Help","&Help",+ "@Back","&Back",+ "@Exit","E&xit"} [GetNetLibPathDlgENG] !Template = "DLG_SQLPATHBACK" !NoNameText = DBNoPathENG !PermitNullName = "NO" !CreatePathPrompt= "NO" !AutoPopoff = "NO" !ExtraEdit = "" !Text1 = "The Setup program will copy the following user-defined Net-Library "+ "to the hard disk." !Text2 = "To copy the Net-Library file from a different "+ "location, use the BACKSPACE key to delete "+ "characters, and then type the drive, path and filename "+ "from which you want the Setup program to copy the Net-Library file." !EditIn = $(!DefNETPath) !EditLabel = "&Path:" !HelpID = "114" !Ex = "E&xit" [GetSortFileDlgENG] !Template = "DLG_SQLLONGEDITEXTRA" !NoNameText = DBNoPathENG !PermitNullName = "NO" !CreatePathPrompt= "NO" !AutoPopoff = "NO" !ExtraEdit = "EDIT2" !ExtraEditFail = "Please supply the sort order ID." !Text1 = "The Setup program will copy the following character set "+ "file to the hard disk:" !Text2 = "To copy the character set file from a different "+ "location, use the BACKSPACE key to delete "+ "characters, and then type the drive, path and filename "+ "from which you want the Setup program to copy the character set file." !EditIn = $(!DefNETPath) !HelpID = "115" !EditLabel = "Sort &Filename:" !Edit2Label = "Sort &Order Number:" !Ex = "E&xit" [GetLangFileDlgENG] !Template = "DLG_SQLLONGEDIT" !PermitNullName = "NO" !CreatePathPrompt= "NO" !AutoPopoff = "YES" !Text1 = "The Setup program will copy the following language file "+ "to the hard disk:" !Text2 = "To copy the language file from a different "+ "location, use the BACKSPACE key to delete "+ "characters, and then type the drive, path and filename "+ "from which you want the Setup program to copy the language files." !EditIn = $(!DefNETPath) !HelpID = "116" !EditLabel = "&Path:" !Ex = "E&xit" [GetSAPasswordDlgENG] DlgTemplate = "DLG_SQLPASSWORDEDIT" !PermitNullName = "YES" !CreatePathPrompt= "NO" !AutoPopoff = "YES" !Text1 = "Please enter and confirm the SA password that the upgrade "+ "will use to log in to the SQL Server." !Text2 = "To enter a different SA password, "+ "use the BACKSPACE key to delete "+ "characters, and then type the password "+ "you want the Setup program to use when upgrading." !SQLDlgNames = {"@Caption",$(!Setup_Title),+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID",118,+ "@DlgText1",$(!Text1),+ "@DlgText2",$(!Text2),+ "@Edit1Label","&SA Password:",+ "@Edit2Label","&Confirm Password:",+ "@EDITIN1","",+ "@EDITLEN1","256",+ "@EDITIN2","",+ "@EDITLEN2","256",+ "@Continue","C&ontinue",+ "@Help","&Help",+ "@Back","&Back",+ "@Exit","E&xit"} [GetMailInfoDlgENG] DlgTemplate = "DLG_MAILINFOEDIT" !PermitNullName = "YES" !CreatePathPrompt= "NO" !AutoPopoff = "YES" !Text1 = "In order to auto start the mail client, a valid mail login name "+ "and password must be entered. " !SQLDlgNames = {"@Caption",$(!Setup_Title),+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID",132,+ "@DlgText1",$(!Text1),+ "@Edit1Label","&Mail Login Name:",+ "@Edit2Label","Mail &Password:",+ "@Edit3Label","&Confirm Password:",+ "@Chk1","Copy &SQLMail configuration from current user account",+ "@EDITIN1","",+ "@EDITLEN1","256",+ "@EDITIN2","",+ "@EDITLEN2","256",+ "@EDITIN2","",+ "@EDITLEN2","256",+ "@Continue","C&ontinue",+ "@Help","&Help",+ "@Back","&Back",+ "@Exit","E&xit"} [GetStreetNameDlgENG] !Template = "DLG_SQLLONGEDIT" !NoNameText = NoStreetENG !PermitNullName = "NO" !CreatePathPrompt= "NO" !AutoPopoff = "YES" !Text1 = "SQL Server will use the following StreetTalk PC-based service name:" !Text2 = "To enter a different PC-based service name, "+ "use the BACKSPACE key to delete "+ "characters, and then type the PC-based service name "+ "you want SQL Server to use." !EditIn = $(!StreetName) !EditLabel = "&Service Name:" !HelpID = "119" !Ex = "E&xit" [GetTCPIPSocketDlgENG] !Template = "DLG_SQLLONGEDIT" !PermitNullName = "NO" !CreatePathPrompt= "NO" !AutoPopoff = "YES" !NoNameText = NoTCPIPSocketENG !Text1 = "SQL Server will listen on the following TCP/IP port number: " !Text2 = "To enter a different TCP/IP port number, "+ "use the BACKSPACE key to delete "+ "characters, and then type the TCP/IP port number "+ "you want SQL Server to listen on." !EditLabel = "&Port Number:" !EditIn = $(!TCPIPSocketNumber) !HelpID = "121" !Ex = "E&xit" [GetServiceNameDlgENG] !Template = "DLG_SQLLONGEDIT" !NoNameText = NoServiceENG !PermitNullName = "NO" !CreatePathPrompt= "NO" !AutoPopoff = "YES" !Text1 = "SQL Server will use the following Novell Bindery service name:" !Text2 = "To enter a different Novell Bindery Service name, "+ "use the BACKSPACE key to delete "+ "characters, and then type the Novell Bindery service name "+ "you want the SQL Server to use." !EditIn = $(!ServiceName) !EditLabel = "&Service Name:" !HelpID = "122" !Ex = "E&xit" [GetNetAddressDlgENG] !Template = "DLG_SQLLONGEDIT" !NoNameText = NoNetENG !PermitNullName = "NO" !CreatePathPrompt= "NO" !AutoPopoff = "YES" !Text1 = "The Setup program will enter the following network "+ "address associated with the "$(!UserDefinedName)" Net-Library in the Windows NT Registry:" !Text2 = "To enter a different network address, "+ "use the BACKSPACE key to delete "+ "characters, and then type the network address "+ "you want the Setup program to enter in the Windows NT Registry." !EditIn = $(!NetAddress) !EditLabel = "&Network Address:" !HelpID = "123" !Ex = "E&xit" [GetLangInfoDlgENG] DlgTemplate = "DLG_DUALEDIT" !SQLDlgNames = {"@Caption",$(!Setup_Title),+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","124",+ "@DlgText1","To install a language, specify the "+ "official language name and the SQL Server SA password. ",+ "@DlgText2","To change the language name or the SA password, "+ "use the BACKSPACE key to delete characters, and "+ "then type the information you want the Setup program to use.",+ "@EditLabel1","Language &Name:",+ "@EDITLEN1","30",+ "@EditLabel2","SA &Password:",+ "@EDITLEN2","30",+ "@Chk1","&Default Language",+ "@Continue","C&ontinue",+ "@Exit","E&xit",+ "@Back","&Back",+ "@Help","&Help"} [ServerOptsDlgENG] DlgTemplate = "DLG_SERVEROPTIONS" !SQLDlgNames = {"@Caption",$(!Setup_Title),+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","125",+ "@DlgText1","Startup",+ "@DlgText2","&Root Directory:",+ "@DlgText3","Master &Database Path:",+ "@DlgText4","&Errorlog Path:",+ "@Chk1","&Auto Start Server At Boot Time",+ "@Chk2","Auto Start &Monitor At Boot Time",+ "@Chk7","A&uto Start Mail Client",+ "@Chk3","Boo&st SQL Server Priority",+ "@Chk6","Dedicated Multiprocessor Per&formance",+ "@Chk4","&Windows NT Event Logging",+ "@Chk5","S&QL PerfMon Integration",+ "@Radio1","D&irect Response Mode",+ "@Radio2","&On Demand Mode",+ "@EDITLEN1","256",+ "@EDITLEN2","256",+ "@EDITLEN3","256",+ "@Connect","Co&nnect",+ "@Continue","&Change Options",+ "@Exit","E&xit",+ "@Params","&Parameters",+ "@TapeSup","&Tape Support",+ "@MailLog","Mail &Login", + "@Back","&Back",+ "@Help","&Help"} [RemoteDlgENG] DlgTemplate = "DLG_REMOTE" !SQLDlgNames = {"@Caption","Remote Setup",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","126",+ "@DlgText1","Setup permits operations to be performed on remote computers. To perform a remote setup, you must specify a computer name "+ "and select the logical drive letters that setup requires.",+ "@DlgText2","The Windows NT and MASTER installation drives default initially to the SQL installation drive.",+ "@Check1","&Remote Installation",+ "@Radio1","&SQL Installation Drive",+ "@Radio2","Windows N&T Installation Drive",+ "@Radio3","&Master Database Installation Drive",+ "@DlgText3","Remote Server &Name:",+ "@DlgText4","Remote Logical &Drive:",+ "@DEFBTNRADIO","2",+ "@EDITIN1",$(!Remote),+ "@EDITLEN1","30",+ "@Continue","&OK",+ "@Cancel",$(!ExitButton),+ "@Help","&Help"} [TapeTimeDlgENG] DlgTemplate = "DLG_TAPETIME" !SQLDlgNames = {"@Caption","Tape Support",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","128",+ "@DlgText1","SQL Server can be configured to wait a specified amount of "+ "time while trying to read a tape that has not been loaded in "+ "the drive. Select the appropriate tape timeout mode.",+ "@DlgText2","minutes",+ "@Radio1","&Wait Indefinitely",+ "@Radio2","T&ry Once and Quit",+ "@Radio3","Try &for ",+ "@DEFBTNRADIO",$(!DefRadio),+ "@EDITIN1",$(!TapeTO),+ "@EDITLEN1","5",+ "@EDITRESTRICT1","NUMBERS",+ "@Continue","&OK",+ "@Cancel","&Cancel",+ "@Help","&Help"} [SecurityDlgENG] DlgTemplate = "DLG_SECURITY" !SQLDlgNames = {"@Caption","Set Security Options",+ "@HELPFILE",$(!HelpSQLNTSetup),+ "@HELPID","129",+ "@DlgText1","Login Security Mode",+ "@DlgText2","Default &Login:",+ "@DlgText3","Default &Domain:",+ "@DlgText4","Audit Level",+ "@DlgText5","Mappings",+ "@Radio1","&Standard",+ "@Radio2","Windows NT &Integrated",+ "@Radio3","&Mixed",+ "@Check1","Su&ccessful Logins",+ "@Check2","&Failed Logins",+ "@Check3","Set Hostname to &User Name",+ "@Map1","Map _:",+ "@Map2","Map #:",+ "@Map3","Map $:",+ "@DEFBTNRADIO",$(!DefRadio),+ "@CALLCOMBOLEN1","1",+ "@CALLCOMBOLEN2","1",+ "@CALLCOMBOLEN3","1",+ "@Continue","&OK",+ "@Back","&Back",+ "@Cancel","E&xit",+ "@Help","&Help"} [RemoteExitENG] !ExitButton = "E&xit" [RemoteCancelENG] !ExitButton = "&Cancel" [YesNoDlgENG] DlgTemplate = "SetupMessage" DlgType = "MessageBox" STF_MB_TITLE = $(!Setup_Title) STF_MB_TEXT = $(!YesNoQ) STF_MB_TYPE = 3 STF_MB_ICON = 4 STF_MB_DEF = 1 [InfoMessageENG] DlgTemplate = "SetupMessage" DlgType = "MessageBox" STF_MB_TITLE = $(!Setup_Title) STF_MB_TEXT = $(!AddlText) STF_MB_TYPE = 1 STF_MB_ICON = 2 STF_MB_DEF = 1 [ExitWarningDlgENG] DlgType = "MessageBox" STF_MB_TITLE = "Exit SQL Server Setup" STF_MB_TEXT = "Are you sure you want to exit SQL Server Setup?" STF_MB_TYPE = 3 STF_MB_ICON = 5 STF_MB_DEF = 2 [InstallingDlgENG] DlgTemplate = "DLG_BILLBOARD" DlgType = "Billboard" !SQLDlgNames = {"@BillyBoy","Setup is now running BLDMASTER to create the master database. "+ "This can take up to 10 minutes, depending on the database size you chose. "$(!LF)$(!LF)$(!PleaseWait)} [MailManDlgENG] DlgTemplate = "DLG_MAILMAIN" DlgType = "Billboard" !SQLDlgNames = {"MAILPEOPLE","",+ "@Bill1","Now is a great time to fill out your registration card. "+ "When you send it in, Microsoft will ...",+ "@Bill2","- Inform you of product updates.",+ "@Bill3","- Offer you customer support.",+ "@Bill4","- Provide you with information about related Microsoft products."} [DLG_BillboardSearchRename] DlgTemplate = "DLG_BILLBOARD" DlgType = "Billboard" !SQLDlgNames = {"@BillyBoy","Setup is searching for existing SQL Server DLLs "+ "in your path, and will rename them if any DLLs are "+ "found."$(!LF)$(!LF)$(!PleaseWait)} [InstLangingDlgENG] DlgTemplate = "DLG_BILLBOARD" DlgType = "Billboard" !SQLDlgNames = {"@BillyBoy","Setup is now installing your chosen language options."$(!LF)$(!LF)$(!PleaseWait)} [ProgressCopyVars] ProCaption = "File copy in progress" ProCancel = "&Cancel" ProCancelMsg = "Setup cannot run correctly until this operation is"$(!LF)+ "complete. Are you sure you want to cancel?" ProCancelCap = "SQL Server for Windows NT Setup Warning" ProText1 = "Copying " ProText2 = " to " [BillboardRunningNConnSQLENG] !BillName = "Setup is now starting SQL Server and verifying its state."$(!LF)$(!LF)$(!PleaseWait) [BillboardCharsetENG] !BillName = "Setup is now installing your chosen character set and sort order."$(!LF)$(!LF)$(!PleaseWait) [BillboardIndexingENG] !BillName = "SQL Server is now re-indexing its system tables."$(!LF)$(!LF)$(!PleaseWait) [BillboardInstScriptsENG] !BillName = "Setup is now installing the initial SQL Server configuration."$(!LF)$(!LF)$(!PleaseWait) [BillboardSCMENG] !BillName = "Setup is now updating the Service Control Manager."$(!LF)$(!LF)$(!PleaseWait) [BillboardUpgradingENG] !BillName = "Setup is now upgrading SQL Server."$(!LF)$(!LF)$(!PleaseWait) [STR_BillboardPrepUpgrade] !BillName = "Setup is now preparing to upgrade SQL Server."$(!LF)$(!LF)$(!PleaseWait) [InsufficientPriv] !AddlText = "You have insufficient privileges to perform these operations." [STR_InferiorOS] !AddlText = $(!Setup_Title)" requires a more recent release of the Windows NT operating system." [STR_InvalidSystemAdmin] !AddlText = "Setup does not have access to the SQL Server Registry key. You must be logged in to Windows NT as a valid System Administrator of SQL Server in order to access this key. "+ $(!LF)$(!LF)"This permission defaults to the local Administrators group and can be changed using SQL Security Manager." [InsufficientMemENG] !AddlText = "This computer has insufficient memory to run SQL Server for Windows NT. You cannot proceed with the installation." [ErrorUpdatingRegistryENG] !AddlText = "An error occurred while updating the Windows NT Registry." [FileCouldNotBeCopiedENG] !AddlText = "The files could not be copied." [FileDoesntExistENG] !AddlText = "The file you specified does not exist." [DBNoPathENG] !AddlText = "You must specify a path." [NoSizeENG] !AddlText = "You must enter a database size." [ServiceErrorENG] !AddlText = "An error occurred while accessing the Service Control Manager." [DBSizeInvalidENG] !AddlText = "The value you entered for the database size is too small or is not a valid number." [MasterMustExistENG] !AddlText = "The master database file must be present for an upgrade." [STR_DuplicateMap] !AddlText = "All map values must be unique." [DBNoNameNOrgENG] !AddlText = "You must enter a name and an organization." [DBNoNameENG] !AddlText = "You must enter a name." [DBNoDatENG] !AddlText = "You must specify a .DAT file." [NoNetsENG] !AddlText = "You have not selected any networks." [NoUtilsENG] !AddlText = "You have not selected any utilities." [NoSQLServerENG] !AddlText = "The SQL Server could not be found. Please check the error/event log to ensure that the server is running." [NoServerNameENG] !AddlText = "You must enter a SQL Server name." [NoStreetENG] !AddlText = "You must enter a StreetTalk name." [NoServiceENG] !AddlText = "You must enter a Novell Bindery service name." [NoNetENG] !AddlText = "You must enter a network address." [NoLangInfoENG] !AddlText = "You must enter the language information requested." [CannotAllocUnusedDriveENG] !AddlText = "Setup cannot allocate a free logical drive." [InsertDiskENG] !AddlText = "Insert the disk in drive "$(!TmpDrive) [STR_InsufficientDiskSpace] !AddlText = "There is insufficient disk space on this drive." [RegistryIntegrityENG] !AddlText = "The SQL Server Registry key integrity is suspect." [ErrorReadRegistryENG] !AddlText = "An error occurred while reading the Windows NT Registry." [STR_CompletionNetworks] !MsgText = "The SQL Server ("$(!ProductVersion)") Net-Libraries are now updated."$(!LF)$(!LF)+ "The changes will become effective the next time SQL Server is started." [CompletionNewCharSortENG] !MsgText = "The SQL Server ("$(!ProductVersion)") character sets and sort orders are now updated." [CompletionReBuildENG] !MsgText = "SQL Server ("$(!ProductVersion)") is now rebuilt." [CompletionNukedENG] !MsgText = "SQL Server ("$(!ProductVersion)") has been removed from this computer."$(!LF)$(!LF)"The files used by SETUP.EXE must be removed manually." [CompletionNukedRemoteENG] !MsgText = "SQL Server ("$(!ProductVersion)") has been removed from \\"$(!ComputerName)$(!LF)$(!LF)"." [CompletionLangInstENG] !MsgText = "The new language has been successfully added." [CompletionOptionsENG] !MsgText = "The SQL Server options have been successfully updated." [STR_CompletionSecurity] !MsgText = "The SQL Server security options have been successfully updated."$(!LF)$(!LF)+ "The changes will become effective the next time SQL Server is started." [FailedUserSetupQuitENG] !MsgText = "Setup has been terminated."$(!LF)$(!LF) [FailedUserQuitENG] !AddlText = "Setup has been terminated."$(!LF)$(!LF) [UserQuitMsgENG] !AddlText = "Setup has been terminated."$(!LF)$(!LF) [CannotUpgradeENG] !MsgText = "SQL Server ("$(!ProductVersion)") cannot be upgraded because: "$(!LF)$(!LF) [SQLExecErrorENG] !AddlText = "An error occurred while executing a SQL statement:" [UpgradeErrorENG] !MsgText = "The SQL Server upgrade could not be successfully completed."$(!LF)$(!LF) [UpgradeExecErrorENG] !AddlText = "UPGRADE.EXE could not be successfully executed. Please check UPGRADE.OUT." [InstallErrorENG] !MsgText = "The SQL Server installation could not be successfully completed."$(!LF)$(!LF) [NukeErrorENG] !MsgText = "SQL Server could not be successfully removed."$(!LF)$(!LF) [SetSecErrorENG] !MsgText = "The SQL Server security options could not be successfully set."$(!LF)$(!LF) [SCMErrorENG] !AddlText = "A Service Control Manager error occurred." [SetupInitENG] !MsgText = "Setup initilization could not be successfully completed."$(!LF)$(!LF) [NetInstallErrorENG] !MsgText = "The network could not be successfully installed."$(!LF)$(!LF) [UtilInstallErrorENG] !MsgText = "The SQL Server utilities could not be successfully installed."$(!LF)$(!LF) [LangErrorENG] !MsgText = "The language could not be successfully installed."$(!LF)$(!LF) [ServerOptsErrorENG] !MsgText = "The server options could not be updated successfully."$(!LF)$(!LF) [RebuildErrorENG] !MsgText = "The master database could not be successfully rebuilt."$(!LF)$(!LF) [NetStartErrorENG] !AddlText = " The service could not be started. Please check the error/event log to determine the cause." [NetStopErrorENG] !AddlText = " The service could not be stopped." [NetworkDriveConnectErrorENG] !AddlText = "Setup could not connect to the remote " [NetworkDriveConnectSQLInstENG] !AddlText = "SQL Server installation share - " [NetworkDriveConnectNTInstENG] !AddlText = "Windows NT installation share - " [NetworkDriveConnectDBInstENG] !AddlText = "master database share - " [STR_Plenty] !AddlText = "Sufficient space" [ProcessExecErrorENG] !AddlText = "could not be executed. Please check the relevant .OUT file."$(!LF) [ProcessRetErrorENG] !AddlText = "An error was reported: " [CannotCreateFileENG] !AddlText = "The CONFIG file could not be created." [DiskFullENG] !AddlText = "There is insufficient disk space for the CONFIG file." [DirCreateErrorENG] !AddlText = "The following directory could not be created: " [SQLBadResultsENG] !AddlText = "Install verification failed because at least one SQL script did not install correctly. Please check the script .OUT files. The verification check failed with the following item not being found: " [NoServerNameENG] !AddlText = "You must specify a Windows NT-based SQL Server." [NoServerPathENG] !AddlText = "You must specify a SQL Server path." [NoMasterPathENG] !AddlText = "You must specify a master database path." [NoTCPIPSocketENG] !AddlText = "You must specify a TCP/IP socket number." [MasterExistsENG] !YesNoQ = "The master database already exists in this path."$(!LF)"Are you sure you want to overwrite it?" [TCPIPNotRunningENG] !YesNoQ = "The TCP/IP service is not currently running."$(!LF)"Do you still want to select this Net-Library?" [STR_NWLinkNotRunning] !YesNoQ = "The NWLink service is not currently running."$(!LF)"Do you still want to select this Net-Library?" [NoRemoteSpecENG] !AddlText = "You must specify a remote computer name." [NoLoginToSQLServerENG] !AddlText = "Setup could not connect to the SQL Server." [InstalledTagENG] !RebootType = "SQL Server ("$(!ProductVersion)") is now installed." [UpgradedTagENG] !RebootType = "SQL Server ("$(!ProductVersion)") is now upgraded." [UtilInstallTagENG] !RebootType = "SQL Server ("$(!ProductVersion)") utilities are now installed." [STR_DLLRenameError] !AddlText = "Setup cannot rename "$(!OneOffFile)". Ensure that you are not running any other applications that use this file, and then restart setup." [STR_SpacedComputerName] !AddlText = "The computer name "$(!ComputerName)" contains at least one whitespace character. The SQL Server computer name cannot contain whitespace characters, therefore you will need use a name without whitespace." [STR_NonCriticalScriptFail] !AddlText = $(!LF)"At least one non-critical SQL script failed to install correctly. Please check the Install .OUT files." [PasswordsDontMatchENG] !AddlText = $(!LF)"The password was not correctly confirmed. Please be sure that the confirmation password exacly matches the password." [DeleteEventLogENG] !YesNoQ = "In order to disable event logging, the Application event log must be cleared with no backup created. If SQL Server is running it will be stopped and restarted. Do you wish to continue?" [NoNetChangeIntSec] !AddlText = "You cannot change the network support options because your login security mode is set to 'Windows NT Integrated' in the Set Security Options dialog."$(!LF)$(!LF)+ "If you need to support protocols other than named pipes, you must first change the security mode to 'Standard' or 'Mixed'." [NoNetChangeDevVer] !AddlText = "You cannot change the network support options because you are using the SQL Server Desktop System, which only supports local named pipes connections." [InternationalSetup] !Locale = "" [LocaleFile] 1, common.loc 1, server.loc [BaseInstallExes] 1, setup.exe,SIZE=309760 1, setup.inf,SIZE=308758 1, sqlsetup.hlp,SIZE=77385 1, sqlsetup.dll,SIZE=165888 1, bldmastr.ex@, RENAME=bldmastr.exe, SIZE=598016 1, sqlservr.ex@, RENAME=sqlservr.exe, SIZE=2749952 1, charset.ex@, RENAME=charset.exe, SIZE=110592 1, langinst.ex@, RENAME=langinst.exe,SIZE=92160 1, upgrade.ex@, RENAME=upgrade.exe,SIZE=159744 1, sqlmontr.ex@, RENAME=sqlmontr.exe,SIZE=127488 1, netsql.ex@, RENAME=netsql.exe,SIZE=60416 1, wtapedir.ex@, RENAME=wtapedir.exe, SIZE=102912 1, sqlctrs.pm@, RENAME=sqlctrs.pmc,SIZE=1164 1, console.ex@, RENAME=console.exe,SIZE=5734 1, helpsql.hl@, RENAME=helpsql.hlp,SIZE=190073 1, tapeutil.hl@, RENAME=tapeutil.hlp,SIZE=18679 1, ntwdbver.ex@, RENAME=ntwdbver.exe,SIZE=66560 1, sqlxfr.ex@, RENAME=sqlxfr.exe,SIZE=227328 1, sqlxfr.hl@, RENAME=sqlxfr.hlp,SIZE=23466 [DOSInstallExes] 1, dbnmp3.dl@, RENAME=dbnmp3.dll,SIZE=10704 1, dbmsspx3.dl@, RENAME=dbmsspx3.dll,SIZE=10848 1, dbmsvin3.dl@, RENAME=dbmsvin3.dll,SIZE=18150 1, dbmssoc3.dl@, RENAME=dbmssoc3.dll,SIZE=5000 1, dbnmpipe.ex@, RENAME=dbnmpipe.exe,SIZE=10013 1, dbmsspx.ex@, RENAME=dbmsspx.exe,SIZE=24565 1, dbmsvine.ex@, RENAME=dbmsvine.exe,SIZE=22554 1, dbmssoc.ex@, RENAME=dbmssoc.exe,SIZE=27000 [OS2InstallExes] 1, dbmsspxp.dl@, RENAME=dbmsspxp.dll,SIZE=8800 1, dbmsvinp.dl@, RENAME=dbmsvinp.dll,SIZE=13830 1, dbnmpp.dl@, RENAME=dbnmpp.dll,SIZE=8300 1, pdbver.ex@, RENAME=pdbver.exe,SIZE=8300 [BaseInstallDLLs] 1, opendsnt.dl@, RENAME=opendsnt.dll,SIZE=125440 1, ssnmpntw.dl@, RENAME=ssnmpntw.dll,SIZE=17408 1, xpsql.dl@, RENAME=xpsql.dll,SIZE=14848 1, sqlperf.dl@, RENAME=sqlperf.dll,SIZE=29184 1, ssmssocn.dl@, RENAME=ssmssocn.dll,SIZE=25600 1, sqlevent.dl@, RENAME=sqlevent.dll,SIZE=46080 1, sqltl32.dl@, RENAME=sqltl32.dll,SIZE=329728,CHECKVERSION=*($(!SetupFileVersion), 1)^*($(!SetupFileVersion),2) 1, sqlctrs.dl@, RENAME=sqlctrs.dll,SIZE=36352 1, evntctrs.dl@, RENAME=evntctrs.dll,SIZE=8192 1, xplogin.dl@, RENAME=xplogin.dll, SIZE=55296 1, ssmsspxn.dl@, RENAME=ssmsspxn.dll,SIZE=36352 1, dbmsspxn.dl@, RENAME=dbmsspxn.dll,SIZE=36352,CHECKVERSION=*($(!SetupFileVersion), 1)^*($(!SetupFileVersion),2) 1, dbmssocn.dl@, RENAME=dbmssocn.dll,SIZE=40448,CHECKVERSION=*($(!SetupFileVersion), 1)^*($(!SetupFileVersion),2) 1, sqlmapi.dl@, RENAME=sqlmapi.dll, SIZE=50176 [ClientDLLs] 1, dbnmpntw.dll,SIZE=17408,CHECKVERSION=*($(!SetupFileVersion), 1)^*($(!SetupFileVersion),2) 1, ntwdblib.dll,SIZE=252416,CHECKVERSION=*($(!SetupFileVersion), 1)^*($(!SetupFileVersion),2) [InstallExes] 1, charset.exe, SIZE=110592 [InstallDLLs] 1, opendsnt.dll,SIZE=125440 1, ssnmpntw.dll,SIZE=17408 1, sqlevent.dll,SIZE=46080 [BaseInstall] 1, dropall.sq@, RENAME=dropall.sql,SIZE=11084 1, instmstr.sq@, RENAME=instmstr.sql,SIZE=330000 1, instmodl.sq@, RENAME=instmodl.sql,SIZE=2000 1, admin2.sq@, RENAME=admin2.sql,SIZE=126205 1, object2.sq@, RENAME=object2.sql,SIZE=43930 1, unadmin.sq@, RENAME=unadmin.sql,SIZE=5706 1, tempsp.sql,SIZE=746 1, unobj.sql,SIZE=2241 1, instpubs.sq@, RENAME=instpubs.sql,SIZE=23902 1, instcat.sq@, RENAME=instcat.sql,SIZE=100363 1, helpsql.sq@, RENAME=helpsql.sql,SIZE=129492 1, instlang.sq@, RENAME=instlang.sql,SIZE=2551 1, instnt.sq@, RENAME=instnt.sql,SIZE=68068 1, mstrfree.sql,SIZE=637 1, dnnt42.sql,SIZE=11816 1, instsupl.sq@, RENAME=instsupl.sql,SIZE=4411 1, sqlcommn.lo@, RENAME=sqlcommn.loc,SIZE=4314 1, readme.txt,SIZE=7164 1, readme.hl@, RENAME=readme.hlp,SIZE=18035 [Charset437] 1, CP437BIN.437,SIZE=800 1, DICTION.437,SIZE=8500 1, NOACCENT.437,SIZE=8500 1, NOCASE.437,SIZE=8500 1, NOCASEPR.437,SIZE=9000 [Charset850] 1, CP850BIN.850,SIZE=800 1, DICTION.850,SIZE=8500 1, NOACCENT.850,SIZE=8500 1, NOCASE.850,SIZE=8500 1, NOCASE34.850,SIZE=6000 1, NOCASEPR.850,SIZE=9100 1, ALTDICT.850,SIZE=8600 1, ALTNOACC.850,SIZE=8500 1, ALTNOCSP.850,SIZE=9400 1, ALTNOCS.850,SIZE=9400 1, SCANDICT.850,SIZE=8300 1, SCANNOCP.850,SIZE=9200 1, SCANNOCS.850,SIZE=9200 [CharsetISO] 1, ISO_1BIN.ISO,SIZE=800 1, DICTION.ISO,SIZE=8700 1, NOACCENT.ISO,SIZE=8800 1, NOCASE.ISO,SIZE=8700 1, NOCASEPR.ISO,SIZE=9400 [Util1] 1, BCP.EX@, RENAME=bcp.exe,SIZE=88064 [Util2] 1, isql.ex@, RENAME=isql.exe,SIZE=109056 1, isqlw.ex@, RENAME=isqlw.exe,SIZE=111616 1, isqlw.hl@, RENAME=isqlw.hlp,SIZE=63552 [Util3] 1, sqladmin.ex@ RENAME=sqladmin.exe,SIZE=992768 1, sqlmgr.ex@, RENAME=sqlmgr.exe,SIZE=98304 [Util3Help] 1, sqladmin.hl@, RENAME=sqladmin.hlp,SIZE=194972 [Util4] 1, sqlobj.ex@ RENAME=sqlobj.exe,SIZE=1161728 [Util4Help] 1, sqlobj.hl@, RENAME=sqlobj.hlp,SIZE=208069 [Util5] 1, sqsecmgr.EX@ RENAME=sqsecmgr.exe,SIZE=176640 1, sqsecmgr.hl@, RENAME=sqsecmgr.hlp,SIZE=60317 [Util6] 1, READPIPE.EX@ RENAME=readpipe.exe,SIZE=49644 1, makepipe.ex@ RENAME=makepipe.exe,SIZE=48128 1, ntwdbver.ex@ RENAME=ntwdbver.exe,SIZE=66560 [UtilDLLs] 1, sqltl32.dl@,RENAME=sqltl32.dll,SIZE=329728,CHECKVERSION=*($(!SetupFileVersion), 1)^*($(!SetupFileVersion),2) 1, dbmsspxn.dl@, RENAME=dbmsspxn.dll,SIZE=36352,CHECKVERSION=*($(!SetupFileVersion), 1)^*($(!SetupFileVersion),2) 1, dbmssocn.dl@, RENAME=dbmssocn.dll,SIZE=23552,CHECKVERSION=*($(!SetupFileVersion), 1)^*($(!SetupFileVersion),2) [UtilHelp] 4, helpsql.hl@, RENAME=helpsql.hlp,SIZE=190073