Page 1 of 1 1
Topic Options
#58831 - 2001-09-05 09:09 PM VirusScan Setup Message Box
Anonymous
Unregistered


Hello, I need to create a silent install of McAfee VirusScan 4.5.1 on Win9x clients. My problem is when I run my kixtart file with the correct setup.exe switches, a message window appears with the following:
------------------------------------------
The following product(s) must be removed before setup can continue:

McAfee VirusScan v4.0.2

Would you like to do so now? Yes No
------------------------------------------
I'm trying to totally automate this install, however this message box appears asking for a yes or no. Is there a way in Kixtart to send a "Yes" or "Enter" on this default button? I have tried CHR and SENDKEYS, but they don't work. *Note* there isn't a switch in setup.exe to automatically choose this option.

Thanks for your assistance, -Blake

Top
#58832 - 2001-09-05 09:47 PM Re: VirusScan Setup Message Box
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Not familiar with McAfee, but with other products this is how I go about it.
I pull the uninstall string from the registry and execute it prior to the install.
code:

$isvp5installed = ReadValue("HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\ldvp 5.0", "uninstallstring")


You may try variations on the uninstall. There may be a silent option for it as well.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#58833 - 2001-09-06 05:46 PM Re: VirusScan Setup Message Box
Anonymous
Unregistered


I have been working w/mcafee s/w for several years now and my experience indicates that installing McAfee v4.5x via Login Script is NOT a good idea. after v4.02 is uninstalled, the system should be rebooted before v4.5x is installed or errors and problems will be forth comimg.
Top
#58834 - 2001-09-06 08:38 PM Re: VirusScan Setup Message Box
bleonard Offline
Seasoned Scripter
*****

Registered: 2001-01-19
Posts: 581
Loc: Chicago, IL
Bem -
The following describes NAI's position on silent uninstalls of VirusScan prior to v4.5, and the steps from the 'WHATSNEW.TXT' file for v4.03a to manually uninstall v4.03a from a system. Lastly, a desc from NAI to manually uninstall 4.03/4.02, but slightly different from 'WHATSNEW.TXT'.

Suggest looking for a 'WHATSNEW.TXT' file for v4.02 to see if similar information provided.

Bill

code:

NAI POSITION
============
SolutionID: 1.0.1571195.2401624 Printer-Friendly Page
Problem Description:
VirusScan or NetShield not completely uninstalled

Silent uninstall using WCDRSIL.INI

McShield not removed
NaiFsRec not removed
NaiFilter not removed

Problem Environment:
McAfee NetShield
McAfee VirusScan
Microsoft Windows NT

Changes affecting this problem:
VirusScan and NetShield 4.02 were changed to uninstall via the UNINSTALL.INS file.
During that process the WCMDRSIL.INI file did not get the proper changes to run
the silent uninstall using the UNINSTALL.INS file.


Solution:
In order to continue normal use on this system, a manual uninstall must be performed.
These instructions are included in the WHATSNEW.TXT file that was included
with the program or you can view the solution Manual Uninstall of VirusScan & NetShield.

MANUALLY UNINSTALL V4.03a
=========================

UNINSTALLING VIRUSSCAN SOFTWARE

To uninstall VirusScan software, click Start in the Windows
taskbar, point to Settings, then choose Control Panel.
Next, double-click the Add/Remove Programs control panel in
the folder, then select VirusScan from the program list.
Click Add/Remove to remove the program from your computer.

To remove VirusScan software without using the utility,
follow these steps:

1. Remove references to VirusScan software from your
AUTOEXEC.BAT and your SYSTEM.INI files. To do so,
follow these steps:

A. Start the Windows system editor. Click Start in
the Windows taskbar, then choose Run. Type
SYSEDIT in the Run dialog box, then click OK.

A set of text files will open on your screen. Your
AUTOEXEC.BAT file should appear as the first or
topmost window in this set. Click the title bar for
the SYSTEM.INI window to bring it to the foreground,
then locate this line:

[boot]SCRNSAVE.EXE=C:\PROGRA~1\NETWOR~1\MCAFEE~1\SCRSCAN.EXE

