Removing Filewave

jeremy_spolande
New Contributor

Hello,

Pretty sure an old installation of filewave is messing up a couple of casper clients and policies.

They aren't the quickest to respond unless you are buying something imminently and its not clear how to uninstall. Anybody seen this before and know how to uninstall Filewave?

Thanks

5 REPLIES 5

Rosko
Contributor II
Contributor II

Here are some terminal commands we use...

Disable FW #1

SystemStarter stop fwcld
rm -r /usr/local/sbin/FileWave.app
rm -r /usr/local/etc/FileWave; rm -r /usr/local/etc/fwcld

rm -r /private/var/log/fwcld*

Disable FW #2

ps ax | grep fw

Disable FW#3

kill
------------------------------------------------------------------------------------------

For the last kill command just add the process id's for the filewave processes running. ie. kill 91 558 1283 9513 etc...

Let me know if you have any other questions, but this does uninstall the client from the system. We've been using this alot as we are migrating from FileWave to Casper Suite right now.

jeremy_spolande
New Contributor

Thanks, they supplied us with a very similar script

#!/bin/sh
##Kills the client, removes all FileWave software (including the catalog and anything inactive)
##The system will stay in its current state, FW will no longer have control over any files.

/usr/bin/killall fwcld
/usr/bin/killall fwGUI
/bin/rm -rf /var/FileWave/
/bin/rm -R /usr/local/sbin/FileWave.app
/bin/rm /usr/local/etc/fwcld.plist
/bin/rm /sbin/fwcontrol

rm /Library/LaunchAgents/com.filewave.fwGUI.plist
rm /Library/LaunchDaemons/com.filewave.fwcld.plist
rm /private/var/db/receipts/com.filewave.fwcld.pkg.bom
rm /private/var/db/receipts/com.filewave.fwcld.pkg.plist
/bin/rm /var/log/fwcld*

rtrouton
Release Candidate Programs Tester

Since this seems to be a script that's hard to find, I've cleaned it up slightly and posted it to my GitHub repo. I've also built a payload-free package that runs this script:

https://github.com/rtrouton/rtrouton_scripts/tree/master/rtrouton_scripts/uninstallers/filewave_unin...

marck
New Contributor III

First post here. We are in the process of transitioning from a few FileWave clients to Casper. Based on info from this thread and what I've observed on test machines here's the script I've come up with.

!/bin/sh

Script for uninstalling the FileWave client up to version 10.1

This should be tested before deploying

Not all versions for FW have all of the listed components

Removal of items that don't exist doesn't hurt, as long as names are correct

After uninstalling it is better to logout the user

Without logout the Filewave Kiosk may continue to run

Try to unload FW Launch Agents and Launch Daemons

/bin/launchctl unload -w /Library/LaunchAgents/com.filewave.fwGUI.plist
/bin/launchctl unload -w /Library/LaunchDaemons/com.filewave.fwcld.plist
/bin/launchctl unload -w /Library/LaunchDaemons/com.filewave.fwVNCServer.plist

Attempt to kill FW processes

/usr/bin/killall fwcld
/usr/bin/killall fwGUI
/usr/bin/killall OSXvnc-server

Remove the LaunchAgent and Daemon files to prevent FW from trying to start up agin

/bin/rm -rf /Library/LaunchAgents/com.filewave.fwGUI.plist
/bin/rm -rf /Library/LaunchDaemons/com.filewave.fwcld.plist
/bin/rm -rf /Library/LaunchDaemons/com.filewave.fwVNCServer.plist
/bin/rm -rf /Library/LaunchDaemons/com.filewave.fwVNCServer.plist.bak

Remove the varios FW installed bits and pieces

/bin/rm -rf /usr/local/etc/fwcld.plist

/bin/rm -rf /usr/local/sbin/FileWave.app
/bin/rm -rf /usr/local/sbin/Client Assistant.app

/bin/rm -rf /usr/local/bin/fwcontrol

/bin/rm -rf /sbin/fwcontrol

/bin/rm -rf /Library/Frameworks/FileWaveCore.framework

