--- winex-3.1/tools/winex.~1.6.~	2002-12-23 13:39:23.000000000 -0600
+++ winex-3.1/tools/winex	2003-07-05 22:04:36.000000000 -0500
@@ -14,7 +14,6 @@
 export INSTALLDIR=/usr/lib/transgaming
 
 # Set up the WINEPREFIX and LD_LIBRARY_PATH
-export WINEPREFIX="$HOME/.transgaming"
 export LD_LIBRARY_PATH="$INSTALLDIR/winex/lib:$INSTALLDIR/winex/bin"
 
 # Set up the path so that ancilary apps (like the debugger) can start
@@ -27,85 +26,6 @@
 export WINE_LOADER=winex
 
 RUNWINE="$INSTALLDIR/winex/bin/wine" 
-REGAPI="$INSTALLDIR/winex/bin/regapi" 
-
-# If we're being run for the first time:
-if !([ -e "$WINEPREFIX" ]); then
-
-# Copy the .transgaming directory into the user's home dir
-
-    cp -r "$INSTALLDIR/.transgaming" "$HOME"
-
-# Ensure that user has appropriate permissions for all subdirs
-
-    chmod -R u+w "$WINEPREFIX"
-
-# Link the c_drive to the user's home
-    if [ ! -d "$HOME/TransGaming_Drive" ]; then
-        ln -s "$WINEPREFIX/c_drive" "${HOME}/TransGaming_Drive"
-    fi
-
-# Link the regsvr32 applet into the windows system directory
-    if [ ! -e "$WINEPREFIX/c_drive/windows/system32/regsvr32" ]; then
-        ln -s "$INSTALLDIR/winex/bin/regsvr32" "$WINEPREFIX/c_drive/windows/system32/regsvr32"
-        ln -s "$INSTALLDIR/winex/bin/regsvr32.so" "$WINEPREFIX/c_drive/windows/system32/regsvr32.so"
-    fi
-
-# Now update the registry keys
-    "$REGAPI" -- setValue -force < "$INSTALLDIR/update.reg" &> /dev/null
- 
-fi
-
-# Establish the current config version
-CUR_CONFIG_VERSION=5
-
-# Get the version of the config files / registry
-if [ -e "$WINEPREFIX/tg_config_version" ]; then
-    TG_CONFIG_VERSION=`cat "$WINEPREFIX/tg_config_version"`
-else
-    TG_CONFIG_VERSION=1
-fi
-
-# Check if we need to update the config
-if [ $TG_CONFIG_VERSION -lt $CUR_CONFIG_VERSION ]; then
-
-# We need to update.  Inform the user of the update
-    echo "Updating TransGaming config and registry info"
-                                                               
-# First copy in the new config file.  Save the old one first
-    mv "$WINEPREFIX/config" "$WINEPREFIX/config.old"  
-    cp "$INSTALLDIR/.transgaming/config" "$WINEPREFIX/config"
-
-# Now the dynamic registry data
-    cp "$INSTALLDIR/.transgaming/dyndata.reg" "$WINEPREFIX/dyndata.reg"
-
-# Now update the registry keys
-    "$REGAPI" -- setValue -force < "$INSTALLDIR/update.reg" &> /dev/null
-
-# Create a 'My Documents' directory, if it doesn't already exist
-    if [ ! -d "$WINEPREFIX/c_drive/My Documents" ];  then
-      mkdir "$WINEPREFIX/c_drive/My Documents"
-    fi
-
-# And new things for the windows directory
-    cp "$INSTALLDIR/.transgaming/c_drive/windows/system.ini" "$WINEPREFIX/c_drive/windows/system.ini"
-    cp "$INSTALLDIR/.transgaming/c_drive/windows/system32/ddraw.dll" "$WINEPREFIX/c_drive/windows/system32"
-    cp "$INSTALLDIR/.transgaming/c_drive/windows/system32/dinput.dll" "$WINEPREFIX/c_drive/windows/system32"
-    cp "$INSTALLDIR/.transgaming/c_drive/windows/system32/dinput8.dll" "$WINEPREFIX/c_drive/windows/system32"
-    cp "$INSTALLDIR/.transgaming/c_drive/windows/system32/d3d8.dll" "$WINEPREFIX/c_drive/windows/system32"
-    cp "$INSTALLDIR/.transgaming/c_drive/windows/system32/dmusic.dll" "$WINEPREFIX/c_drive/windows/system32"
-    cp "$INSTALLDIR/.transgaming/c_drive/windows/system32/d3drm.dll" "$WINEPREFIX/c_drive/windows/system32"
-
-# Link the regsvr32 applet into the windows system directory
-    if [ ! -e "$WINEPREFIX/c_drive/windows/system32/regsvr32" ]; then
-        ln -s "$INSTALLDIR/winex/bin/regsvr32" "$WINEPREFIX/c_drive/windows/system32/regsvr32"
-        ln -s "$INSTALLDIR/winex/bin/regsvr32.so" "$WINEPREFIX/c_drive/windows/system32/regsvr32.so"
-    fi
-
-# Write out the new version number
-    cp "$INSTALLDIR/.transgaming/tg_config_version" "$WINEPREFIX/tg_config_version" 
-
-fi
 
 # Every time
 