B. Change the line to read:

[boot]SCRNSAVE.EXE=C:\WINDOWS\SYSTEM\WINDOW~1.SCR

D. When you have deleted all VirusScan references in
your AUTOEXEC.BAT file and restored your SYSTEM.INI
file to its original state, choose Save from the
SYSEDIT File menu to save your changes, then choose
Exit from the File menu to quit the SYSEDIT
application.

2. Remove VirusScan icons from the Start menu. To do this,
follow these steps:

A. Click Start in the Windows taskbar, point to
Settings, then choose Taskbar.

B. Click the Start Menu Programs tab.

C. Click the Remove button.

D. Select the McAfee VirusScan folder in the list that
appears in the Remove Shortcuts/Folders dialog box,
then click Remove.

E. Windows will ask you to confirm your action. Click
Yes to continue.

F. Click Close to close the Remove Shortcuts/Folders
dialog box, then click OK to close the Taskbar
Properties dialog box.

3. Edit the Registry. To do this, follow these steps:

A. Start the Windows Registry editor. Click Start in
the Windows taskbar, then choose Run. Type REGEDIT
in the Run dialog box, then click OK.

B. Click + to expand the HKEY_LOCAL_MACHINE folder,
click + again to expand the SOFTWARE folder, then
click one more time to expand the CLASSES folder.
Next, delete these keys or entries:

.vsc
.vsh
\CLSID\{9EF56D61-A50F-11ce-B105-0000C04B2D52}
\CLSID\{C88249A0-AD7E-11cf-AD53-444553540000}
\comfile\shell\VirusScan
\Directory\shell\VirusScan
\Drive\shell\VirusScan
\Excel.Addin\shell\VirusScan
\Excel.Chart.5\shell\VirusScan
\Excel.Chart.8\shell\VirusScan
\Excel.Macrosheet\shell\VirusScan
\Excel.Sheet.5\shell\VirusScan
\Excel.Sheet.8\shell\VirusScan
\Excel.Template\shell\VirusScan
\Excel.Workspace\shell\VirusScan
\Excel.XLL\shell\VirusScan
\exefile\shell\VirusScan
\Office.Binder.8\shell\VirusScan
\Office.Binder.98\shell\VirusScan
\rtffile\shell\VirusScan
\VSConfigFile
\VSHConfigFile
\WinZip\shell\VirusScan
\Word.Document.6\shell\VirusScan
\Word.Document.8\shell\VirusScan
\Word.RTF\shell\VirusScan
\Word.RTF.8\shell\VirusScan
\Word.Template\shell\VirusScan
\Word.Template.8\shell\VirusScan


C. Move to the HKEY_LOCAL_MACHINE\SOFTWARE folder, then
delete these keys or entries:

1. McAfee
\Scan95
\ScreenScan

2. \Microsoft\Windows\CurrentVersion\AppPaths\

\SCAN32.EXE
\SCRSCAN.EXE
\VSHWIN32.EXE

3. \Microsoft\Windows\CurrentVersion\
Controls Folder\Display\shellex
\PropertySheetHandlers

\ScrScanP

4. \Microsoft\Exchange\Client\Extensions\

\Exchange Scan="4.0;C:\Program Files
\Network Associates\McAfee VirusScan
\emalscan.dll;1;11000000000000;1110000;"
\Outlook Setup Extension=
"4.0;Outxxx.dll;7;000000000000000;0000000000;OutXXX"

5. \Microsoft\Windows\CurrentVersion\Run\

\AvconsoleExe
\McAfeeWebScanX
\Vshwin32EXE
\VsStatEXE

6. \Microsoft\Windows\CurrentVersion\RunServices

\Vshwin32EXE

7. \Microsoft\Windows\CurrentVersion\SharedDLLs

\C:\WINDOWS\SYSTEM\MCAFECOM.DLL
\C:\WINDOWS\SYSTEM\MCKRNL.VXD
\C:\WINDOWS\SYSTEM\MCSCAN32.VXD
\C:\WINDOWS\SYSTEM\MCUTIL.VXD
\C:\WINDOWS\SYSTEM\VSHIELD.VXD
\C:\WINDOWS\SYSTEM\VSHINIT.VXD

