home *** CD-ROM | disk | FTP | other *** search
- ;==========================================
- ; IMAGE LIBRARY
-
- ; Target platform = AIRWALK
- ; Package type = Driver
- ; Package Name = LanIntel STANDARD
- ;
- ; 18/05/2000 JMD include loclan.txt au lieu de loclan.script
- ;==========================================
-
-
- DEBUG
- #Package,LanIntel Standard
- #Version,IAA3201
- #Target_OS,NT4
- #Target_OS_Major,4
- #Target_OS_Minor,0
- #Target_OS_CSD,Service Pack 3 Service Pack 4 Service Pack 5 Service Pack 6
- #ALL_LOCS,TRUE
- #ALL_OS,TRUE
- #TARGET_DIR,C:\Masters\#Package
- #COMPUTER_NAME
- RANDOM_STRING,8,#COMPUTER_NAME
-
-
- INCLUDE,MSG.Script
- LOG,#F_FAIL
- GRADIENT,#COLOR_TOP,#COLOR_BOTTOM
- MSG_START,#FONT_SIZE,#COLOR_BACK,#COLOR_TEXT,#ENV,#MSG_POS
- INI_SEC_DEL,#F_RESULT,#Package
- INI_KEY_WRITE,#F_RESULT,#Package,Install_Start,#NOW
-
- ;==========================================
- ; Verify the current loc and set LOC variable
- ; If don't exists then exit sript
- ;==========================================
-
- INCLUDE,LOCLAN.txt
-
- ;==========================================
- ; Verify hardware presence
- ; If don't exists then exit sript
- ;==========================================
- BOARD_EXISTS,VEN_8086,DEV_1229
- ONGOOD,OS_TEST
- #ERROR_MSG,#NO_HARDWARE
- ; Write error somewhere...
- INI_KEY_WRITE,#F_RESULT,#Package,STATUS,FAIL
- INI_KEY_WRITE,#F_RESULT,#Package,CHECK,FAIL
- ; And finally exit the script
- GOTO,EXIT_ON_ERROR
-
- ;==========================================
- ; Verify the current OS and set OS variable
- ; If don't exists then exit sript
- ;==========================================
-
-
- :OS_TEST
- #OS,#OS_Name
- FINDSTRING,#Target_OS,#OS_Name
- ONERROR,ERROR_OS
- GOTO,END_OS
- :ERROR_OS
-
- #ERROR_MSG,#ERR_OS
- ; Write error somewhere...
- INI_KEY_WRITE,#F_RESULT,#Package,STATUS,FAIL
- INI_KEY_WRITE,#F_RESULT,#Package,CHECK,FAIL
- ; And finally exit the script
- GOTO,EXIT_ON_ERROR
- :END_OS
-
-
-
- ;Check if already installed
- REG_SET_ROOT,HKLM
- REG_KEY_EXIST,\SOFTWARE\Intel\E100B\CurrentVersion
- ONERROR,FIRST_INSTALL
- REG_KEY_OPEN,\SOFTWARE\Intel\E100B\CurrentVersion
- REG_VAL_READ,STRING,Title
- FINDSTRING,#REGVALUE,Intel(R) PRO NDIS Driver
-
- :TEST
- ONERROR,FIRST_INSTALL
- #ERROR_MSG,#DONE
- ; Write error somewhere...
- INI_KEY_WRITE,#F_RESULT,#Package,STATUS,PASS
- INI_KEY_WRITE,#F_RESULT,#Package,CHECK,FAIL
- ; And finally exit the script
- MSG_START,#FONT_SIZE,#COLOR_BACK,#COLOR_TEXT,#ERROR_MSG,#MSG_POS
- Delay,10
- LOG,#F_DONE
- GOTO,FIN
-
- ;==========================================
- ; Write Package information to Log file
- ;==========================================
-
- :FIRST_INSTALL
- MSG_START,#FONT_SIZE,#COLOR_BACK,#COLOR_TEXT,#ENV_OK,#MSG_POS
-
- INI_KEY_WRITE,#F_RESULT,#Package,PACKAGE_REV,#Version
- INI_KEY_WRITE,#F_RESULT,#Package,TARGET_OS,#Target_OS
- INI_KEY_WRITE,#F_RESULT,#Package,OS,#OS_NAME #OS_MAJORVERSION.#OS_MINORVERSION
- INI_KEY_WRITE,#F_RESULT,#Package,SP,#OS_CSD
- INI_KEY_WRITE,#F_RESULT,#Package,LOC,#LOC
- INI_KEY_WRITE,#F_RESULT,#Package,Install_Start,#NOW
- Delay,10
-
- ;======================================================
- ; Start installation by copying files to c:\masters\...
- ;======================================================
- :COPY_TO_MASTERS
- MSG_START,#FONT_SIZE,#COLOR_BACK,#COLOR_TEXT,#COPY,#MSG_POS
- #LOC,#LOC,\
- EQUAL,#ALL_LOCS,TRUE
- ONERROR,LOC_OS
- #LOC,#NULL
- :LOC_OS
- #OS,#OS,\
- EQUAL,#ALL_OS,TRUE
- ONERROR,LOC_PATH
- #OS,#NULL
- :LOC_PATH
-
- FILE_COPY,#OSPackage\#LOC*.*,#TARGET_DIR,SILENT,NOCONFIRMATION,NOCONFIRMKDIR
-
- ;==========================================
- ; Verify copy
- ;==========================================
-
- :VERIFY_COPY
- FILE_EXISTS,#TARGET_DIR\Msdisk\e100bnt.sys
- ONGOOD,START_INSTALL
- #ERROR_MSG,#ERR_COPY
- ; Write error somewhere...
- INI_KEY_WRITE,#F_RESULT,#Package,STATUS,FAIL
- INI_KEY_WRITE,#F_RESULT,#Package,CHECK,FAIL
- ; And finally exit the script
- GOTO,EXIT_ON_ERROR
-
- ;===========================================
- ;START INSTALLATION FOR NT WITH WIZARD
- ;===========================================
-
- :START_INSTALL
- MSG_START,#FONT_SIZE,#COLOR_BACK,#COLOR_TEXT,#COPY_OK,#MSG_POS
- Delay,10
- MSG_START,#FONT_SIZE,#COLOR_BACK,#COLOR_TEXT,#SETUP,#MSG_POS
- Delay,10
- MSG_START,#FONT_SIZE,#COLOR_BACK,#COLOR_TEXT,#WAIT,#MSG_POS
-
-
- ; 2000/02/28 Modif RQU - Safe method to open the control panel (NT only, another .cpl for win9x)
- Start,Control,ncpa.cpl
-
- ; No networking is currently installed
- ; Do you want to install it now ?
- Wait,#Network Configuration,160
- OnError,ERROR1
- ; Press 'Yes'
- Send,#Network Configuration,{RETURN}
-
- Wait,#Network Setup Wizard,160
- OnError,ERROR2
-
- ; Wait for the system to gather some information
- Delay,70
-
- Send,#Network Setup Wizard,{RETURN}
- Delay,10
-
- ; Press 'Select in the list'
- Send,#Network Setup Wizard,{TAB}
- Delay,10
- Send,#Network Setup Wizard,{TAB}
- Delay,10
- Send,#Network Setup Wizard,{TAB}
- Delay,10
- Send,#Network Setup Wizard,{TAB}
- Delay,10
- Send,#Network Setup Wizard,{RETURN}
- Delay,20
-
- Wait,#Select Network Adapter,160
- OnError,ERROR3
- Delay,30
-
- ; Press 'Have disk'
- Send,#Select Network Adapter,{TAB}
- Delay,10
- Send,#Select Network Adapter,{RETURN}
-
- Wait,#Insert Disk,160
- OnError,ERROR4
-
- ; Enter the location of the INF and press 'Ok'
- Send,#Insert Disk,#TARGET_DIR\Msdisk
- Delay,10
- Send,#Insert Disk,{RETURN}
-
- Wait,#Select OEM Option,160
- OnError,ERROR5
-
- ; Default selection is the good driver, just press 'Ok'
- Send,#Select OEM Option,{RETURN}
-
- Wait,#Network Setup Wizard,160
- OnError,ERROR6
- Delay,10
-
- ; Press 'Next'
- Send,#Network Setup Wizard,{RETURN}
- Delay,10
-
- ; Unselect TCP/IP protocol
- Send,#Network Setup Wizard,{SPACE}
- Delay,10
-
- ; Move down twice and select NetBEUI
- Send,#Network Setup Wizard,{DOWN}
- Delay,10
- Send,#Network Setup Wizard,{DOWN}
- Delay,10
- Send,#Network Setup Wizard,{SPACE}
- Delay,10
-
- ; Press 'Next'
- Send,#Network Setup Wizard,{RETURN}
- Delay,10
-
- ; No change in the network services, press 'Next'
- Send,#Network Setup Wizard,{RETURN}
- Delay,10
-
- Send,#Network Setup Wizard,{RETURN}
-
- Wait,#Windows NT Setup,160
- OnError,ERROR7
- ; Delay de 3 secondes au lieu de 0 itialement
- Delay,30
- Send,#Windows NT Setup2,c:\i386
- Delay,10
- Send,#Windows NT Setup2,{RETURN}
-
- ; Wait for the installation of networking
- Delay,140
-
- Wait,#Network Setup Wizard,160
- OnError,ERROR17
- delay,40
- Send,#Network Setup Wizard,{RETURN}
- Delay,10
- Send,#Network Setup Wizard,{RETURN}
-
- ; Wait for the system to complete some settings
- Delay,200
-
- Send,#Network Setup Wizard,{RETURN}
- Delay,10
-
- Send,#Network Setup Wizard,{RETURN}
-
- Wait,#Network Settings Change,160
- OnError,ERROR18
- Send,#Network Settings Change,{TAB}
- Delay,10
- Send,#Network Settings Change,{RETURN}
-
- ;===========================================================
- ;END OF WIZARD INSTALLATION FOR NT
- ;===========================================================
-
- Goto,VERIFY_INSTALL
-
- ;______________________________________________
- ; ON ERROR DISPLAY
- ; WINDOW NAME
- ;______________________________________________
- :ERROR18
- ;MsgBox,#Control Panel not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR17
- ;MsgBox,#Network Settings Change not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR16
- ;MsgBox,#Network Setup Wizard not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR15
- ;MsgBox,#Windows NT Networking Installation not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR14
- ;MsgBox,#RPC Configuration not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR13
- ;MsgBox,#NetBIOS Interface Setup not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR12
- ;MsgBox,#Workstation Services Setup not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR11
- ;MsgBox,#Server not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR10
- ;MsgBox,#NetBEUI Protocol not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR9
- ;MsgBox,#Windows NT Setup not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR8
- ;MsgBox,#Network Setup Wizard not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR7
- ;MsgBox,#Select OEM Option not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR6
- ;MsgBox,#Windows NT Setup not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR5
- ;MsgBox,#Insert Disk not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR4
- ;MsgBox,#@Caption not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR3
- ;MsgBox,#Select Network Adapter not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
- :ERROR2
- ;MsgBox,#Network Setup Wizard not found ! Anormal termination\,LanIntel installation aborted !
- Goto,CLOSEALL
-
-
-
- ;______________________________________________
- ; ON ERROR RESTORE DESKTOP
- ; BY CLOSING ALL OPENED WINDOWS
- ;______________________________________________
- :CLOSEALL
- Close,#Network Settings Change
- Close,#Network Setup Wizard
- Close,#Windows NT Networking Installation
- Close,#RPC Configuration
- Close,#NetBIOS Interface Setup
- Close,#Workstation Services Setup
- Close,#Server
- Close,#NetBEUI Protocol
- Close,#Windows NT Setup
- Close,#Network Setup Wizard
- Close,#Select OEM Option
- Close,#Windows NT Setup
- Close,#Insert Disk
- Close,#@Caption
- Close,#Select Network Adapter
- Close,#Network Setup Wizard
- Close,#Network Configuration
-
- Goto,FAIL
-
- ;______________________________________________
- ; END
- ;______________________________________________
-
-
- :FAIL
- #ERROR_MSG,#ERR_SETUP
- ; Write error somewhere...
- INI_KEY_WRITE,#F_RESULT,#Package,STATUS,FAIL
- INI_KEY_WRITE,#F_RESULT,#Package,CHECK,FAIL
- ; And finally exit the script
- GOTO,EXIT_ON_ERROR
-
- ;==========================================
- ; Apply any patch to registry or ini files
- ;
- ;==========================================
- :APPLY_PATCH
-
- ;==========================================
- ; Verify Install
- ;
- ;==========================================
- :VERIFY_INSTALL
-
- Delay,30
- ;================================================;
- ; First Change the computer name to a random one ;
- ;================================================;
- REG_SET_ROOT,HKCU
- REG_KEY_OPEN,\Volatile Environment
- REG_VAL_WRITE,STRING,LOGONSERVER,\\#COMPUTER_NAME
-
- REG_SET_ROOT,HKLM
- REG_KEY_OPEN,\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
- REG_VAL_WRITE,STRING,DefaultDomainName,#COMPUTER_NAME
-
- REG_KEY_OPEN,\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName
- REG_VAL_WRITE,STRING,ComputerName,#COMPUTER_NAME
-
- REG_KEY_OPEN,\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName
- REG_VAL_WRITE,STRING,ComputerName,#COMPUTER_NAME
-
- REG_SET_ROOT,HKLM
- REG_KEY_OPEN,\SOFTWARE\Intel\E100B\CurrentVersion
- REG_VAL_READ,STRING,Title
- FINDSTRING,#REGVALUE,Intel(R) PRO NDIS Driver
-
-
- ONGOOD,INSTALL_OK
- #ERROR_MSG,#ERR_VERIF
- ; Write error somewhere...
- INI_KEY_WRITE,#F_RESULT,#Package,STATUS,PASS
- INI_KEY_WRITE,#F_RESULT,#Package,CHECK,FAIL
- ; And finally exit the script
- GOTO,EXIT_ON_ERROR
-
-
- :INSTALL_OK
- INI_KEY_WRITE,#F_RESULT,#Package,STATUS,PASS
- INI_KEY_WRITE,#F_RESULT,#Package,CHECK,PASS
- INI_KEY_WRITE,#F_RESULT,#Package,Install_Stop,#NOW
- INI_KEY_WRITE,#F_RESULT,#Package,ERROR,None
- MSG_START,#FONT_SIZE,#COLOR_BACK,#COLOR_TEXT,#OK,#MSG_POS
- Delay,10
- :END_OF_SCRIPT
- LOG,#F_PASS
- GOTO,FIN
- :EXIT_ON_ERROR
- ; Tell user that package don't support the current LOC
- MSG_START,#FONT_SIZE,#COLOR_BACK,#COLOR_TEXT,#ERROR_MSG,#MSG_POS
- INI_KEY_WRITE,#F_RESULT,#Package,ERROR,#ERROR_MSG
- INI_KEY_WRITE,#F_RESULT,#Package,PACKAGE_REV,#Version
- INI_KEY_WRITE,#F_RESULT,#Package,TARGET_OS,#Target_OS
- INI_KEY_WRITE,#F_RESULT,#Package,OS,#OS_NAME #OS_MAJORVERSION.#OS_MINORVERSION
- INI_KEY_WRITE,#F_RESULT,#Package,SP,#OS_CSD
- INI_KEY_WRITE,#F_RESULT,#Package,LOC,#CURRENT_LOC
- INI_KEY_WRITE,#F_RESULT,#Package,Install_Stop,#NOW
- DELAY,20
- GRADIENT,clBlack,clBlack
- MSG_START,#FONT_SIZE,#CL_RED,#CL_BLACK,#FAIL,#MSG_POS
- DELAY,20
- :FIN
-
-
-
-