Page 1 of 1 1
Topic Options
#13273 - 2001-10-16 08:51 PM How to check if a program is installed?
Anonymous
Unregistered


I am going nuts! We are rolling out Norton AV and doing away with McAfee AV. But to do it by script, I want to check and see if one or the other is already installed (over time, some machines have gotten Norton already). The problem is that there hadn't been a standard location for the install of McAfee or Norton.

Is there away to check if a program is installed if you do not know the path (either on C or D)?

Thanks for any help!

Top
#13274 - 2001-10-16 09:12 PM Re: How to check if a program is installed?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Don't know McAfee but for outhers, you can check the registry for the uninstallstring. It will hold the command to ininstall. FE, when I rooled out NAV 7.5, I had to uninstall LDVP first.
code:

; - check if VP5 is installed
;
$vp5uninstall = "C:\Program Files\LANDesk\VP5\vpremove.exe"
$isvp5installed = ReadValue("HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\ldvp 5.0", "uninstallstring")
if $isvp5installed <> $vp5uninstall goto skipuninstall
endif
if @INWIN = 2
MessageBox("NOTICE!" + Chr(13) + "LANDesk Virus Protect must first be uninstalled." + Chr(13) + "System must REBOOT when complete!" + Chr(13) + "Choose Yes to uninstall and Yes to reboot" + Chr(13) + "on the two options that follow","Norton AntiVirus 7.5 Install",48,60)
RUN "C:\Program Files\LANDesk\VP5\vpremove.exe"
goto finish
endif
RUN "C:\Program Files\LANDesk\VP5\vpremove.exe"
sleep( 1 )
setfocus("Uninstall Message")
sendkeys({ENTER})
sleep( 15 )
setfocus("Uninstall Message")
sendkeys({ENTER})
endif
;

There are a lot of posts on this board related to NAV and McAfee. Check out post:
http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=2&t=001912

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#13275 - 2001-10-19 02:40 AM Re: How to check if a program is installed?
Anonymous
Unregistered


Thanks for the help! Have done what I need to do!
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 837 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.049 seconds in which 0.023 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