I have written this script to install Netscape Communicator. It works fine if Communicator is installed, script ends, or it is not installed, script executesd and installs Communicator. But, how could I check to see if a previous version is installed and to upgrade it to version 4.75. Say a user has version 3 installed and I want them to be upgraded to version 4.75. How do I check this in the script without it ending?
IF EXIST ("C:\Program Files\Netscape\Communicator\Program\netscape.exe") = 0
? "Installing Netscape Communicator v4.57"
SHELL "c:\install\setup.exe /S/SMS"
$NETSCAPE = @ERROR
IF $NETSCAPE <> 0
? "WARNING: There was an error installing Netscape v4.57"
ENDIF
ELSE
$NETSCAPE = 0
ENDIF