wineprefixcreate: Use wineboot --update to run wine.inf.

This commit is contained in:
Alexandre Julliard 2008-04-21 15:47:47 +02:00
parent e44dd0f8f2
commit bab67d3948
1 changed files with 2 additions and 33 deletions

View File

@ -59,7 +59,6 @@ esac
bindir=`cd "$bindir" && pwd`
dlldir="$bindir/@bintodlldir@"
datadir="$bindir/@bintodatadir@"
do_wait=0
quiet=0
@ -79,7 +78,6 @@ then
LD_LIBRARY_PATH="$topdir/libs/wine"
fi
export LD_LIBRARY_PATH
datadir="$topdir/tools"
fi
while [ $# -gt 0 ]
@ -122,33 +120,9 @@ else
fi
WINEPREFIX=`cd "$WINEPREFIX" && pwd`
# Create the drive symlinks
if [ ! -d "$WINEPREFIX/dosdevices" ]
then
mkdir "$WINEPREFIX/dosdevices"
[ -d "$WINEPREFIX/drive_c" ] || mkdir "$WINEPREFIX/drive_c"
ln -s "../drive_c" "$WINEPREFIX/dosdevices/c:"
ln -s "/" "$WINEPREFIX/dosdevices/z:"
fi
CROOT="$WINEPREFIX/dosdevices/c:"
# Create the directory tree
for i in \
"$CROOT/windows" \
"$CROOT/windows/inf"
do
[ -d "$i" ] || mkdir "$i"
done
# Copy the .inf script and run it
cp "$datadir/wine.inf" "$CROOT/windows/inf/wine.inf"
export WINEPREFIX
"${WINELOADER:-$bindir/wine}" rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 wine.inf
"${WINELOADER:-$bindir/wine}" wineboot.exe --update
# Wait for the wineserver to finish
@ -156,8 +130,3 @@ if [ $do_wait = 1 ]
then
"${WINESERVER:-$bindir/wineserver}" -w
fi
if [ $quiet = 0 ]
then
echo "$WINEPREFIX updated successfully."
fi