Novell Cool Solutions: Trench
Digg This -
Posted: 6 Nov 2002
We recently posted this Q&A:
Question: I know that ZEN is mainly used to install applications, but could NAL/ZEN be used to uninstall something such as Inoculan? Inoculan was not installed using ZEN initially.
Failing that, does someone know of a utility that would let us pass keystrokes to a program running in a command prompt on Windows 2000?
Answer: We don't know of anything specifically made to uninstall Inoculan, but we've seen reports from people who have used zappkit2.exe to uninstall apps that weren't originally installed via ZENworks. You may have to create a working Inoculan installation and then remove it with one of the tools included in the kit. Be careful, since the uninstall tool may delete files or registry entries that are used by other applications. Be sure to carefully edit the unistall scripts created by the tool.
OPEN CALL: Anyone know of a better way to do this? Let us know.
I've used ZEN to uninstall Inoculan, and it worked fairly well. If the installs were all the same (automated, installed to default drive and location), of course it went much better. In areas with customized installs, a new snAppShot had to be made of the uninstall of Inoculan from the custom location.
Also, I know Symantec gives suggestions on how to uninstall from Start|Run using the MSIEXEC.EXE and a parameter. I'm wondering if this could be used as a simple ZEN App for uninstalling other things that use the MSI to install.
I can think of three options which may help a little, with some "gotchas" to watch out for.
Version upgrades - As part of any application install with ZEN, I uninstall the previous version and install the new version as part of the snAppShot process. This ensures the machines are well maintained. There are a few "gotchas" with the new version of snAppShot. Basically if the app you're uninstalling has a common file with the new app you want to upgrade to, snAppShot gets a bit confused and only records the deletion of the common file rather than recording it as updated (I haven't gotten around to reporting yet!). The other gotcha is the registry settings. Inoculan in particular adds entries to areas which are machine specific. The workaround here is to use "regread" and/or kickstart to read the key, pull out the Inoculan entries and write back the key. ZEN can't do this...(wish list!!). If it's just a path statement then use pathman...you will need a separate AO for this if it's in the system path.
Straight Uninstall AO - Just snAppShot the uninstall and be aware of the "gotchas" mentioned above.
Uninstall AO string - Use the uninstall string stored in the registry for Inoculan and build an AO with the string. This gets around the registry issue. You will have to find the switches to make it an automated uninstall. CA doesn't document these very well but they are there.
(Updated with file and readme text. Sorry!)
We solved the "Uninstall InocuLAN problem" this way:
The application object copies three files to the workstation:
Run StopIn.cmd from an application object. The object should be run as a "Unsecure system user". In our case this was done at the time as we installed Norton antivirus on our workstations.
This is what StopIn.cmd does:
@ECHO OFF REM Name: StopIn.cmd REM Description: Uninstall InocuLAN Antivirus. REM Belongs to Appobject ... TITLE Uninstall InocuLAN Antivirus c: cd\ cd c:\Temp ECHO *** Stop the InocuLAN service *** NET STOP "Cheyenne InocuLAN Anti-Virus Server" ECHO *** Uninstall InocuLAN from the registry *** Regedit /S UnInstall-InocuLAN.reg IF NOT EXIST c:\Inoculan GOTO END ECHO *** Deletes directorys/files from the harddisk *** c:\Temp\RemoveDir c:\Inoculan :END EXIT
RemoveDir.exe is a little VB-app that deletes given directory with its subdirectories and files.
Marcus Westlund and Per-Jan Eriksson:
Swedish National Police Board
If you have any questions you may contact Per-Jan at email@example.com
If Innoculan is installed on the default directory then you can uninstall Innoculan by running:
This path can be put into the Path to the executable file in the application object.
If Innoculan was installed into another directory, than you should specify the directory where it was installed.
The uninstall program above will cleanup Innoculan completely from the client workstation without even having to specify the "password" if you have protected the installation with a password so that user cannot exit Innoculan.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com