Page 1 of 1 1
Topic Options
#8008 - 2001-04-06 08:40 PM Netscape Communicator Custom Install
Anonymous
Unregistered


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



Top
#8009 - 2001-04-06 09:41 PM Re: Netscape Communicator Custom Install
cmarti Offline
Hey THIS is FUN

Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
I have 4.72 installed on my nt machine and my registry entry for it looks like this:
$NETSCAPE472 = EXISTKEY("HKEY_LOCAL_MACHINE\SOFTWARE\NETSCAPE\NETSCAPE NAVIGATOR\4.72 (EN)"). So if they haven't changed their registry entry you should be able to use:
$NETSCAPE475 = EXISTKEY("HKEY_LOCAL_MACHINE\SOFTWARE\NETSCAPE\NETSCAPE NAVIGATOR\4.75 (EN)")
If exist <> 0
'Install new version of netscape'
Else
Endif

Top
#8010 - 2001-04-06 10:16 PM Re: Netscape Communicator Custom Install
Anonymous
Unregistered


Thanks for the info. One question. I uninstalled Netscape Communicator 4.75 from my NT machine, rebooted and when I looked at the registry, it still had an antry for netscape that looks like this:

HKEY_LOCAL_MACHINE\SOFTWARE\NETSCAPE\NETSCAPENAVIGATOR\4.75 (en).

So when I write my script to check to see if Netscape is not installed, will it look at this an interpret it that it is installed, even though I went through the un-installation procedure and re-booted? Thanks!!!

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.158 seconds in which 0.096 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org