I need some ones assistance in understanding whats wrong with this. When I run it, it doesn't seem to do anything. In DEBUG it runs thru the script fine but again doesn't seem to do anything. Can I execute the DOS command this way with switches and all or do I need to do something else here. Your assistance is greatly appreciated. I have included two different variations on how I've tried to do it.
Code:
;*************************************************************************
; Script Name: CLIACCUP.KIX
; Author: Roger VanOrman
; Date: 5/5/2004
; Description: Update IBM Client Access on 2000 or NT machines from V4R4M0 or V4R5M0 to V5R2M0.
;*************************************************************************
;
USE N:"\\ServerName\DEPLOY"
;
$CAVer=GETFILEVERSION("C:\Progra~1\IBM\Client~1\cwbuisxe.exe","ProductVersion")
; Get the product version of the installed client access.
;
$OSVER=@PRODUCTTYPE
;Get the verison of the OS running.
;
$Filespec='N:\ISeries\setup.exe'
; Location of the installation executable file on the network
;
$NTV4R4M0='-s -SMS -f1N:\ISERIES\NTV4R4M0.iss'
$NTV4R5M0='-s -SMS -f1N:\ISERIES\NTV4R5M0.iss'
$2000V4R4M0='-s -SMS -f1N:\ISeries\V4R4M0.iss'
$2000V4R5M0='-s -SMS -f1N:\Iseries\V4R5M0.iss'
;Configurtaion file variables for configuration files.
;
; ** Do not modify code below this line ****************************************************************************************************
;
if Not $ConnType='LAN' and $NTtype<>'Server' ; fundamental conditions for proceeding (We don't touch servers, nor would we try this over a modem connection)
select
case $OSVER='Windows NT Workstation' and $CAVER='V4R4M0';Windows NT 4 with Client Access V4R4M0
RUN "N:\ISERIES\Setup.exe -s -SMS f1N:\Iseries\NTV4R4M0.iss"
case $OSVER='Windows NT Workstation' and $CAVER='V4R5M0';Windows NT 4 with Client Access V4R5M0
Run "N:\Iseries\setup.exe -s -SMS f1N:\Iseries\NTV4R5M0.iss"
case $OSVER='Windows 2000 Professional' and $CAVER='V4R4M0';Window 2000 with Client Access V4R4M0
Run "$Filespec,$2000V4R4M0"
case $OSVER='Windows 2000 Professional' and $CAVER='V4R5M0';Window 2000 with Client Access V4R5M0
RUN "$Filespec,$2000V4R5M0"
case 1 ; Client Access Version not supported by this script
MESSAGEBOX("Your version of client Access is not supported by this installation. Please contact the help desk at 210-648-8855","Client Access installation Message",4144,0)
endselect
endif
;
RETURN ; Must be last line of file. Do not remove this line