PDA

View Full Version : Problem uninstalling UT2004


synd7
October 29th, 2005, 10:19 PM
im trying to uninstall UT2004, space is running out on my comp, and when i run the uninstaller i get this:

ben@ubuntu:~$ cd /usr/local/games/ut2004
ben@ubuntu:/usr/local/games/ut2004$ ./uninstall
Could not find a usable uninstall program. Aborting.

ive updated it to 3355 and have the loki uninstaller installed, i installed the uninstaller after instaling the game, and the loki uninstaller doesnt recognise that the game is installed.
Also, while trying to uninstall it i accidentaly did "rm ut2004" in the u2004 directory,which removed the startup script, so now i cant run the game either. Maybe thats why the uninstaller wont recognise it.

heres the code for the uninstall script:
#! /bin/sh
#### UNINSTALL SCRIPT - Generated by SetupDB 1.6 #####
DetectARCH()
{
status=1
case `uname -m` in
amd64 | x86_64) echo "amd64"
status=0;;
i?86 | i86*) echo "x86"
status=0;;
90*/*)
echo "hppa"
status=0;;
*)
case `uname -s` in
IRIX*)
echo "mips"
status=0;;
AIX*)
echo "ppc"
status=0;;
*)
arch=`uname -p 2>/dev/null || uname -m`
if test "$arch" = powerpc; then
echo "ppc"
else
echo $arch
fi
status=0;;
esac
esac
return $status
}

DetectOS()
{
os=`uname -s`
if test "$os" = OpenUNIX; then
echo SCO_SV
else
echo $os
fi
return 0
}

if which loki-uninstall 2> /dev/null > /dev/null || type -p loki-uninstall 2> /dev/null > /dev/null; then
UNINSTALL=loki-uninstall
else
UNINSTALL="$HOME/.loki/installed/bin/`DetectOS`/`DetectARCH`/uninstall"
if test ! -x "$UNINSTALL" ; then
echo Could not find a usable uninstall program. Aborting.
exit 1
fi
fi
"$UNINSTALL" "/usr/local/games/ut2004/.manifest/ut2004.xml" "$1"

synd7
November 3rd, 2005, 03:40 AM
any help



p.s. bump:)

Jeremy23
July 15th, 2006, 07:45 AM
I'm sure after all these months you've either found a way of deleting UT2004 manually or reinstalled your OS so I'm little help now!

But, for future reference, I've found out why it doesn't work. Due to a bug/inconsistency in the Loki uninstall mechanism the uninstall script in programs like UT2004, ArmyOps and even the Loki Uninstaller itself references a wrong file.

If you go into the ./uninstall script (use "sudo nano uninstall" or "sudo vi uninstall" or "gksudo gedit uninstall") and change all instances of "loki-uninstall" to "loki_uninstall" (note the - is now a _ ) the uninstall script should work.

The Loki uninstaller I used was from http://liflg.org/?catid=4 (at the time of writing the second item in the list).

vem0m
July 15th, 2006, 10:15 AM
hmmmmmm my loki uninstaller pick mine up :P

Josh_b
August 23rd, 2006, 02:50 AM
i installed the game (nothing extra, I don't think) from the DVD and realised after I installed that I needed to put ut2004 in the directory (so now all the files are in /home/josh/games rather that /home/josh/games/ut2004) and I want to uninstall it and it says
Could not find a usable uninstall program. Aborting.

I tried changing the loki-uninstall to loki_uninstall but that didn't work. Any ideas?

Artificial Intelligence
August 23rd, 2006, 03:42 AM
You could remove it manually if you messed up the uninstaller:
cd /usr/local/games
sudo rm -rf ut2004
cd /usr/local/bin
sudo rm -rf ut2004


If you want to remove your personal setting in your home folder
cd
sudo rm -rf .ut2004

The application ---> Games entry
cd /usr/share/applications
sudo rm -rf ut2004.desktop

Josh_b
August 23rd, 2006, 03:46 AM
I made a copy of the uninstaller, so I still have the original.

Will your method actually uninstall it or just delete it (is that just the windows in me talking, or do I need to be aware of that for linux as well)

Artificial Intelligence
August 23rd, 2006, 04:09 AM
What I shown above is actually what the sript will do. There'll be no trace of ut2004.

randomnumber
December 17th, 2006, 07:23 AM
I just want to say thanks to Artificial Intelligence. It worked great.