8. \Microsoft\Windows\CurrentVersion\Uninstall

\McAfee VirusScan

D. Move to the HKEY_LOCAL_MACHINE\System\CurrentControlSet\
Services\VxD\ folder, then delete these keys or entries:

\VSHINIT

4. Restart your computer.

5. Delete VirusScan files and directories. To do so, follow
these steps:

A. Click Start, point to Programs, then choose Windows
Explorer.

B. Locate the folder that contains your copy of the
VirusScan software. If you chose the default
installation options, you should find the program
files in this directory path:

Program Files\Network Associates\McAfee VirusScan

C. Remove the following files from the \Windows\system
directory on your hard disk:

MCAFECOM.DLL
MCKRNL.VXD
MCSCAN32.VXD
MCUTIL.VXD
VSHIELD.VXD
VSHINIT.VXD

You have now removed the VirusScan software from your system.
Restart your computer to have your changes take effect.


NAI DESC TO MANUALLY UNINSTALL 4.02/4.03
========================================
SolutionID: 2.0.2466184.1875854 Printer-Friendly Page
Problem Description:
Performing a manual uninstall VirusScan & NetShield NT 4.02 & 4.03

Problem Environment:
McAfee VirusScan 4.03

McAfee VirusScan 4.03a

McAfee NetShield 4.02

McAfee NetShield 4.03

McAfee NetShield 4.03a

Microsoft Windows NT

McAfee VirusScan 4.02


Solution:
These instructions are also located in the whatsnew.txt

* UNINSTALLING VIRUSSCAN WITHOUT THE UNINSTALLATION UTILITY *

1. Before starting, follow these two substeps:

a. Run the Windows NT utility RDISK to create an
emergency repair disk.

b. Run the command UNLODCTR MCSHIELD from the Windows NT
command line to stop the registry from recording
performance counter information for the McShield
service.

2. Open the Windows NT Services Control Panel, then stop
the Network Associates Task Manager service, the
Network Associates McShield service, and the Network
Associates AlertManager service.

3. Stop the VirusScan console if running.

4. Using the NT Task Manager, end the SHSTAT process.

5. If you use SNMP, stop the SNMP service in
Control Panel/Services.

6. Delete the VirusScan installation directory (the
directory that contains the VirusScan executables).

7. Delete this device driver file from %SYSTEMROOT%
\SYSTEM32\DRIVERS

NAIFSREC.SYS
MCFSREC.SYS
MCSCAN.SYS
MCUTIL.SYS
MCKRNL.SYS
MCFILTER.SYS
MCSHIELD.SYS

Delete this file from %SYSTEMROOT%\SYSTEM32\

DSSDATA.DLL

8. If you are using Windows NT 4.0 and if VirusScan was
set to load at startup, remove the following registry
keys:

HKLM\software\microsoft\windows\CurrentVersion\Run
\Shstatexe
HKLM\software\microsoft\windows\CurrentVersion
\uninstall\VirusScan NT

9. Remove VirusScan installation registry keys:
HKLM\software\mcafee\mcalsnmp
HKLM\software\network associates\VirusScan for Windows NT
HKLM\software\mcafee\virusscan
HKLM\software\mcafee\alertmanager (Do not remove this
key if you have
other Network
Associates products
installed that use
Alertmanager.)

10. Remove VirusScan device driver and service registry
keys:
HKLM\system\CurrentControlSet\Services\Alertmanager
HKLM\system\CurrentControlSet\Services\NaiFilter
HKLM\system\CurrentControlSet\Services\NaiFsrec
HKLM\system\CurrentControlSet\Services\McShield
HKLM\system\CurrentControlSet\Services\McTaskManager
HKLM\system\CurrentControlSet\Services\McFilter
HKLM\system\CurrentControlSet\Services\McFsrec
HKLM\system\CurrentControlSet\Services\McKrnl
HKLM\system\CurrentControlSet\Services\McScan
HKLM\system\CurrentControlSet\Services\McUtil