/bin/rm -rf /var/FileWave/
/bin/rm -rf /var/db/receipts/com.filewave.fwcld.pkg.bom
/bin/rm -rf /var/db/receipts/com.filewave.fwcld.pkg.plist

/bin/rm -rf /var/log/fwcld
/bin/rm -rf /var/log/fwVNCServer

Tell the system to forget that FW was ever installed

/usr/sbin/pkgutil --forget com.filewave.fwcld.pkg

exit 0

JustinN
New Contributor III

Filewave has posted a Fileset script. I don't think it's improper of me to post this here.

!/bin/bash

Removes all FileWave Client software components (including the catalog and anything inactive)

The system will stay in its current state, FW will no longer have control over any files.

[removed by me]@filewave.com / 26-OCT-2016

Also deletes the FileWave preferences.

uncomment the following three lines for a detailed logfile

exec >/var/log/filewaveclient-uninstaller.log
exec 2>&1
set -x

unload ancient launchd entries

unload launchd entries

launchctl unload /System/Library/LaunchDaemons/com.filewave.fwcld.plist
launchctl unload /System/Library/LaunchAgents/com.filewave.fwGUI.plist

unload launchd entries

launchctl unload /Library/LaunchDaemons/com.filewave.fwcld.plist
launchctl unload /Library/LaunchAgents/com.filewave.fwGUI.plist
launchctl unload /Library/LaunchAgents/com.filewave.fwVNCServer.plist

remove launchd plists

rm -f /Library/LaunchDaemons/com.filewave.fwcld.plist
rm -f /Library/LaunchAgents/com.filewave.fwGUI.plist
rm -f /Library/LaunchAgents/com.filewave.fwVNCServer.plist*

terminate any trailing instances of OSXvnc-Server

killall OSXvnc-server

terminate any trailing instances of fwGUI

killall fwGUI

terminate filewave client if launchd hasn't done it yet

killall fwcld

remove legacy files for ancient versions

rm -f /usr/local/etc/fwcld.conf rm -rf /System/Library/StartupItems/FWClient/ /System/Library/LaunchAgents/com.filewave.fwGUI.plist /System/Library/LaunchDaemons/com.filewave.fwcld.plist

remove filewave client preferences

rm -f /usr/local/etc/fwcld.plist
rm -f /Library/Preferences/com.filewave.plist
rm -f /Library/Preferences/com.filewave.WinClient.plist
rm -f /Library/Preferences/com.filewave.Client.plist

remove user preferences ( per user )

find /Users -maxdepth 1 -mindepth 1 -type d|grep -v Shared|xargs -I {} rm -f {}/Library/Preferences/com.filewave-kiosk.FileWave Kiosk.plist
find /Users -maxdepth 1 -mindepth 1 -type d|grep -v Shared|xargs -I {} rm -f {}/Library/Preferences/com.filewave.client.FileWave Client.plist

remove filewave client binaries

rm -rf /usr/local/sbin/FileWave.app

remove FileWave Kiosk.app , if present

rm -rf /Applications/FileWave Kiosk.app

remove filewave client log files, including script logs

rm -rf /var/log/fwcld*
rm -f /Library/Application Support/FileWave/FWGUI.log

remove filewave gui / kiosk log files ( per user )

find /Users -maxdepth 1 -mindepth 1 -type d|grep -v Shared|xargs -I {} rm -f {}/Library/Application Support/FileWave/FWGUI.log

remove filewave client installer artifacts

rm -rf /var/db/receipts/com.filewave.fwcld*

verify if there are further filewave components installed - if no , remove the shared Libraries as well

if [ $(ls -l /var/db/receipts/com.filewave.*|wc -l) -eq 0 ] ; then
rm -rf /Library/Frameworks/FileWaveCore.framework
fw_control=which fwcontrol
rm -f $fw_control
fi

remove filewave client data directory ( includes client state, application monitoring DB, custom inventory field contents )

rm -rf /var/FileWave/

script cleanup

rm -f "$0"

exit 0