11. If you are using Windows NT 4.0 and the
context-sensitive scanning option was installed, remove
the following registry keys:
HKLM\software\classes\comfile\shell\virusscan
HKLM\software\classes\directory\shell\virusscan
HKLM\software\classes\drive\shell\virusscan
HKLM\software\classes\exefile\shell\virusscan
HKLM\software\classes\word.document.6\shell\virusscan
HKLM\software\classes\word.document.8\shell\virusscan
HKLM\software\classes\word.template\shell\virusscan

12. If you are using Windows NT 4.0 and you want to remove
the Scan for Viruses right-click option, remove the
following registry keys:
HKCR\comfile\shell\VirusScan
HKCR\Directory\shell\VirusScan
HKCR\Drive\shell\VirusScan
HKCR\exefile\shell\VirusScan
HKCR\Excel.Addin\shell\VirusScan
HKCR\Excel.Chart.5\shell\VirusScan
HKCR\Excel.Macrosheet\shell\VirusScan
HKCR\Excel.Sheet.5\shell\VirusScan
HKCR\Excel.Template\shell\VirusScan
HKCR\Excel.Workspace\shell\VirusScan
HKCR\Excel.XLL\shell\VirusScan
HKCR\exefile\shell\VirusScan
HKCR\WinZip\shell\VirusScan
HKCR\Word.Document.6\shell\VirusScan
HKCR\Word.Template\shell\VirusScan

13. To remove SNMP extension agent, remove the following
registry value:
HKLM\system\CurrentControlSet\services\SNMP\parameters\
ExtensionAgent\McAlSNMP

14. Since entries in HkeyClassesRoot are not derived
from a hive, it is unnecessary to delete these keys
manually. When you reboot, VirusScan-specific keys
under HkeyClassesRoot will be removed.

15. Reboot the system.


[ 06 September 2001: Message edited by: bleonard ]

Top
#58835 - 2001-09-07 09:48 AM Re: VirusScan Setup Message Box
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Blake,

It can be scripted to silently remove the old version and reboot and then install the new version.

Try looking at WiseSolutions or InstallShield capabilities.

Can also be done with freee tools, but takes a little more work in creating the script.

Basically do a snapshot of a system before and after a removal of the product and create your script to perform the same task.

I know it works because I have done it in the past.

Top
#58836 - 2001-09-07 04:35 PM Re: VirusScan Setup Message Box
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
do something like this:
code:

read registry for both mcafee versions
if error reading registry
check probable install dir for the old exe
if exe doesn't exist
install new mcafee
force reboot
else
net send for MIS support for hands-on
compare it the the current version
if installed is less than current version
read registry for uninstall string
uninstall old mcafee
force reboot
<addl code to update dat files>

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#58837 - 2001-09-13 06:50 AM Re: VirusScan Setup Message Box
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11628
Loc: CA
Hi Blake

Is this enough information or do you need further assistance?

Top
#58838 - 2001-09-13 07:28 PM Re: VirusScan Setup Message Box
Anonymous
Unregistered


Thank you to all who replied. I am in the process of trying to engineer this update. I cannot decided whether to use McAfee's uninstall program (which removes other program files, doesn't complete the uninstall, and leaves old McAfee folders) or write a kix script to totally remove all files, processes, and registry entries. This may be my best bet seeing that I can control what is removed. I also may end up having the new McAfee 4.5.1 install remove the older versions (4.0.2 & 4.0.3). If I go this route, then user intervention will be required. Unfortunately, McAfee VirusScan 4.5.1 requires 2 dialogued reboots; one for the installation of Microsoft's Windows Installer, and one final reboot.

Thanks again, Blake - God Bless America

Top
#58839 - 2001-09-13 08:08 PM Re: VirusScan Setup Message Box
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
The approach I took, for an ill-behaved uninstall, was to let the uninstall do it's thing and then use KIX to clean up after it and reboot if necessary. Since some uninstalls remove stuff from the registry including stuff from HKEY_CLASSES_ROOT, that is no easy task to do manually.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 1172 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.065 seconds in which 0.033 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