2007-06-03 22:12:03 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# Quick and dirty script to download and install various
|
|
|
|
# redistributable runtime libraries
|
|
|
|
#
|
2008-01-26 00:25:01 +01:00
|
|
|
# Copyright 2007, 2008 Google (Dan Kegel, dank@kegel.com)
|
2007-06-03 22:12:03 +02:00
|
|
|
# Thanks to Detlef Riekenberg for lots of updates
|
|
|
|
# Thanks to Saulius Krasuckas for corrections and suggestions
|
|
|
|
|
2007-10-05 00:39:47 +02:00
|
|
|
# Default values for important settings if not already in environment.
|
|
|
|
# These settings should not need editing here.
|
2007-06-03 22:12:03 +02:00
|
|
|
WINE=${WINE:-wine}
|
|
|
|
WINEPREFIX=${WINEPREFIX:-$HOME/.wine}
|
2007-10-05 00:39:47 +02:00
|
|
|
|
|
|
|
# Internal variables; these locations are not too important
|
2007-06-03 22:12:03 +02:00
|
|
|
WINETRICKS_CACHE=$HOME/winetrickscache
|
2008-02-25 17:48:50 +01:00
|
|
|
# Default to hiding the directory, by popular demand
|
2008-05-24 11:28:41 +02:00
|
|
|
test -d "$WINETRICKS_CACHE" || WINETRICKS_CACHE=$HOME/.winetrickscache
|
|
|
|
WINETRICKS_TMP="$WINEPREFIX"/drive_c/winetrickstmp
|
|
|
|
mkdir -p "$WINETRICKS_TMP"
|
|
|
|
WINETRICKS_TMP_WIN='c:\winetrickstmp'
|
|
|
|
|
|
|
|
# Which sourceforge mirror to use. Rotate based on time, since
|
|
|
|
# their mirror picker sometimes persistantly sends you to a broken
|
|
|
|
# mirror.
|
|
|
|
case `date +%S` in
|
|
|
|
*[01]) SOURCEFORGE=http://internap.dl.sourceforge.net/sourceforge ;;
|
|
|
|
*[23]) SOURCEFORGE=http://easynews.dl.sourceforge.net/sourceforge ;;
|
|
|
|
*) SOURCEFORGE=http://downloads.sourceforge.net;;
|
|
|
|
esac
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2008-02-25 17:48:50 +01:00
|
|
|
case "$1" in
|
|
|
|
-V|--version)
|
2009-01-21 14:32:01 +01:00
|
|
|
echo "Winetricks version 20080710. (C) Dan Kegel. LGPL."
|
2008-02-25 17:48:50 +01:00
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2008-04-24 09:17:49 +02:00
|
|
|
die() {
|
|
|
|
echo "$@"
|
|
|
|
|
|
|
|
case x"$GUI" in
|
|
|
|
x1) xmessage -center " Winetricks error: $@ " ;;
|
|
|
|
*) ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2009-01-21 14:32:01 +01:00
|
|
|
which "$WINE" > /dev/null
|
|
|
|
if test "$?" -ne "0"
|
2007-10-05 00:39:47 +02:00
|
|
|
then
|
2008-04-24 09:17:49 +02:00
|
|
|
die "Cannot find wine ($WINE)"
|
2007-10-05 00:39:47 +02:00
|
|
|
fi
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
usage() {
|
|
|
|
set +x
|
|
|
|
echo "Usage: $0 [options] package [package] ..."
|
|
|
|
echo "This script can help you prepare your system for Windows applications"
|
|
|
|
echo "that mistakenly assume all users' systems have all the needed"
|
|
|
|
echo "redistributable runtime libraries or fonts."
|
|
|
|
echo "Some options require the Linux 'cabextract' program."
|
|
|
|
echo ""
|
|
|
|
echo "Options:"
|
|
|
|
echo " -q quiet. You must have already agreed to the EULAs."
|
2008-02-25 17:48:50 +01:00
|
|
|
echo " -v verbose"
|
|
|
|
echo " -V display Version"
|
2007-06-03 22:12:03 +02:00
|
|
|
echo "Packages:"
|
2008-06-26 01:10:51 +02:00
|
|
|
echo " art2kmin MS Access 2000 runtime. License required!"
|
|
|
|
echo " colorprofile Standard RGB color profile"
|
|
|
|
echo " comctl32 MS common controls 5.80"
|
|
|
|
echo " comctl32.ocx MS comctl32.ocx and mscomctl.ocx, comctl32 wrappers for VB6"
|
|
|
|
echo " corefonts MS Arial, Courier, Times fonts"
|
|
|
|
echo " dcom98 MS DCOM, override the Wine implementation"
|
|
|
|
echo " dirac0.8 the obsolete Dirac 0.8 directshow filter"
|
|
|
|
echo " directx9 MS DirectX 9 user redistributable"
|
|
|
|
echo " divx divx video codec"
|
|
|
|
echo " dotnet11 MS .NET 1.1 (requires Windows license)"
|
|
|
|
echo " dotnet20 MS .NET 2.0 (requires Windows license)"
|
|
|
|
echo " ffdshow ffdshow video codecs"
|
2009-01-21 14:32:01 +01:00
|
|
|
echo " flash Adobe Flash Player activex"
|
2008-06-26 01:10:51 +02:00
|
|
|
echo " fontfix Fix bad fonts which cause crash in some apps (e.g. .net)."
|
|
|
|
echo " gdiplus MS gdiplus.dll (from powerpoint viewer)"
|
|
|
|
echo " gecko The HTML rendering Engine (Mozilla)"
|
2009-01-21 14:32:01 +01:00
|
|
|
echo " icodecs Intel Codecs"
|
2008-06-26 01:10:51 +02:00
|
|
|
echo " jet40 MS Jet 4.0 Service Pack 8"
|
|
|
|
echo " liberation Red Hat Liberation fonts (Sans, Serif, Mono)"
|
|
|
|
echo " mdac25 MS MDAC 2.5: Microsoft ODBC drivers, etc."
|
|
|
|
echo " mdac27 MS MDAC 2.7"
|
|
|
|
echo " mdac28 MS MDAC 2.8"
|
|
|
|
echo " mfc40 MS mfc40 (Microsoft Foundation Classes from Visual C++ 4)"
|
|
|
|
echo " mfc42 MS mfc42 (see vcrun6 below)"
|
2009-01-21 14:32:01 +01:00
|
|
|
echo " mono19 mono-1.9.1-gtksharp-2.10.4-win32-2"
|
2008-06-26 01:10:51 +02:00
|
|
|
echo " msi2 MS Installer 2.0"
|
|
|
|
echo " msls31 MS Line Services 3.1 (needed by native riched?)"
|
|
|
|
echo " msxml3 MS XML version 3"
|
|
|
|
echo " msxml4 MS XML version 4"
|
|
|
|
echo " msxml6 MS XML version 6"
|
2008-07-11 23:40:12 +02:00
|
|
|
echo " ogg ogg filters/codecs: flac, theora, speex, vorbis, schroedinger"
|
2008-06-26 01:10:51 +02:00
|
|
|
echo " pdh MS pdh.dll (Performance Data Helper)"
|
|
|
|
echo " quicktime72 Apple Quicktime 7.2"
|
|
|
|
echo " riched20 MS riched20 and riched32"
|
|
|
|
echo " riched30 MS riched30"
|
|
|
|
echo " tahoma MS Tahoma font (not part of corefonts)"
|
|
|
|
echo " vb3run MS Visual Basic 3 runtime"
|
|
|
|
echo " vb4run MS Visual Basic 4 runtime"
|
|
|
|
echo " vb5run MS Visual Basic 5 runtime"
|
|
|
|
echo " vb6run MS Visual Basic 6 runtime"
|
|
|
|
echo " vcrun6 MS Visual C++ 6 sp4 libraries (mfc42, msvcp60, msvcrt)"
|
|
|
|
echo " vcrun2003 MS Visual C++ 2003 libraries (mfc71,msvcp71,msvcr71)"
|
|
|
|
echo " vcrun2005 MS Visual C++ 2005 libraries (mfc80,msvcp80,msvcr80)"
|
|
|
|
echo " vcrun2005sp1 MS Visual C++ 2005 sp1 libraries"
|
|
|
|
echo " vcrun2008 MS Visual C++ 2008 libraries (mfc90,msvcp90,msvcr90)"
|
|
|
|
echo " vjrun20 MS Visual J# 2.0 libraries (requires dotnet20)"
|
|
|
|
echo " wmp9 MS Windows Media Player 9 (requires Windows license)"
|
|
|
|
echo " wmp10 MS Windows Media Player 10 (requires Windows license)"
|
2009-01-21 14:32:01 +01:00
|
|
|
echo " wsh51 MS Windows Scripting Host 5.1"
|
2008-06-26 01:10:51 +02:00
|
|
|
echo " wsh56 MS Windows Scripting Host 5.6"
|
|
|
|
echo " wsh56js MS Windows scripting 5.6, jscript only, no cscript"
|
|
|
|
echo " wsh56vb MS Windows scripting 5.6, vbscript only, no cscript"
|
|
|
|
echo " xvid xvid video codec"
|
2008-06-26 00:40:27 +02:00
|
|
|
echo "Apps:"
|
2008-06-26 01:10:51 +02:00
|
|
|
echo " autohotkey Autohotkey (open source gui scripting language)"
|
2008-07-11 23:40:12 +02:00
|
|
|
echo " firefox3 Firefox Version 3"
|
|
|
|
echo " kde KDE for Windows installer"
|
2008-06-26 01:10:51 +02:00
|
|
|
echo " mpc Media Player Classic"
|
|
|
|
echo " vlc VLC media player"
|
2007-06-03 22:12:03 +02:00
|
|
|
echo "Pseudopackages:"
|
2008-06-26 01:10:51 +02:00
|
|
|
echo " allfonts All listed fonts (corefonts, tahoma, liberation)"
|
|
|
|
echo " allcodecs All listed codecs (xvid, ffdshow, icodecs)"
|
|
|
|
echo " fakeie6 Set registry to claim IE6sp1 is installed"
|
|
|
|
echo " native_mdac Override odbc32 and odbccp32"
|
|
|
|
echo " nt40 Set windows version to nt40"
|
|
|
|
echo " win98 Set windows version to Windows 98"
|
|
|
|
echo " win2k Set windows version to Windows 2000"
|
|
|
|
echo " winxp Set windows version to Windows XP"
|
|
|
|
echo " vista Set windows version to Windows Vista"
|
|
|
|
echo " winver= Set windows version to default (winxp)"
|
|
|
|
echo " volnum Rename drive_c to harddiskvolume0 (needed by some installers)"
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
2008-02-15 01:47:21 +01:00
|
|
|
# Trivial GUI just to handle case where user tries running without commandline
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2008-02-15 01:47:21 +01:00
|
|
|
# Checks for known desktop environments
|
|
|
|
# set variable DE to the desktop environments name, lowercase
|
|
|
|
|
|
|
|
detectDE() {
|
|
|
|
if [ x"$KDE_FULL_SESSION" = x"true" ]
|
|
|
|
then
|
|
|
|
DE=kde
|
|
|
|
elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]
|
|
|
|
then
|
|
|
|
DE=gnome
|
|
|
|
elif [ x"$DISPLAY" != x"" ]
|
|
|
|
then
|
|
|
|
DE=x
|
|
|
|
else
|
|
|
|
DE=none
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
kde_showmenu() {
|
|
|
|
title="$1"
|
|
|
|
shift
|
|
|
|
text="$1"
|
|
|
|
shift
|
|
|
|
col1name="$1"
|
|
|
|
shift
|
|
|
|
col2name="$1"
|
|
|
|
shift
|
|
|
|
while test $# -gt 0
|
|
|
|
do
|
|
|
|
args="$args $1 $1 off"
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
kdialog --title "$title" --separate-output --checklist "$text" $args
|
|
|
|
}
|
|
|
|
|
|
|
|
x_showmenu() {
|
|
|
|
title="$1"
|
|
|
|
shift
|
|
|
|
text="$1"
|
|
|
|
shift
|
|
|
|
col1name="$1"
|
|
|
|
shift
|
|
|
|
col2name="$1"
|
|
|
|
shift
|
|
|
|
if test $# -gt 0
|
|
|
|
then
|
|
|
|
args="$1"
|
|
|
|
shift
|
|
|
|
fi
|
|
|
|
while test $# -gt 0
|
|
|
|
do
|
|
|
|
args="$args,$1"
|
|
|
|
shift
|
|
|
|
done
|
2009-01-21 14:32:01 +01:00
|
|
|
(echo "$title"; echo ""; echo "$text") > /tmp/x_showmenu.txt
|
|
|
|
xmessage -print -file /tmp/x_showmenu.txt -buttons "Cancel,$args" | sed 's/Cancel//'
|
2008-02-15 01:47:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
showmenu()
|
|
|
|
{
|
|
|
|
detectDE
|
|
|
|
case $DE in
|
|
|
|
kde) kde_showmenu "$@" ;;
|
2009-01-21 14:32:01 +01:00
|
|
|
#gnome) gnome_showmenu "$@" ;;
|
|
|
|
x) x_showmenu "$@" ;;
|
2008-02-15 01:47:21 +01:00
|
|
|
none) usage 1>&2; exit 1;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
dogui()
|
|
|
|
{
|
2008-05-24 11:28:41 +02:00
|
|
|
detectDE
|
|
|
|
if [ $DE = gnome ]
|
|
|
|
then
|
2009-01-21 14:32:01 +01:00
|
|
|
echo "zenity --title 'Select a package to install' --text 'Install?' --list --checklist --column '' --column Package --column Description --height 440 --width 600 \\" > $WINETRICKS_TMP/zenity.sh
|
2008-05-24 11:28:41 +02:00
|
|
|
usage | grep '^ [a-z]' | sed 's/^ \([^ ]*\) *\(.*\)/FALSE "\1" '"'\2'/" | sed 's/$/ \\/' >> $WINETRICKS_TMP/zenity.sh
|
2009-01-21 14:32:01 +01:00
|
|
|
export todo="`sh $WINETRICKS_TMP/zenity.sh | tr '|' ' '`"
|
2008-05-24 11:28:41 +02:00
|
|
|
else
|
|
|
|
packages=`usage | awk '/^ [a-z]/ {print $1}'`
|
|
|
|
export todo="`showmenu "winetricks" "Select a package to install" "Install?" "Package" $packages`"
|
|
|
|
fi
|
|
|
|
|
2008-02-15 01:47:21 +01:00
|
|
|
if test "$todo"x = x
|
|
|
|
then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-04-24 09:17:49 +02:00
|
|
|
GUI=0
|
2008-02-15 01:47:21 +01:00
|
|
|
case x"$1" in
|
2008-04-24 09:17:49 +02:00
|
|
|
x) GUI=1; dogui ; set $todo ;;
|
2008-02-15 01:47:21 +01:00
|
|
|
x-h|x--help|xhelp) usage ; exit 1 ;;
|
|
|
|
esac
|
2008-07-11 23:40:12 +02:00
|
|
|
test -d "$WINEPREFIX" || $WINE cmd /c echo yes > /dev/null 2>&1
|
2008-05-24 11:28:41 +02:00
|
|
|
mkdir -p "$WINETRICKS_CACHE"
|
2007-06-03 22:12:03 +02:00
|
|
|
olddir=`pwd`
|
|
|
|
# Clean up after failed runs, if needed
|
2008-05-24 11:28:41 +02:00
|
|
|
rm -rf "$WINETRICKS_TMP"/*
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2007-10-05 00:39:47 +02:00
|
|
|
# The folder-name is localized!
|
2009-01-21 14:32:01 +01:00
|
|
|
programfilesdir_win="`$WINE cmd.exe /c echo "%ProgramFiles%"`"
|
|
|
|
programfilesdir_unix="`$WINE winepath -u "$programfilesdir_win"`"
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
# Did the user rename Fonts to fonts?
|
2009-01-21 14:32:01 +01:00
|
|
|
if ! test -d "$WINEPREFIX"/drive_c/windows/Fonts && test -d "$WINEPREFIX"/drive_c/windows/fonts
|
2008-05-24 11:28:41 +02:00
|
|
|
then
|
2009-01-21 14:32:01 +01:00
|
|
|
winefontsdir="$WINEPREFIX"/drive_c/windows/fonts
|
2008-05-24 11:28:41 +02:00
|
|
|
else
|
2009-01-21 14:32:01 +01:00
|
|
|
winefontsdir="$WINEPREFIX"/drive_c/windows/Fonts
|
2008-05-24 11:28:41 +02:00
|
|
|
fi
|
|
|
|
|
2008-04-24 09:17:49 +02:00
|
|
|
# Mac folks tend to not have sha1sum, but we can make do with openssl
|
2008-05-24 11:28:41 +02:00
|
|
|
if [ -x "`which sha1sum`" ]
|
2008-04-24 09:17:49 +02:00
|
|
|
then
|
|
|
|
SHA1SUM="sha1sum"
|
|
|
|
else
|
|
|
|
SHA1SUM="openssl dgst -sha1"
|
|
|
|
fi
|
|
|
|
|
2009-01-21 14:32:01 +01:00
|
|
|
which cabextract > /dev/null
|
|
|
|
if test "$?" -ne "0"
|
2008-04-24 09:17:49 +02:00
|
|
|
then
|
|
|
|
echo "Cannot find cabextract. Please install it (e.g. 'sudo apt-get install cabextract' or 'sudo yum install cabextract')."
|
|
|
|
fi
|
|
|
|
|
2007-10-05 00:39:47 +02:00
|
|
|
#----- Helpers ------------------------------------------------
|
2007-06-03 22:12:03 +02:00
|
|
|
|
|
|
|
# Execute with error checking
|
|
|
|
try() {
|
|
|
|
# "VAR=foo try cmd" fails to put VAR in the environment
|
|
|
|
# with some versions of bash if try is a shell function?!
|
|
|
|
# Adding this explicit export works around it.
|
|
|
|
export WINEDLLOVERRIDES
|
|
|
|
echo Executing "$@"
|
|
|
|
"$@"
|
|
|
|
status=$?
|
|
|
|
if test $status -ne 0
|
|
|
|
then
|
2008-04-24 09:17:49 +02:00
|
|
|
die "Note: command '$@' returned status $status. Aborting."
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
# verify an sha1sum
|
|
|
|
verify_sha1sum() {
|
|
|
|
wantsum=$1
|
|
|
|
file=$2
|
|
|
|
|
|
|
|
gotsum=`$SHA1SUM < $file | sed 's/ .*//'`
|
|
|
|
if [ "$gotsum"x != "$wantsum"x ]
|
|
|
|
then
|
2008-05-24 11:28:41 +02:00
|
|
|
die "sha1sum mismatch! Rename $file and try again."
|
2007-06-03 22:12:03 +02:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2007-10-05 00:39:47 +02:00
|
|
|
# Download a file
|
2008-01-26 00:25:01 +01:00
|
|
|
# Usage: package url [sha1sum [filename]]
|
|
|
|
# Caches downloads in winetrickscache/$package
|
2007-10-05 00:39:47 +02:00
|
|
|
download() {
|
2008-01-26 00:25:01 +01:00
|
|
|
if [ "$4"x != ""x ]
|
2007-10-05 00:39:47 +02:00
|
|
|
then
|
2008-01-26 00:25:01 +01:00
|
|
|
file="$4"
|
|
|
|
else
|
|
|
|
file=`basename "$2"`
|
|
|
|
fi
|
2008-05-08 00:47:36 +02:00
|
|
|
cache="$WINETRICKS_CACHE/$1"
|
|
|
|
mkdir -p "$cache"
|
2009-01-21 14:32:01 +01:00
|
|
|
if ! test -f "$cache/$file"
|
2008-05-06 01:44:08 +02:00
|
|
|
then
|
2008-05-08 00:47:36 +02:00
|
|
|
cd "$cache"
|
|
|
|
# Mac folks tend to have curl rather than wget
|
2008-05-24 11:28:41 +02:00
|
|
|
# On Mac, 'which' doesn't return good exit status
|
|
|
|
# Need to jam in --header "Accept-Encoding: gzip,deflate" else
|
|
|
|
# redhat.com decompresses liberation-fonts.tar.gz!
|
|
|
|
if [ -x "`which wget`" ]
|
2008-05-08 00:47:36 +02:00
|
|
|
then
|
|
|
|
# Use -nd to insulate ourselves from people who set -x in WGETRC
|
|
|
|
# [*] --retry-connrefused works around the broken sf.net mirroring
|
|
|
|
# system when downloading corefonts
|
|
|
|
# [*] --read-timeout is useful on the adobe server that doesn't
|
|
|
|
# close the connection unless you tell it to (control-C or closing
|
|
|
|
# the socket)
|
2008-05-24 11:28:41 +02:00
|
|
|
try wget -nd -c --read-timeout=300 --retry-connrefused --header "Accept-Encoding: gzip,deflate" "$2"
|
2008-05-08 00:47:36 +02:00
|
|
|
else
|
|
|
|
# curl doesn't get filename from the location given by the server!
|
|
|
|
# fortunately, we know it
|
2009-01-21 14:32:01 +01:00
|
|
|
try curl -L -o $file -C - --header "Accept-Encoding: gzip,deflate" "$2"
|
2008-05-08 00:47:36 +02:00
|
|
|
fi
|
2009-01-21 14:32:01 +01:00
|
|
|
cd $olddir
|
2008-05-06 01:44:08 +02:00
|
|
|
fi
|
2008-01-26 00:25:01 +01:00
|
|
|
if [ "$3"x != ""x ]
|
|
|
|
then
|
2008-04-24 09:17:49 +02:00
|
|
|
verify_sha1sum $3 "$cache/$file"
|
2007-10-05 00:39:47 +02:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
set_winver() {
|
|
|
|
echo "Setting Windows version to $1"
|
2008-05-24 11:28:41 +02:00
|
|
|
cat > "$WINETRICKS_TMP"/set-winver.reg <<_EOF_
|
2007-06-03 22:12:03 +02:00
|
|
|
REGEDIT4
|
|
|
|
|
|
|
|
[HKEY_CURRENT_USER\Software\Wine]
|
|
|
|
"Version"="$1"
|
|
|
|
|
|
|
|
_EOF_
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE regedit "$WINETRICKS_TMP"/set-winver.reg
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
unset_winver() {
|
|
|
|
echo "Clearing Windows version back to default"
|
2008-05-24 11:28:41 +02:00
|
|
|
cat > "$WINETRICKS_TMP"/unset-winver.reg <<_EOF_
|
2007-06-03 22:12:03 +02:00
|
|
|
REGEDIT4
|
|
|
|
|
|
|
|
[HKEY_CURRENT_USER\Software\Wine]
|
|
|
|
"Version"=-
|
|
|
|
|
|
|
|
_EOF_
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE regedit "$WINETRICKS_TMP"/unset-winver.reg
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
override_dlls() {
|
2008-04-06 09:16:00 +02:00
|
|
|
mode=$1
|
|
|
|
shift
|
|
|
|
echo Using $mode override for following DLLs: $@
|
2008-05-24 11:28:41 +02:00
|
|
|
cat > "$WINETRICKS_TMP"/override-dll.reg <<_EOF_
|
2007-06-03 22:12:03 +02:00
|
|
|
REGEDIT4
|
|
|
|
|
|
|
|
[HKEY_CURRENT_USER\Software\Wine\DllOverrides]
|
|
|
|
_EOF_
|
|
|
|
while test "$1" != ""
|
|
|
|
do
|
2008-02-25 17:48:50 +01:00
|
|
|
case "$1" in
|
|
|
|
comctl32)
|
2009-01-21 14:32:01 +01:00
|
|
|
rm -rf "$WINEPREFIX"/drive_c/windows/winsxs/manifests/x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef.manifest
|
2008-02-25 17:48:50 +01:00
|
|
|
;;
|
|
|
|
esac
|
2008-05-24 11:28:41 +02:00
|
|
|
echo "\"$1\"=\"$mode\"" >> "$WINETRICKS_TMP"/override-dll.reg
|
2007-06-03 22:12:03 +02:00
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE regedit "$WINETRICKS_TMP"/override-dll.reg
|
|
|
|
rm "$WINETRICKS_TMP"/override-dll.reg
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
2008-04-24 09:17:49 +02:00
|
|
|
override_app_dlls() {
|
|
|
|
app=$1
|
|
|
|
shift
|
|
|
|
mode=$1
|
|
|
|
shift
|
|
|
|
echo Using $mode override for following DLLs when running $app: $@
|
|
|
|
(
|
|
|
|
echo REGEDIT4
|
2008-05-24 11:28:41 +02:00
|
|
|
echo ""
|
2008-04-24 09:17:49 +02:00
|
|
|
echo "[HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\$app\\DllOverrides]"
|
2008-05-24 11:28:41 +02:00
|
|
|
) > "$WINETRICKS_TMP"/override-dll.reg
|
2008-04-24 09:17:49 +02:00
|
|
|
|
|
|
|
while test "$1" != ""
|
|
|
|
do
|
|
|
|
case "$1" in
|
|
|
|
comctl32)
|
2009-01-21 14:32:01 +01:00
|
|
|
rm -rf "$WINEPREFIX"/drive_c/windows/winsxs/manifests/x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef.manifest
|
2008-04-24 09:17:49 +02:00
|
|
|
;;
|
|
|
|
esac
|
2008-05-24 11:28:41 +02:00
|
|
|
echo "\"$1\"=\"$mode\"" >> "$WINETRICKS_TMP"/override-dll.reg
|
2008-04-24 09:17:49 +02:00
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE regedit "$WINETRICKS_TMP"/override-dll.reg
|
|
|
|
rm "$WINETRICKS_TMP"/override-dll.reg
|
|
|
|
}
|
|
|
|
|
|
|
|
register_font() {
|
|
|
|
file=$1
|
|
|
|
shift
|
|
|
|
font=$1
|
|
|
|
#echo "Registering $file as $font"
|
|
|
|
cat > "$WINETRICKS_TMP"/register-font.reg <<_EOF_
|
|
|
|
REGEDIT4
|
|
|
|
|
|
|
|
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
|
|
|
|
"$font"="$file"
|
|
|
|
_EOF_
|
|
|
|
# too verbose
|
|
|
|
#try $WINE regedit "$WINETRICKS_TMP"/register-font.reg
|
|
|
|
$WINE regedit "$WINETRICKS_TMP"/register-font.reg
|
2008-04-24 09:17:49 +02:00
|
|
|
}
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
#----- One function per package, in alphabetical order ----------
|
|
|
|
|
|
|
|
load_art2kmin() {
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/office2000dev/art2kmin/1/win98/en-us/art2kmin.exe 73be2622254d1f857a204a03f068787542b985e9
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/art2kmin.exe
|
2007-06-03 22:12:03 +02:00
|
|
|
cd "$WINEPREFIX/drive_c/ART2KMin Setup"
|
|
|
|
try $WINE Setup.exe INSTALLPFILES=1 /wait $WINETRICKS_QUIET
|
|
|
|
cd "$olddir"
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-06-26 01:10:51 +02:00
|
|
|
load_autohotkey() {
|
|
|
|
download . http://www.autohotkey.net/programs/AutoHotkey104706_Install.exe 3d3d8845473dea477d6983d063f0afc9999d880f
|
|
|
|
try $WINE "$WINETRICKS_CACHE"/AutoHotkey104706_Install.exe $WINETRICKS_S
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_cc580() {
|
|
|
|
# http://www.microsoft.com/downloads/details.aspx?familyid=6f94d31a-d1e0-4658-a566-93af0d8d4a1e
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/platformsdk/redist/5.80.2614.3600/w9xnt4/en-us/cc32inst.exe 94c3c494258cc54bd65d2f0153815737644bffde
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/cc32inst.exe "/T:`$WINE winepath -w "$WINETRICKS_TMP"`" /c $WINETRICKS_QUIET
|
|
|
|
try $WINE "$WINETRICKS_TMP"/comctl32.exe
|
2009-01-21 14:32:01 +01:00
|
|
|
try $WINE "$WINEPREFIX"/drive_c/windows/temp/x86/50ComUpd.Exe "/T:`$WINE winepath -w "$WINETRICKS_TMP"`" /c $WINETRICKS_QUIET
|
|
|
|
cp "$WINETRICKS_TMP"/comcnt.dll "$WINEPREFIX"/drive_c/windows/system32/comctl32.dll
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2008-04-06 09:16:00 +02:00
|
|
|
override_dlls native,builtin comctl32
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-06-26 01:10:51 +02:00
|
|
|
load_comctl32ocx() {
|
|
|
|
# http://www.microsoft.com/downloads/details.aspx?FamilyID=25437D98-51D0-41C1-BB14-64662F5F62FE
|
|
|
|
download . http://download.microsoft.com/download/3/a/5/3a5925ac-e779-4b1c-bb01-af67dc2f96fc/VisualBasic6-KB896559-v1-ENU.exe f52cf2034488235b37a1da837d1c40eb2a1bad84
|
|
|
|
|
|
|
|
try cabextract -q --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/VisualBasic6-KB896559-v1-ENU.exe
|
2009-01-21 14:32:01 +01:00
|
|
|
cp "$WINETRICKS_TMP"/mscomctl.ocx "$WINEPREFIX"/drive_c/windows/system32/mscomctl.ocx
|
|
|
|
cp "$WINETRICKS_TMP"/comctl32.ocx "$WINEPREFIX"/drive_c/windows/system32/comctl32.ocx
|
2008-06-26 01:10:51 +02:00
|
|
|
try $WINE regsvr32 comctl32.ocx
|
|
|
|
try $WINE regsvr32 mscomctl.ocx
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-02-25 17:48:50 +01:00
|
|
|
load_colorprofile() {
|
|
|
|
download . http://download.microsoft.com/download/whistler/hwdev1/1.0/wxp/en-us/ColorProfile.exe 6b72836b32b343c82d0760dff5cb51c2f47170eb
|
2008-05-24 11:28:41 +02:00
|
|
|
try unzip -o $WINETRICKS_UNIXQUIET -d "$WINETRICKS_TMP" "$WINETRICKS_CACHE"/ColorProfile.exe
|
2009-01-21 14:32:01 +01:00
|
|
|
mkdir -p "$WINEPREFIX"/drive_c/windows/system32/spool/drivers/color
|
|
|
|
cp -f "$WINETRICKS_TMP/sRGB Color Space Profile.icm" "$WINEPREFIX"/drive_c/windows/system32/spool/drivers/color
|
2008-02-25 17:48:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_corefonts() {
|
|
|
|
# See http://corefonts.sf.net
|
2008-05-24 11:28:41 +02:00
|
|
|
# TODO: let user pick mirror,
|
2007-06-03 22:12:03 +02:00
|
|
|
# see http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec for how
|
|
|
|
# TODO: add more fonts
|
2008-04-24 09:17:49 +02:00
|
|
|
|
|
|
|
# Added More Fonts (see msttcorefonts)
|
|
|
|
# [*] Pointed download locations to sites that actually contained the
|
|
|
|
# fonts to download (as of 04-03-2008)
|
2008-05-24 11:28:41 +02:00
|
|
|
#download . $SOURCEFORGE/corefonts/andale32.exe c4db8cbe42c566d12468f5fdad38c43721844c69
|
|
|
|
download . $SOURCEFORGE/corefonts/arial32.exe 6d75f8436f39ab2da5c31ce651b7443b4ad2916e
|
|
|
|
download . $SOURCEFORGE/corefonts/arialb32.exe d45cdab84b7f4c1efd6d1b369f50ed0390e3d344
|
|
|
|
download . $SOURCEFORGE/corefonts/comic32.exe 2371d0327683dcc5ec1684fe7c275a8de1ef9a51
|
|
|
|
download . $SOURCEFORGE/corefonts/courie32.exe 06a745023c034f88b4135f5e294fece1a3c1b057
|
|
|
|
download . $SOURCEFORGE/corefonts/georgi32.exe 90e4070cb356f1d811acb943080bf97e419a8f1e
|
|
|
|
download . $SOURCEFORGE/corefonts/impact32.exe 86b34d650cfbbe5d3512d49d2545f7509a55aad2
|
|
|
|
download . $SOURCEFORGE/corefonts/times32.exe 20b79e65cdef4e2d7195f84da202499e3aa83060
|
|
|
|
download . $SOURCEFORGE/corefonts/trebuc32.exe 50aab0988423efcc9cf21fac7d64d534d6d0a34a
|
|
|
|
download . $SOURCEFORGE/corefonts/verdan32.exe f5b93cedf500edc67502f116578123618c64a42a
|
|
|
|
download . $SOURCEFORGE/corefonts/webdin32.exe 2fb4a42c53e50bc70707a7b3c57baf62ba58398f
|
|
|
|
|
|
|
|
# Natively installed versions of these fonts will cause the installers
|
|
|
|
# to exit silently. Because there are apps out there that depend on the
|
|
|
|
# files being present in the Windows font directory we use cabextract
|
|
|
|
# to obtain the files and register the fonts by hand.
|
|
|
|
|
|
|
|
# Andale needs a FontSubstitutes entry
|
|
|
|
# try cabextract --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/andale32.exe
|
|
|
|
|
|
|
|
# Display EULA
|
|
|
|
test x"$WINETRICKS_QUIET" = x"" || try $WINE "$WINETRICKS_CACHE"/arial32.exe $WINETRICKS_QUIET
|
|
|
|
|
|
|
|
try cabextract -q --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/arial32.exe
|
|
|
|
try cp -f "$WINETRICKS_TMP"/Arial*.TTF "$winefontsdir"
|
|
|
|
register_font Arial.TTF "Arial (TrueType)"
|
|
|
|
register_font Arialbd.TTF "Arial Bold (TrueType)"
|
|
|
|
register_font Arialbi.TTF "Arial Bold Italic (TrueType)"
|
|
|
|
register_font Ariali.TTF "Arial Italic (TrueType)"
|
|
|
|
|
|
|
|
try cabextract -q --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/arialb32.exe
|
|
|
|
try cp -f "$WINETRICKS_TMP"/AriBlk.TTF "$winefontsdir"
|
|
|
|
register_font AriBlk.TTF "Arial Black (TrueType)"
|
|
|
|
|
|
|
|
try cabextract -q --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/comic32.exe
|
|
|
|
try cp -f "$WINETRICKS_TMP"/Comic*.TTF "$winefontsdir"
|
|
|
|
register_font Comic.TTF "Comic Sans MS (TrueType)"
|
|
|
|
register_font Comicbd.TTF "Comic Sans MS Bold (TrueType)"
|
|
|
|
|
|
|
|
try cabextract -q --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/courie32.exe
|
|
|
|
try cp -f "$WINETRICKS_TMP"/cour*.ttf "$winefontsdir"
|
|
|
|
register_font Cour.TTF "Courier New (TrueType)"
|
|
|
|
register_font CourBD.TTF "Courier New Bold (TrueType)"
|
|
|
|
register_font CourBI.TTF "Courier New Bold Italic (TrueType)"
|
|
|
|
register_font Couri.TTF "Courier New Italic (TrueType)"
|
|
|
|
|
|
|
|
try cabextract -q --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/georgi32.exe
|
|
|
|
try cp -f "$WINETRICKS_TMP"/Georgia*.TTF "$winefontsdir"
|
|
|
|
register_font Georgia.TTF "Georgia (TrueType)"
|
|
|
|
register_font Georgiab.TTF "Georgia Bold (TrueType)"
|
|
|
|
register_font Georgiaz.TTF "Georgia Bold Italic (TrueType)"
|
|
|
|
register_font Georgiai.TTF "Georgia Italic (TrueType)"
|
|
|
|
|
|
|
|
try cabextract -q --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/impact32.exe
|
|
|
|
try cp -f "$WINETRICKS_TMP"/Impact.TTF "$winefontsdir"
|
|
|
|
register_font Impact.TTF "Impact (TrueType)"
|
|
|
|
|
|
|
|
try cabextract -q --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/times32.exe
|
|
|
|
try cp -f "$WINETRICKS_TMP"/Times*.TTF "$winefontsdir"
|
|
|
|
register_font Times.TTF "Times New Roman (TrueType)"
|
|
|
|
register_font Timesbd.TTF "Times New Roman Bold (TrueType)"
|
|
|
|
register_font Timesbi.TTF "Times New Roman Bold Italic (TrueType)"
|
|
|
|
register_font Timesi.TTF "Times New Roman Italic (TrueType)"
|
|
|
|
|
|
|
|
try cabextract -q --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/trebuc32.exe
|
|
|
|
try cp -f "$WINETRICKS_TMP"/trebuc*.ttf "$winefontsdir"
|
|
|
|
register_font Trebuc.TTF "Trebucet MS (TrueType)"
|
|
|
|
register_font Trebucbd.TTF "Trebucet MS Bold (TrueType)"
|
|
|
|
register_font Trebucbi.TTF "Trebucet MS Bold Italic (TrueType)"
|
|
|
|
register_font Trebucit.TTF "Trebucet MS Italic (TrueType)"
|
|
|
|
|
|
|
|
try cabextract -q --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/verdan32.exe
|
|
|
|
try cp -f "$WINETRICKS_TMP"/Verdana*.TTF "$winefontsdir"
|
|
|
|
register_font Verdana.TTF "Verdana (TrueType)"
|
|
|
|
register_font Verdanab.TTF "Verdana Bold (TrueType)"
|
|
|
|
register_font Verdanaz.TTF "Verdana Bold Italic (TrueType)"
|
|
|
|
register_font Verdanai.TTF "Verdana Italic (TrueType)"
|
|
|
|
|
|
|
|
try cabextract -q --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/webdin32.exe
|
|
|
|
try cp -f "$WINETRICKS_TMP"/Webdings.TTF "$winefontsdir"
|
|
|
|
register_font Webdings.TTF "Webdings (TrueType)"
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2009-01-21 14:32:01 +01:00
|
|
|
load_dirac() {
|
2008-06-26 01:10:51 +02:00
|
|
|
download . http://codecpack.nl/dirac_dsfilter_080.exe aacfcddf6b2636de5f0a50422ba9155e395318af
|
|
|
|
try $WINE "$WINETRICKS_CACHE"/dirac_dsfilter_080.exe $WINETRICKS_SILENT
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
load_directx9() {
|
2009-01-21 14:32:01 +01:00
|
|
|
# March 2008 DirectX 9c User Redistributable
|
|
|
|
# http://www.microsoft.com/downloads/details.aspx?familyid=740AC79A-5B72-447D-84F9-EE6407ED1A91
|
|
|
|
download . http://download.microsoft.com/download/6/4/c/64c3d3d6-c5da-47eb-9db4-86e45b9f579e/directx_mar2008_redist.exe 21aa91ca8e0cbb5fbb986f47a1ccdad5d2984cae
|
2008-05-24 11:28:41 +02:00
|
|
|
# Stefan suggested that, when installing, one should override as follows:
|
|
|
|
# 1) use builtin wintrust (we don't run native properly somehow?)
|
|
|
|
# 2) disable mscoree (else if it's present some module misbehaves?)
|
|
|
|
# 3) override native any directx DLL whose Wine version doesn't register itself well yet
|
|
|
|
# For #3, I have no idea which DLLs don't register themselves well yet,
|
|
|
|
# so I'm just listing a few of the basic ones. Let's whittle that
|
|
|
|
# list down as soon as we can.
|
|
|
|
set_winver win2k
|
|
|
|
WINEDLLOVERRIDES="wintrust=b,mscoree=,ddraw,d3d8,d3d9,dsound,dinput=n" \
|
2009-01-21 14:32:01 +01:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/directx_mar2008_redist.exe /t:"$WINETRICKS_TMP_WIN" $WINETRICKS_QUIET
|
2008-06-26 01:10:51 +02:00
|
|
|
|
|
|
|
# How many of these do we really need?
|
|
|
|
override_dlls native d3dim d3drm d3dx8 d3dx9_24 d3dx9_25 d3dx9_26 d3dx9_27 d3dx9_28 d3dx9_29
|
|
|
|
override_dlls native d3dx9_30 d3dx9_31 d3dx9_32 d3dx9_33 d3dx9_34 d3dx9_35 d3dx9_36 d3dxof
|
|
|
|
override_dlls native dciman32 ddrawex devenum dmband dmcompos dmime dmloader dmscript dmstyle
|
|
|
|
override_dlls native dmsynth dmusic dmusic32 dnsapi dplay dplayx dpnaddr dpnet dpnhpast dpnlobby
|
|
|
|
override_dlls native dswave dxdiagn mscoree msdmo qcap quartz streamci
|
|
|
|
override_dlls builtin d3d8 d3d9 dinput dinput8 dsound
|
|
|
|
|
|
|
|
try $WINE "$WINETRICKS_TMP_WIN"/DXSETUP.exe
|
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
unset_winver
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-06-26 01:10:51 +02:00
|
|
|
load_divx() {
|
|
|
|
# 6.8.2: 02203fdc4dddd13e789c39b22902837da31d2a1d ?
|
|
|
|
# 6.8.2: e36bf87c1675d0cf9169839bc0cd8f866b9db026 as of 4 jun 2008 as http://download.divx.com/divx/DivXInstaller.exe
|
|
|
|
# 6.8.3: f4f4387ef89316aea440a29f3e24c1f1945e14af as of 20 jun 2008 as http://download.divx.com/divx/abt/b1/DivXInstaller.exe
|
2008-07-11 23:40:12 +02:00
|
|
|
# 6.8.4: c5fcb1465a1bb24d1c104c2588fdb6706d1e1476 as of 10 Jul 2008 as http://download.divx.com/divx/abt/b1/DivXInstaller.exe
|
2009-01-21 14:32:01 +01:00
|
|
|
download divx-6.8.4 http://download.divx.com/divx/abt/b1/DivXInstaller.exe c5fcb1465a1bb24d1c104c2588fdb6706d1e1476
|
2008-07-11 23:40:12 +02:00
|
|
|
|
2009-01-21 14:32:01 +01:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/divx-6.8.4/DivXInstaller $WINETRICKS_SILENT
|
2008-06-26 01:10:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_dcom98() {
|
|
|
|
# Install native dcom per http://wiki.winehq.org/NativeDcom
|
|
|
|
# to avoid http://bugs.winehq.org/show_bug.cgi?id=4228
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/d/1/3/d13cd456-f0cf-4fb2-a17f-20afc79f8a51/DCOM98.EXE aff002bd03f17340b2bef2e6b9ea8e3798e9ccc1
|
2007-06-03 22:12:03 +02:00
|
|
|
|
|
|
|
# Pick win98 so we can install native dcom
|
|
|
|
set_winver win98
|
|
|
|
|
|
|
|
# Avoid "err:setupapi:SetupDefaultQueueCallbackA copy error 5 ..."
|
|
|
|
# Those messages are suspect, probably shouldn't be err's.
|
2009-01-21 14:32:01 +01:00
|
|
|
rm -f "$WINEPREFIX"/drive_c/windows/system32/ole32.dll
|
|
|
|
rm -f "$WINEPREFIX"/drive_c/windows/system32/olepro32.dll
|
|
|
|
rm -f "$WINEPREFIX"/drive_c/windows/system32/oleaut32.dll
|
|
|
|
rm -f "$WINEPREFIX"/drive_c/windows/system32/rpcrt4.dll
|
2007-06-03 22:12:03 +02:00
|
|
|
|
|
|
|
# Normally only need to override ole32, but overriding advpack
|
|
|
|
# as well gets us the correct exit status.
|
2008-05-24 11:28:41 +02:00
|
|
|
WINEDLLOVERRIDES="ole32,advpack=n" try $WINE "$WINETRICKS_CACHE"/DCOM98.EXE $WINETRICKS_QUIET
|
2007-06-03 22:12:03 +02:00
|
|
|
|
|
|
|
# Set native DCOM by default for all apps (ok, this might be overkill)
|
2008-04-06 09:16:00 +02:00
|
|
|
override_dlls native,builtin ole32 oleaut32 rpcrt4
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2008-04-24 09:17:49 +02:00
|
|
|
# but not for a few builtin apps that don't like it
|
|
|
|
override_app_dlls services.exe builtin ole32 oleaut32 rpcrt4
|
|
|
|
override_app_dlls wineboot.exe builtin ole32 oleaut32 rpcrt4
|
|
|
|
override_app_dlls winedevice.exe builtin ole32 oleaut32 rpcrt4
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
# and undo version win98
|
|
|
|
unset_winver
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-03-12 20:10:31 +01:00
|
|
|
load_dotnet11() {
|
2009-01-21 14:32:01 +01:00
|
|
|
DOTNET_INSTALL_DIR="$WINEPREFIX/drive_c/windows/Microsoft.NET/Framework/v1.1.4322"
|
2008-04-06 09:16:00 +02:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
# need corefonts, else installer crashes
|
|
|
|
load_corefonts
|
|
|
|
|
2008-04-06 09:16:00 +02:00
|
|
|
# Set win2k so .net installs gdiplus
|
|
|
|
set_winver win2k
|
|
|
|
|
2008-03-12 20:10:31 +01:00
|
|
|
# http://www.microsoft.com/downloads/details.aspx?FamilyId=262D25E3-F589-4842-8157-034D1E7CF3A3
|
|
|
|
download dotnet11 http://download.microsoft.com/download/a/a/c/aac39226-8825-44ce-90e3-bf8203e74006/dotnetfx.exe 16a354a2207c4c8846b617cbc78f7b7c1856340e
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/dotnet11/dotnetfx.exe $WINETRICKS_QUIET
|
2008-04-06 09:16:00 +02:00
|
|
|
|
|
|
|
# Need native gdiplus until wine implements gdiplus.GdipGetFamily
|
|
|
|
#load_gdiplus
|
2009-01-21 14:32:01 +01:00
|
|
|
cp -f "$DOTNET_INSTALL_DIR/gdiplus.dll" "$WINEPREFIX/drive_c/windows/system32/"
|
2008-04-06 09:16:00 +02:00
|
|
|
override_dlls native gdiplus
|
|
|
|
|
|
|
|
unset_winver
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_dotnet20() {
|
|
|
|
# Recipe from http://bugs.winehq.org/show_bug.cgi?id=10467#c57
|
2009-01-21 14:32:01 +01:00
|
|
|
test -d "$WINEPREFIX/drive_c/windows/gecko" || load_gecko
|
2008-04-06 09:16:00 +02:00
|
|
|
set_winver win2k
|
|
|
|
# See http://kegel.com/wine/l_intl-sh.txt for how l_intl.nls was generated
|
|
|
|
download dotnet20 http://kegel.com/wine/l_intl.nls
|
2009-01-21 14:32:01 +01:00
|
|
|
try cp -f "$WINETRICKS_CACHE"/dotnet20/l_intl.nls "$WINEPREFIX/drive_c/windows/system32/"
|
2008-04-06 09:16:00 +02:00
|
|
|
|
|
|
|
# http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5
|
|
|
|
download dotnet20 http://download.microsoft.com/download/5/6/7/567758a3-759e-473e-bf8f-52154438565a/dotnetfx.exe a3625c59d7a2995fb60877b5f5324892a1693b2a
|
|
|
|
if [ "$WINETRICKS_QUIET"x = ""x ]
|
|
|
|
then
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/dotnet20/dotnetfx.exe
|
2008-04-06 09:16:00 +02:00
|
|
|
else
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/dotnet20/dotnetfx.exe /q /c:"install.exe /q"
|
2008-04-06 09:16:00 +02:00
|
|
|
fi
|
2008-06-26 01:10:51 +02:00
|
|
|
unset_winver
|
2008-04-06 09:16:00 +02:00
|
|
|
}
|
2008-03-12 20:10:31 +01:00
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
# Fake IE per workaround in http://bugs.winehq.org/show_bug.cgi?id=3453
|
|
|
|
# Just the first registry key works for most apps.
|
|
|
|
# The App Paths part is required by a few apps, like Quickbooks Pro;
|
|
|
|
# see http://windowsxp.mvps.org/ie/qbooks.htm
|
|
|
|
set_fakeie6() {
|
2007-08-27 18:55:30 +02:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
cat > "$WINETRICKS_TMP"/fakeie6.reg <<"_EOF_"
|
2007-06-03 22:12:03 +02:00
|
|
|
REGEDIT4
|
|
|
|
|
|
|
|
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer]
|
|
|
|
"Version"="6.0.2900.2180"
|
|
|
|
|
|
|
|
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE]
|
|
|
|
_EOF_
|
2007-08-27 18:55:30 +02:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
echo -n '@="' >>"$WINETRICKS_TMP"/fakeie6.reg
|
|
|
|
echo -n "${programfilesdir_win}" | sed "s/\\\\/\\\\\\\\/" >>"$WINETRICKS_TMP"/fakeie6.reg
|
|
|
|
echo '\\\\Internet Explorer\\\\iexplore.exe"' >>"$WINETRICKS_TMP"/fakeie6.reg
|
2007-10-05 00:39:47 +02:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
echo -n '"PATH"="' >>"$WINETRICKS_TMP"/fakeie6.reg
|
|
|
|
echo -n "${programfilesdir_win}" | sed "s/\\\\/\\\\\\\\/" >>"$WINETRICKS_TMP"/fakeie6.reg
|
|
|
|
echo '\\\\Internet Explorer"' >>"$WINETRICKS_TMP"/fakeie6.reg
|
2007-10-05 00:39:47 +02:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE regedit "$WINETRICKS_TMP"/fakeie6.reg
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2007-10-05 00:39:47 +02:00
|
|
|
# On old wineprefixes iexplore.exe is not created. Create a fake dll using
|
2007-08-27 18:55:30 +02:00
|
|
|
# shdocvw.dll that should have similar VERSIONINFO.
|
2007-10-05 00:39:47 +02:00
|
|
|
if [ ! -f "$programfilesdir_unix/Internet Explorer/iexplore.exe" ]; then
|
2007-08-27 18:55:30 +02:00
|
|
|
echo "You have an old wineprefix without iexplore.exe. Will create a fake now"
|
2007-10-05 00:39:47 +02:00
|
|
|
if [ ! -d "$programfilesdir_unix/Internet Explorer/iexplore.exe" ]; then
|
|
|
|
try mkdir "$programfilesdir_unix/Internet Explorer";
|
2007-08-27 18:55:30 +02:00
|
|
|
fi
|
2009-01-21 14:32:01 +01:00
|
|
|
try cp -f "$WINEPREFIX/drive_c/windows/system32/shdocvw.dll" "$programfilesdir_unix/Internet Explorer/iexplore.exe"
|
2007-08-27 18:55:30 +02:00
|
|
|
fi
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-07-11 23:40:12 +02:00
|
|
|
load_firefox3() {
|
|
|
|
# Firefox 3
|
2009-01-21 14:32:01 +01:00
|
|
|
download . "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0/win32/en-US/Firefox Setup 3.0.exe" 91cf99edbc4eb1ef6af3179e6126abc659309265
|
2008-07-11 23:40:12 +02:00
|
|
|
if [ "$WINETRICKS_QUIET"x = ""x ]
|
|
|
|
then
|
|
|
|
try $WINE "$WINETRICKS_CACHE"/"Firefox Setup 3.0.exe"
|
|
|
|
else
|
|
|
|
try $WINE "$WINETRICKS_CACHE"/"Firefox Setup 3.0.exe" -ms
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-01-26 00:25:01 +01:00
|
|
|
load_ffdshow() {
|
|
|
|
# ffdshow
|
2009-01-21 14:32:01 +01:00
|
|
|
download . $SOURCEFORGE/ffdshow-tryout/ffdshow_beta4a_rev1723_20071224_clsid.exe 6e018139c3ed4800aa3580267d1da47fa936a82a
|
|
|
|
try $WINE "$WINETRICKS_CACHE"/ffdshow_beta4a_rev1723_20071224_clsid.exe $WINETRICKS_SILENT
|
2008-01-26 00:25:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-04-06 09:16:00 +02:00
|
|
|
load_flash() {
|
|
|
|
# www.adobe.com/products/flashplayer/
|
2008-04-24 09:17:49 +02:00
|
|
|
# http://blogs.adobe.com/psirt/2008/03/preparing_for_april_flash_play.html
|
|
|
|
# 2008-04-01: old version sha1sum f4dd1c0c715b791db2c972aeba90d3b78372996a
|
|
|
|
# 2008-04-18: new version sha1sum 04ac79c4f1eb1e1ca689f27fa71f12bb5cd11cc2
|
2009-01-21 14:32:01 +01:00
|
|
|
download . http://fpdownload.macromedia.com/get/flashplayer/current/licensing/win/install_flash_player_active_x.msi 04ac79c4f1eb1e1ca689f27fa71f12bb5cd11cc2
|
|
|
|
try $WINE msiexec /i "$WINETRICKS_CACHE"/install_flash_player_active_x.msi $WINETRICKS_QUIET
|
2008-05-24 11:28:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_fontfix() {
|
|
|
|
# some versions of ukai.ttf and uming.ttf crash .net and picasa
|
|
|
|
# See http://bugs.winehq.org/show_bug.cgi?id=7098#c9
|
|
|
|
# Could fix globally, but that needs root, so just fix for wine
|
|
|
|
if test -f /usr/share/fonts/truetype/arphic/ukai.ttf
|
|
|
|
then
|
|
|
|
gotsum=`$SHA1SUM < /usr/share/fonts/truetype/arphic/ukai.ttf | sed 's/ .*//'`
|
|
|
|
# FIXME: do all affected versions of the font have same sha1sum as Gutsy? Seems unlikely.
|
|
|
|
if [ "$gotsum"x = "96e1121f89953e5169d3e2e7811569148f573985"x ]
|
|
|
|
then
|
|
|
|
download . http://apt.debian.org.tw/pool/t/ttf-arphic-ukai/ttf-arphic-ukai_0.1.20060108.orig.tar.gz 46cc7b67b6117a7e161c1a573502c0bf2b09cbdc
|
|
|
|
cd "$WINETRICKS_TMP/"
|
|
|
|
tar -xzf "$WINETRICKS_CACHE/ttf-arphic-ukai_0.1.20060108.orig.tar.gz"
|
2009-01-21 14:32:01 +01:00
|
|
|
try mv ttf-arphic-ukai-0.1.20060108/*.ttf "$winefontsdir""
|
2008-05-24 11:28:41 +02:00
|
|
|
cd "$olddir"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -f /usr/share/fonts/truetype/arphic/uming.ttf
|
|
|
|
then
|
|
|
|
gotsum=`$SHA1SUM < /usr/share/fonts/truetype/arphic/uming.ttf | sed 's/ .*//'`
|
|
|
|
if [ "$gotsum"x = "2a4f4a69e343c21c24d044b2cb19fd4f0decc82c"x ]
|
|
|
|
then
|
|
|
|
download . http://apt.debian.org.tw/pool/t/ttf-arphic-uming/ttf-arphic-uming_0.1.20060108.orig.tar.gz ec34aeb240fcce09d25fce2fbe5e5b6f358c2f24
|
|
|
|
cd "$WINETRICKS_TMP/"
|
|
|
|
tar -xzf "$WINETRICKS_CACHE/ttf-arphic-uming_0.1.20060108.orig.tar.gz"
|
2009-01-21 14:32:01 +01:00
|
|
|
try mv ttf-arphic-uming-0.1.20060108/*.ttf "$winefontsdir""
|
2008-05-24 11:28:41 +02:00
|
|
|
cd "$olddir"
|
|
|
|
fi
|
|
|
|
fi
|
2008-04-06 09:16:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_gecko() {
|
|
|
|
# Load the HTML rendering Engine (Gecko)
|
|
|
|
# FIXME: shouldn't this code be in some script installed
|
|
|
|
# as part of Wine instead of in winetricks?
|
|
|
|
# (e.g. we hardcode gecko's url here, but it's normally
|
|
|
|
# only hardcoded in wine.inf, and fetched from the registry thereafter,
|
|
|
|
# so we're adding a maintenance burden here.)
|
2007-10-05 00:39:47 +02:00
|
|
|
GECKO_VERSION=0.1.0
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2009-01-21 14:32:01 +01:00
|
|
|
if ! test -f "$WINETRICKS_CACHE"/wine_gecko-$GECKO_VERSION.cab
|
2007-06-03 22:12:03 +02:00
|
|
|
then
|
2008-05-08 00:47:36 +02:00
|
|
|
# FIXME: busted if using curl!
|
|
|
|
download . "http://source.winehq.org/winegecko.php?v=$GECKO_VERSION" c16f1072dc6b0ced20935662138dcf019a38cd56 wine_gecko-$GECKO_VERSION.cab
|
2007-06-03 22:12:03 +02:00
|
|
|
fi
|
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
cat > "$WINETRICKS_TMP"/geckopath.reg <<_EOF_
|
2007-06-03 22:12:03 +02:00
|
|
|
REGEDIT4
|
|
|
|
|
2007-10-05 00:39:47 +02:00
|
|
|
[HKEY_CURRENT_USER\\Software\\Wine\\MSHTML\\$GECKO_VERSION]
|
2007-06-03 22:12:03 +02:00
|
|
|
_EOF_
|
|
|
|
|
|
|
|
#The registry-entry does not support an environment-variable
|
|
|
|
# note: echo's behavior with backslashes and options is nonportable,
|
|
|
|
# see http://www.opengroup.org/onlinepubs/009695399/utilities/echo.html
|
2008-05-24 11:28:41 +02:00
|
|
|
echo -n '"GeckoPath"="' >>"$WINETRICKS_TMP"/geckopath.reg
|
|
|
|
echo -n 'c:\\windows\\gecko\\'$GECKO_VERSION | sed "s/\\\\/\\\\\\\\/g" >>"$WINETRICKS_TMP"/geckopath.reg
|
|
|
|
echo '\\\\wine_gecko"' >>"$WINETRICKS_TMP"/geckopath.reg
|
2007-06-03 22:12:03 +02:00
|
|
|
|
|
|
|
# extract the files
|
2009-01-21 14:32:01 +01:00
|
|
|
mkdir -p "$WINEPREFIX"/drive_c/windows/gecko/$GECKO_VERSION
|
|
|
|
cd "$WINEPREFIX"/drive_c/windows/gecko/$GECKO_VERSION
|
2008-05-24 11:28:41 +02:00
|
|
|
try cabextract $WINETRICKS_UNIXQUIET "$WINETRICKS_CACHE"/wine_gecko-$GECKO_VERSION.cab
|
2007-06-03 22:12:03 +02:00
|
|
|
cd "$olddir"
|
|
|
|
|
|
|
|
# set install-path
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE regedit "$WINETRICKS_TMP"/geckopath.reg
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_gdiplus() {
|
|
|
|
# gdiplus is documented here as a redistributable:
|
2007-10-05 00:39:47 +02:00
|
|
|
# http://msdn.microsoft.com/library/en-us/gdicpp/GDIPlus/GDIPlus.asp
|
2007-06-03 22:12:03 +02:00
|
|
|
# however, there's no standalone installer. So install a random
|
|
|
|
# app that happens to bundle it.
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/a/1/a/a1adc39b-9827-4c7a-890b-91396aed2b86/ppviewer.exe 4d13ca85d1d366167b6247ac7340b7736b1bff87
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/ppviewer.exe $WINETRICKS_QUIET
|
2007-06-03 22:12:03 +02:00
|
|
|
# And then make it globally available.
|
2009-01-21 14:32:01 +01:00
|
|
|
try cp "$programfilesdir_unix/Microsoft Office/PowerPoint Viewer/GDIPLUS.DLL" "$WINEPREFIX"/drive_c/windows/system32/
|
2008-04-06 09:16:00 +02:00
|
|
|
|
|
|
|
# For some reason, native,builtin isn't good enough...?
|
|
|
|
override_dlls native gdiplus
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-03-12 20:10:31 +01:00
|
|
|
load_icodecs() {
|
|
|
|
# http://downloadcenter.intel.com/Detail_Desc.aspx?strState=LIVE&ProductID=355&DwnldID=2846
|
|
|
|
download . http://downloadmirror.intel.com/2846/eng/codinstl.exe 2c5d64f472abe3f601ce352dcca75b4f02996f8a
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/codinstl.exe
|
2009-01-12 18:23:01 +01:00
|
|
|
}
|
|
|
|
|
2008-03-12 20:10:31 +01:00
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_jet40() {
|
|
|
|
# http://support.microsoft.com/kb/239114
|
|
|
|
# See also http://bugs.winehq.org/show_bug.cgi?id=6085
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/4/3/9/4393c9ac-e69e-458d-9f6d-2fe191c51469/jet40sp8_9xnt.exe 8cd25342030857969ede2d8fcc34f3f7bcc2d6d4
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/jet40sp8_9xnt.exe $WINETRICKS_QUIET
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-07-11 23:40:12 +02:00
|
|
|
load_kde() {
|
2009-01-21 14:32:01 +01:00
|
|
|
download . http://winkde.org/pub/kde/ports/win32/installer/kdewin-installer-gui-0.9.2-1.exe 504a05f3e47c429747a71bcc930c551ff4758d83
|
2008-07-11 23:40:12 +02:00
|
|
|
mkdir -p "$programfilesdir_unix/kde"
|
2009-01-21 14:32:01 +01:00
|
|
|
cp "$WINETRICKS_CACHE"/kdewin-installer-gui-0.9.2-1.exe "$programfilesdir_unix/kde"
|
2008-07-11 23:40:12 +02:00
|
|
|
cd "$programfilesdir_unix/kde"
|
2009-01-21 14:32:01 +01:00
|
|
|
try $WINE "$programfilesdir_win\\kde\\kdewin-installer-gui-0.9.2-1.exe"
|
2008-07-11 23:40:12 +02:00
|
|
|
cd "$olddir"
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_liberation() {
|
2008-04-06 09:16:00 +02:00
|
|
|
# http://www.redhat.com/promo/fonts/
|
2009-01-21 14:32:01 +01:00
|
|
|
download . http://www.redhat.com/f/fonts/liberation-fonts.tar.gz 38276ab5e4322e131217d26f193bfce396195c0a
|
|
|
|
# Fixme: get fonts path from SHGetFolderPath
|
|
|
|
# see also http://blogs.msdn.com/oldnewthing/archive/2003/11/03/55532.aspx
|
|
|
|
tar --wildcards -C "$winefontsdir" -xvzf "$WINETRICKS_CACHE"/liberation-fonts.tar.gz '*.ttf'
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
set_native_mdac() {
|
|
|
|
# Set those overrides globally so user programs get MDAC's odbc
|
|
|
|
# instead of wine's unixodbc
|
2008-04-06 09:16:00 +02:00
|
|
|
override_dlls native,builtin odbc32 odbccp32
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
2008-01-26 00:25:01 +01:00
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_mdac25() {
|
|
|
|
download mdac25 http://download.microsoft.com/download/e/e/4/ee4fe9ee-6fa1-4ab6-ab8c-fe1769f4edcf/mdac_typ.exe 09e974a5dbebaaa08c7985a4a1126886dc05fd87
|
|
|
|
set_native_mdac
|
|
|
|
set_winver nt40
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/mdac25/mdac_typ.exe
|
2008-01-26 00:25:01 +01:00
|
|
|
unset_winver
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_mdac27() {
|
2008-01-26 00:25:01 +01:00
|
|
|
download mdac27 http://download.microsoft.com/download/3/b/f/3bf74b01-16ba-472d-9a8c-42b2b4fa0d76/mdac_typ.exe f68594d1f578c3b47bf0639c46c11c5da161feee
|
2007-06-03 22:12:03 +02:00
|
|
|
set_native_mdac
|
2008-04-24 09:17:49 +02:00
|
|
|
set_winver win2k
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/mdac27/mdac_typ.exe
|
2008-04-24 09:17:49 +02:00
|
|
|
unset_winver
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_mdac28() {
|
2008-01-26 00:25:01 +01:00
|
|
|
download mdac28 http://download.microsoft.com/download/c/d/f/cdfd58f1-3973-4c51-8851-49ae3777586f/MDAC_TYP.EXE 91bd59f0b02b67f3845105b15a0f3502b9a2216a
|
2007-06-03 22:12:03 +02:00
|
|
|
set_native_mdac
|
|
|
|
set_winver win98
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/mdac28/MDAC_TYP.EXE
|
2007-06-03 22:12:03 +02:00
|
|
|
unset_winver
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_mfc40() {
|
2008-01-26 00:25:01 +01:00
|
|
|
# See http://support.microsoft.com/kb/122244
|
|
|
|
download . http://download.microsoft.com/download/ole/ole2v/3.5/w351/en-us/ole2v.exe c6cac71f32405ccb09c6f375e0738e6e13f073e4
|
2008-05-24 11:28:41 +02:00
|
|
|
try unzip -o $WINETRICKS_UNIXQUIET -d "$WINETRICKS_TMP" "$WINETRICKS_CACHE"/ole2v.exe
|
2009-01-21 14:32:01 +01:00
|
|
|
try cp -f "$WINETRICKS_TMP"/MFC40.DLL "$WINEPREFIX"/drive_c/windows/system32/
|
2008-01-26 00:25:01 +01:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
rm -rf "$WINETRICKS_TMP"/*
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2009-01-21 14:32:01 +01:00
|
|
|
load_mono19() {
|
2007-06-03 22:12:03 +02:00
|
|
|
# Load Mono, have it handle all .net requests
|
2009-01-21 14:32:01 +01:00
|
|
|
download . http://ftp.novell.com/pub/mono/archive/1.9.1/windows-installer/2/mono-1.9.1-gtksharp-2.10.4-win32-2.exe 47ccc5dbba22f6f684833a4efea5119231e8e71e
|
2007-06-03 22:12:03 +02:00
|
|
|
# Anyone know how to get it to do a silent install?
|
2009-01-21 14:32:01 +01:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/mono-1.9.1-gtksharp-2.10.4-win32-2.exe
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2009-01-21 14:32:01 +01:00
|
|
|
cat > "$WINETRICKS_TMP"/mono_1.9.reg <<_EOF_
|
2007-06-03 22:12:03 +02:00
|
|
|
REGEDIT4
|
|
|
|
|
2007-08-27 18:55:30 +02:00
|
|
|
[HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP\v2.0.50727]
|
2007-06-03 22:12:03 +02:00
|
|
|
"Install"=dword:00000001
|
|
|
|
"SP"=dword:00000001
|
|
|
|
|
2007-08-27 18:55:30 +02:00
|
|
|
[HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework\policy\v2.0]
|
2007-06-03 22:12:03 +02:00
|
|
|
"4322"="3706-4322"
|
|
|
|
_EOF_
|
2009-01-21 14:32:01 +01:00
|
|
|
try $WINE regedit "$WINETRICKS_TMP"/mono_1.9.reg
|
|
|
|
rm -f "$WINETRICKS_TMP"/mono_1.9.reg
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-06-26 00:40:27 +02:00
|
|
|
load_mpc() {
|
|
|
|
download . $SOURCEFORGE/guliverkli2/mplayerc_20080414.zip bc9f922d7151e7cc7fef429b085cf208ef989bab
|
|
|
|
cd "$WINEPREFIX"/drive_c
|
|
|
|
try unzip "$WINETRICKS_CACHE"/mplayerc_20080414.zip
|
|
|
|
cd "$olddir"
|
|
|
|
echo MPC now available as c:/mplayerc.exe
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_msi2() {
|
|
|
|
# Install native msi per http://wiki.winehq.org/NativeMsi
|
2008-02-15 01:47:21 +01:00
|
|
|
# http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=CEBBACD8-C094-4255-B702-DE3BB768148F
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/WindowsInstaller/Install/2.0/W9XMe/EN-US/InstMsiA.exe e739c40d747e7c27aacdb07b50925b1635ee7366
|
2007-06-03 22:12:03 +02:00
|
|
|
|
|
|
|
# Pick win98 so we can install native msi
|
|
|
|
set_winver win98
|
|
|
|
|
|
|
|
# Avoid "err:setupapi:SetupDefaultQueueCallbackA copy error 5 ..."
|
2009-01-21 14:32:01 +01:00
|
|
|
rm -f "$WINEPREFIX"/drive_c/windows/system32/msi.dll
|
|
|
|
rm -f "$WINEPREFIX"/drive_c/windows/system32/msiexec.exe
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
WINEDLLOVERRIDES="msi,msiexec.exe=n" try $WINE "$WINETRICKS_CACHE"/InstMSIA.exe $WINETRICKS_QUIET
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2008-04-06 09:16:00 +02:00
|
|
|
override_dlls native,builtin msi msiexec.exe
|
2007-06-03 22:12:03 +02:00
|
|
|
|
|
|
|
# and undo version win98
|
|
|
|
unset_winver
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-04-06 09:16:00 +02:00
|
|
|
load_msls31() {
|
|
|
|
# Install native Microsoft Line Services (needed by e-Sword, possibly only when using native riched20)
|
2008-07-11 23:40:12 +02:00
|
|
|
download . http://download.microsoft.com/download/WindowsInstaller/Install/2.0/W9XMe/EN-US/InstMsiA.exe e739c40d747e7c27aacdb07b50925b1635ee7366
|
|
|
|
try cabextract --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/InstMsiA.exe
|
2009-01-21 14:32:01 +01:00
|
|
|
try cp -f "$WINETRICKS_TMP"/msls31.dll "$WINEPREFIX"/drive_c/windows/system32
|
2008-04-06 09:16:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_msxml3() {
|
|
|
|
# Service Pack 5
|
|
|
|
#download http://download.microsoft.com/download/a/5/e/a5e03798-2454-4d4b-89a3-4a47579891d8/msxml3.msi
|
|
|
|
# Service Pack 7
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/8/8/8/888f34b7-4f54-4f06-8dac-fa29b19f33dd/msxml3.msi d4c2178dfb807e1a0267fce0fd06b8d51106d913
|
2007-06-03 22:12:03 +02:00
|
|
|
# http://bugs.winehq.org/show_bug.cgi?id=7849 fixed since 0.9.37
|
2008-04-06 09:16:00 +02:00
|
|
|
override_dlls native,builtin msxml3
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE msiexec /i "$WINETRICKS_CACHE"/msxml3.msi $WINETRICKS_QUIET
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_msxml4() {
|
|
|
|
# http://www.microsoft.com/downloads/details.aspx?familyid=24B7D141-6CDF-4FC4-A91B-6F18FE6921D4
|
2009-01-21 14:32:01 +01:00
|
|
|
if ! test -f "$WINETRICKS_CACHE"/msxml4.msi
|
2007-06-03 22:12:03 +02:00
|
|
|
then
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/e/2/e/e2e92e52-210b-4774-8cd9-3a7a0130141d/msxml4-KB927978-enu.exe d364f9fe80c3965e79f6f64609fc253dfeb69c25
|
2008-05-24 11:28:41 +02:00
|
|
|
rm -rf "$WINETRICKS_TMP"/*
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/msxml4-KB927978-enu.exe "/x:`$WINE winepath -w "$WINETRICKS_TMP"`" $WINETRICKS_QUIET
|
2009-01-21 14:32:01 +01:00
|
|
|
if ! test -f "$WINETRICKS_TMP"/msxml.msi
|
2007-06-03 22:12:03 +02:00
|
|
|
then
|
2008-04-24 09:17:49 +02:00
|
|
|
die msxml.msi not found
|
2007-06-03 22:12:03 +02:00
|
|
|
fi
|
2008-05-24 11:28:41 +02:00
|
|
|
mv "$WINETRICKS_TMP"/msxml.msi "$WINETRICKS_CACHE"/msxml4.msi
|
2007-06-03 22:12:03 +02:00
|
|
|
fi
|
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE msiexec /i "$WINETRICKS_CACHE"/msxml4.msi $WINETRICKS_QUIET
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-02-15 01:47:21 +01:00
|
|
|
load_msxml6() {
|
|
|
|
# http://www.microsoft.com/downloads/details.aspx?FamilyID=993c0bcf-3bcf-4009-be21-27e85e1857b1
|
|
|
|
download . http://download.microsoft.com/download/2/e/0/2e01308a-e17f-4bf9-bf48-161356cf9c81/msxml6.msi 2308743ddb4cb56ae910e461eeb3eab0a9e58058
|
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE msiexec /i "$WINETRICKS_CACHE"/msxml6.msi $WINETRICKS_QUIET
|
2008-02-15 01:47:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-07-11 23:40:12 +02:00
|
|
|
load_ogg() {
|
|
|
|
# flac, ogg, speex, vorbis, ogm source, ogg source
|
|
|
|
download . http://cross-lfs.org/~mlankhorst/oggcodecs_0.81.2.exe c9d10a8f1b65b9f3824e227333d66247e14fad4c
|
|
|
|
#try $WINE "$WINETRICKS_CACHE"/oggcodecs_0.81.2.exe $WINETRICKS_QUIET
|
|
|
|
# oh, and the new schroedinger direct show filter, too
|
|
|
|
# see following URLs for more info
|
|
|
|
# http://www.diracvideo.org/
|
|
|
|
# http://cross-lfs.org/~mlankhorst/direct-schro.txt
|
|
|
|
# http://www.diracvideo.org/git?p=direct-schro.git;a=summary
|
|
|
|
# Requires wine-1.1.1
|
|
|
|
download . http://cross-lfs.org/~mlankhorst/direct-schro.dll
|
2009-01-21 14:32:01 +01:00
|
|
|
cp "$WINETRICKS_CACHE"/direct-schro.dll "$WINEPREFIX"/drive_c/windows/system32/direct-schro.dll
|
2008-07-11 23:40:12 +02:00
|
|
|
try $WINE regsvr32 direct-schro.dll
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_pdh() {
|
|
|
|
# http://support.microsoft.com/kb/284996
|
2008-02-15 01:47:21 +01:00
|
|
|
download . http://download.microsoft.com/download/platformsdk/Redist/5.0.2195.2668/NT4/EN-US/pdhinst.exe f42448660def8cd7f42b34aa7bc7264745f4425e
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/pdhinst.exe
|
2009-01-21 14:32:01 +01:00
|
|
|
try cp -f "$WINEPREFIX"/drive_c/windows/temp/x86/Pdh.Dll $WINEPREFIX/drive_c/windows/system32/pdh.dll
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-06-26 00:40:27 +02:00
|
|
|
load_quicktime72() {
|
|
|
|
# http://www.apple.com/support/downloads/quicktime72forwindows.html
|
|
|
|
download quicktime72 'http://wsidecar.apple.com/cgi-bin/nph-reg3rdpty2.pl/product=14402&cat=59&platform=osx&method=sa/QuickTimeInstaller.exe' bb89981f10cf21de57b9453e53cf81b9194271a9
|
|
|
|
unset QUICKTIME_QUIET
|
|
|
|
if test "$WINETRICKS_QUIET"x != x
|
|
|
|
then
|
|
|
|
QUICKTIME_QUIET="/qn" # ISSETUPDRIVEN=0
|
|
|
|
fi
|
|
|
|
# set vista mode to inhibit directdraw overlay use that blacks the screen
|
|
|
|
set_winver vista
|
|
|
|
try $WINE "$WINETRICKS_CACHE"/quicktime72/QuickTimeInstaller.exe ALLUSERS=1 DESKTOP_SHORTCUTS=0 QTTaskRunFlags=0 QTINFO.BISQTPRO=1 SCHEDULE_ASUW=0 REBOOT_REQUIRED=No $QUICKTIME_QUIET
|
|
|
|
if test "$WINETRICKS_QUIET"x = x
|
|
|
|
then
|
|
|
|
echo "You probably want to select Advanced / Safe Mode in the Quicktime control panel"
|
|
|
|
try $WINE control ${programfilesdir_win}'\QuickTime\QTSystem\QuickTime.cpl'
|
|
|
|
fi
|
|
|
|
|
|
|
|
unset_winver
|
|
|
|
# user might want to set vista mode himself, or run
|
|
|
|
# wine control ".wine/drive_c/Program Files/QuickTime/QTSystem/QuickTime.cpl"
|
|
|
|
# and pick Advanced / Safe Mode (gdi only).
|
|
|
|
# We could probably force that by overwriting QuickTime.qtp
|
|
|
|
# (probably in Program Files/QuickTime/QTSystem/QuickTime.qtp)
|
|
|
|
# but the format isn't known, so we'd have to override all other settings, too.
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-10-05 00:39:47 +02:00
|
|
|
volnum() {
|
|
|
|
# Recent Microsoft installers are often based on "windows package manager", see
|
|
|
|
# http://support.microsoft.com/kb/262841 and
|
|
|
|
# http://www.microsoft.com/technet/prodtechnol/windowsserver2003/deployment/winupdte.mspx
|
|
|
|
# These installers check the drive name, and if it doesn't start with 'harddisk',
|
|
|
|
# they complain "Unable to find a volume for file extraction", see
|
|
|
|
# http://bugs.winehq.org/show_bug.cgi?id=5351
|
|
|
|
# You may be able to work around this by using the installer's /x or /extract switch,
|
|
|
|
# but renaming drive_c to "harddiskvolume0" lets you just run the installer as normal.
|
|
|
|
|
2009-01-21 14:32:01 +01:00
|
|
|
if ! test -d "$WINEPREFIX"/harddiskvolume0/
|
2007-10-05 00:39:47 +02:00
|
|
|
then
|
2008-05-24 11:28:41 +02:00
|
|
|
ln -s drive_c "$WINEPREFIX"/harddiskvolume0
|
|
|
|
rm "$WINEPREFIX"/dosdevices/c:
|
|
|
|
ln -s ../harddiskvolume0 "$WINEPREFIX"/dosdevices/c:
|
2007-10-05 00:39:47 +02:00
|
|
|
echo "Renamed drive_c to harddiskvolume0"
|
|
|
|
else
|
|
|
|
echo "drive_c already named harddiskvolume0"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-01-26 00:25:01 +01:00
|
|
|
load_riched20() {
|
|
|
|
# http://support.microsoft.com/?kbid=249973
|
|
|
|
download . http://download.microsoft.com/download/winntsp/Patch/RTF/NT4/EN-US/Q249973i.EXE f0b7663f15dbd31410435483ba832318c7a70470
|
2008-05-24 11:28:41 +02:00
|
|
|
try cabextract --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/Q249973i.EXE
|
2009-01-21 14:32:01 +01:00
|
|
|
try cp -f "$WINETRICKS_TMP"/riched??.dll "$WINEPREFIX"/drive_c/windows/system32
|
2008-04-06 09:16:00 +02:00
|
|
|
override_dlls native,builtin riched20 riched32
|
2008-01-26 00:25:01 +01:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
rm -rf "$WINETRICKS_TMP"/*
|
2008-01-26 00:25:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-02-15 01:47:21 +01:00
|
|
|
load_riched30() {
|
|
|
|
# http://www.novell.com/documentation/nm1/readmeen_web/readmeen_web.html#Akx3j64
|
|
|
|
# claims that Groupwise Messenger's View / Text Size command
|
|
|
|
# only works with riched30, and recommends getting it by installing
|
|
|
|
# msi 2, which just happens to come with riched30 version of riched20
|
|
|
|
# (though not with a corresponding riched32, which might be a problem)
|
|
|
|
# http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=CEBBACD8-C094-4255-B702-DE3BB768148F
|
|
|
|
download . http://download.microsoft.com/download/WindowsInstaller/Install/2.0/W9XMe/EN-US/InstMsiA.exe e739c40d747e7c27aacdb07b50925b1635ee7366
|
2008-05-24 11:28:41 +02:00
|
|
|
try cabextract --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/InstMsiA.exe
|
2009-01-21 14:32:01 +01:00
|
|
|
try cp -f "$WINETRICKS_TMP"/riched20.dll "$WINEPREFIX"/drive_c/windows/system32
|
2008-04-06 09:16:00 +02:00
|
|
|
override_dlls native,builtin riched20
|
2008-02-15 01:47:21 +01:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
rm -rf "$WINETRICKS_TMP"/*
|
2008-02-15 01:47:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_tahoma() {
|
|
|
|
# The tahoma font is needed by e.g. Steam
|
2008-05-24 11:28:41 +02:00
|
|
|
download . $SOURCEFORGE/corefonts/wd97vwr32.exe 8edf758f92513094a94e50b7826cd6f2b7696b8c
|
|
|
|
try cabextract --directory="$WINETRICKS_TMP" "$WINETRICKS_CACHE"/wd97vwr32.exe
|
2009-01-21 14:32:01 +01:00
|
|
|
try cabextract --directory="$WINETRICKS_TMP" $WINETRICKS_TMP/Viewer1.cab
|
2008-05-08 00:47:36 +02:00
|
|
|
# Fixme: get fonts path from SHGetFolderPath
|
|
|
|
# see also http://blogs.msdn.com/oldnewthing/archive/2003/11/03/55532.aspx
|
2008-05-24 11:28:41 +02:00
|
|
|
try cp -f "$WINETRICKS_TMP"/tahoma.ttf "$winefontsdir"/tahoma.ttf
|
|
|
|
chmod +w "$winefontsdir"/tahoma.ttf
|
|
|
|
rm -rf "$WINETRICKS_TMP"/*
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-03-12 20:10:31 +01:00
|
|
|
load_vb3run() {
|
|
|
|
# See http://support.microsoft.com/kb/196285
|
|
|
|
download . http://download.microsoft.com/download/vb30/utility/1/w9xnt4/en-us/vb3run.exe 518fcfefde9bf680695cadd06512efadc5ac2aa7
|
2008-05-24 11:28:41 +02:00
|
|
|
try unzip -o $WINETRICKS_UNIXQUIET -d "$WINETRICKS_TMP" "$WINETRICKS_CACHE"/vb3run.exe
|
2009-01-21 14:32:01 +01:00
|
|
|
try cp -f "$WINETRICKS_TMP/Vbrun300.dll" "$WINEPREFIX"/drive_c/windows/system32/
|
2008-03-12 20:10:31 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_vb4run() {
|
|
|
|
# See http://support.microsoft.com/kb/196286
|
|
|
|
download . http://download.microsoft.com/download/vb40ent/sample27/1/w9xnt4/en-us/vb4run.exe 83e968063272e97bfffd628a73bf0ff5f8e1023b
|
2008-05-24 11:28:41 +02:00
|
|
|
try unzip -o $WINETRICKS_UNIXQUIET -d "$WINETRICKS_TMP" "$WINETRICKS_CACHE"/vb4run.exe
|
2009-01-21 14:32:01 +01:00
|
|
|
try cp -f "$WINETRICKS_TMP/Vb40032.dll" "$WINEPREFIX"/drive_c/windows/system32/
|
|
|
|
try cp -f "$WINETRICKS_TMP/Vb40016.dll" "$WINEPREFIX"/drive_c/windows/system32/
|
2008-03-12 20:10:31 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_vbvm50() {
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/vb50pro/utility/1/win98/en-us/msvbvm50.exe 28bfaf09b8ac32cf5ffa81252f3e2fadcb3a8f27
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/msvbvm50.exe $WINETRICKS_QUIET
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_vbrun60() {
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/vb60pro/install/6/win98me/en-us/vbrun60.exe 2dc00e5fc701492bcba7ac58f057ee43751e18e5
|
2007-06-03 22:12:03 +02:00
|
|
|
# Exits with status 43 for some reason?
|
2008-05-24 11:28:41 +02:00
|
|
|
$WINE "$WINETRICKS_CACHE"/vbrun60.exe $WINETRICKS_QUIET || true
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_vcrun6() {
|
|
|
|
# Load the Visual C++ 6 runtime libraries, including the elusive mfc42u.dll
|
2009-01-21 14:32:01 +01:00
|
|
|
if test -f "$WINEPREFIX"/drive_c/windows/system32/mfc42u.dll
|
2008-04-24 09:17:49 +02:00
|
|
|
then
|
|
|
|
echo "vcrun6 already installed, skipping"
|
|
|
|
return
|
|
|
|
fi
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2009-01-21 14:32:01 +01:00
|
|
|
if ! test -f "$WINETRICKS_CACHE"/vcredist.exe
|
2007-06-03 22:12:03 +02:00
|
|
|
then
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/vc60pro/update/1/w9xnt4/en-us/vc6redistsetup_enu.exe 382c8f5a7f41189af8d4165cf441f274b7e2a457
|
2008-05-24 11:28:41 +02:00
|
|
|
rm -rf "$WINETRICKS_TMP"/*
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/vc6redistsetup_enu.exe "/T:`$WINE winepath -w "$WINETRICKS_TMP"`" /c $WINETRICKS_QUIET
|
2009-01-21 14:32:01 +01:00
|
|
|
if ! test -f "$WINETRICKS_TMP"/vcredist.exe
|
2007-06-03 22:12:03 +02:00
|
|
|
then
|
2008-04-24 09:17:49 +02:00
|
|
|
die vcredist.exe not found
|
2007-06-03 22:12:03 +02:00
|
|
|
fi
|
2008-05-24 11:28:41 +02:00
|
|
|
mv "$WINETRICKS_TMP"/vcredist.exe "$WINETRICKS_CACHE"
|
2007-06-03 22:12:03 +02:00
|
|
|
fi
|
|
|
|
# Delete some fake dlls to avoid vcredist installer warnings
|
2009-01-21 14:32:01 +01:00
|
|
|
rm -f "$WINEPREFIX"/drive_c/windows/system32/msvcrt.dll
|
|
|
|
rm -f "$WINEPREFIX"/drive_c/windows/system32/oleaut32.dll
|
|
|
|
rm -f "$WINEPREFIX"/drive_c/windows/system32/olepro32.dll
|
2007-06-03 22:12:03 +02:00
|
|
|
# vcredist still exits with status 43. Anyone know why?
|
2008-05-24 11:28:41 +02:00
|
|
|
$WINE "$WINETRICKS_CACHE"/vcredist.exe || true
|
2007-06-03 22:12:03 +02:00
|
|
|
|
|
|
|
# And then some apps need mfc42u.dll, dunno what right way
|
|
|
|
# is to get it, vcredist doesn't install it by default?
|
2008-05-24 11:28:41 +02:00
|
|
|
cd "$WINETRICKS_TMP"/
|
|
|
|
rm -rf "$WINETRICKS_TMP"/*
|
|
|
|
try cabextract "$WINETRICKS_CACHE"/vcredist.exe
|
2009-01-21 14:32:01 +01:00
|
|
|
mv mfc42u.dll "$WINEPREFIX"/drive_c/windows/system32/
|
2007-06-03 22:12:03 +02:00
|
|
|
cd "$olddir"
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-04-06 09:16:00 +02:00
|
|
|
load_vcrun2003() {
|
|
|
|
# Load the Visual C++ 2003 runtime libraries
|
|
|
|
# Sadly, I know of no Microsoft URL for these
|
|
|
|
echo "Installing BZFlag (which comes with the Visual C++ 2003 runtimes)"
|
2008-05-24 11:28:41 +02:00
|
|
|
download . $SOURCEFORGE/bzflag/BZEditW32_1.6.5_Installer.exe bdd1b32c4202fd77e6513fd507c8236888b09121
|
|
|
|
try $WINE "$WINETRICKS_CACHE"/BZEditW32_1.6.5_Installer.exe $WINETRICKS_S
|
2009-01-21 14:32:01 +01:00
|
|
|
cp "$programfilesdir_unix/BZEdit1.6.5"/m*71* "$WINEPREFIX"/drive_c/windows/system32/
|
2008-04-06 09:16:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_vcrun2005() {
|
|
|
|
# Load the Visual C++ 2005 runtime libraries
|
|
|
|
# See http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE
|
2009-01-21 14:32:01 +01:00
|
|
|
set_winver win2k
|
2008-01-26 00:25:01 +01:00
|
|
|
download vcrun2005 http://download.microsoft.com/download/d/3/4/d342efa6-3266-4157-a2ec-5174867be706/vcredist_x86.exe 47fba37de95fa0e2328cf2e5c8ebb954c4b7b93c
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/vcrun2005/vcredist_x86.exe $WINETRICKS_QUIET
|
2009-01-21 14:32:01 +01:00
|
|
|
unset_winver
|
2008-01-26 00:25:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_vcrun2005sp1() {
|
|
|
|
# Load the Visual C++ 2005 SP1 runtime libraries
|
|
|
|
# See http://www.microsoft.com/downloads/details.aspx?familyid=200b2fd9-ae1a-4a14-984d-389c36f85647
|
|
|
|
download vcrun2005sp1 http://download.microsoft.com/download/e/1/c/e1c773de-73ba-494a-a5ba-f24906ecf088/vcredist_x86.exe 7dfa98be78249921dd0eedb9a3dd809e7d215c8d
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/vcrun2005sp1/vcredist_x86.exe $WINETRICKS_QUIET
|
2008-01-26 00:25:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_vcrun2008() {
|
|
|
|
# Otherwise it complains...
|
|
|
|
volnum
|
|
|
|
|
|
|
|
# Load the Visual C++ 2008 runtime libraries
|
|
|
|
# See http://www.microsoft.com/downloads/details.aspx?familyid=9b2da534-3e03-4391-8a4d-074b9f2bc1bf
|
|
|
|
download vcrun2008 http://download.microsoft.com/download/1/1/1/1116b75a-9ec3-481a-a3c8-1777b5381140/vcredist_x86.exe 56719288ab6514c07ac2088119d8a87056eeb94a
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/vcrun2008/vcredist_x86.exe $WINETRICKS_QUIET
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-06-26 01:10:51 +02:00
|
|
|
load_vjrun20() {
|
|
|
|
download vjrun20 http://download.microsoft.com/download/9/2/3/92338cd0-759f-4815-8981-24b437be74ef/vjredist.exe 80a098e36b90d159da915aebfbfbacf35f302bd8
|
|
|
|
try $WINE "$WINETRICKS_CACHE"/vjrun20/vjredist.exe $WINETRICKS_QUIET
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-06-26 00:40:27 +02:00
|
|
|
load_vlc() {
|
|
|
|
# want http://www.videolan.org/mirror.php?file=vlc/0.8.6f/win32/vlc-0.8.6f-win32.exe but it doesn't redirect?
|
|
|
|
download . http://mirrors.optralan.com/videolan/vlc/0.8.6f/win32/vlc-0.8.6f-win32.exe b83558e4232c47a385dbc93ebdc2e6b942fbcfbf
|
|
|
|
try $WINE "$WINETRICKS_CACHE"/vlc-0.8.6f-win32.exe $WINETRICKS_S
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-04-24 09:17:49 +02:00
|
|
|
load_wmp9() {
|
|
|
|
# Not really expected to work well yet; see
|
|
|
|
# http://appdb.winehq.org/appview.php?versionId=1449
|
|
|
|
|
|
|
|
set_winver win2k
|
|
|
|
|
|
|
|
# See also http://www.microsoft.com/windows/windowsmedia/player/9series/default.aspx
|
|
|
|
download wmp9 http://download.microsoft.com/download/1/b/c/1bc0b1a3-c839-4b36-8f3c-19847ba09299/MPSetup.exe 580536d10657fa3868de2869a3902d31a0de791b
|
|
|
|
|
|
|
|
# Have to run twice; see http://bugs.winehq.org/show_bug.cgi?id=1886
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/wmp9/MPSetup.exe $WINETRICKS_QUIET
|
|
|
|
try $WINE "$WINETRICKS_CACHE"/wmp9/MPSetup.exe $WINETRICKS_QUIET
|
2008-04-24 09:17:49 +02:00
|
|
|
|
|
|
|
# Also install the codecs
|
|
|
|
# See http://www.microsoft.com/downloads/details.aspx?FamilyID=06fcaab7-dcc9-466b-b0c4-04db144bb601
|
|
|
|
download . http://download.microsoft.com/download/5/c/2/5c29d825-61eb-4b16-8eb8-58367d0464d5/WM9Codecs9x.exe 8b76bdcbea0057eb12b7966edab4b942ddacc253
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/WM9Codecs9x.exe $WINETRICKS_QUIET
|
2008-04-24 09:17:49 +02:00
|
|
|
|
|
|
|
unset_winver
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_wmp10() {
|
|
|
|
# See http://appdb.winehq.org/appview.php?iVersionId=3212
|
|
|
|
|
|
|
|
# See also http://www.microsoft.com/windows/windowsmedia/player/10
|
|
|
|
download . http://download.microsoft.com/download/1/2/A/12A31F29-2FA9-4F50-B95D-E45EF7013F87/MP10Setup.exe 69862273a5d9d97b4a2e5a3bd93898d259e86657
|
|
|
|
|
|
|
|
# Crashes on exit, but otherwise ok; see http://bugs.winehq.org/show_bug.cgi?id=12633
|
2008-06-26 00:40:27 +02:00
|
|
|
echo Executing $WINE "$WINETRICKS_CACHE"/MP10Setup.exe $WINETRICKS_QUIET
|
2008-05-24 11:28:41 +02:00
|
|
|
$WINE "$WINETRICKS_CACHE"/MP10Setup.exe $WINETRICKS_QUIET || true
|
2008-04-24 09:17:49 +02:00
|
|
|
|
|
|
|
# Also install the codecs
|
|
|
|
# See http://www.microsoft.com/downloads/details.aspx?FamilyID=06fcaab7-dcc9-466b-b0c4-04db144bb601
|
|
|
|
download . http://download.microsoft.com/download/5/c/2/5c29d825-61eb-4b16-8eb8-58367d0464d5/WM9Codecs9x.exe 8b76bdcbea0057eb12b7966edab4b942ddacc253
|
|
|
|
set_winver win2k
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/WM9Codecs9x.exe $WINETRICKS_QUIET
|
2008-04-24 09:17:49 +02:00
|
|
|
unset_winver
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2009-01-21 14:32:01 +01:00
|
|
|
load_wsh51() {
|
|
|
|
# See also http://www.microsoft.com/downloads/details.aspx?FamilyID=bfdb7709-51e4-4aa6-adb0-05444e68dd80&DisplayLang=en
|
|
|
|
echo "Note: Microsoft has since pulled this download. Sorry!"
|
|
|
|
download . http://download.microsoft.com/download/8/7/5/8751c696-282d-49da-b118-2735315dbb5e/ste51en.exe ecc0fb713684294fe6c759f4633c5befbeba1ade
|
|
|
|
|
|
|
|
try $WINE "$WINETRICKS_CACHE"/ste51en.exe $WINETRICKS_QUIET
|
|
|
|
|
|
|
|
# Not sure why this gets installed to the wrong directory
|
|
|
|
mv "$WINEPREFIX"/drive_c/windows/system32/unknown/cscript.exe $WINEPREFIX/drive_c/windows/system32
|
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
load_wsh56() {
|
|
|
|
# See also http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=C717D943-7E4B-4622-86EB-95A22B832CAA
|
2008-03-12 20:10:31 +01:00
|
|
|
# FIXME: depends on vcrun6, should we install that automatically?
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/2/8/a/28a5a346-1be1-4049-b554-3bc5f3174353/WindowsXP-Windows2000-Script56-KB917344-x86-enu.exe f4692766caa3ee9b38d4166845486c6199a33457
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/WindowsXP-Windows2000-Script56-KB917344-x86-enu.exe $WINETRICKS_QUIET
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_wsh56js() {
|
|
|
|
# This installs jscript 5.6 (but not vbscript)
|
|
|
|
# See also http://www.microsoft.com/downloads/details.aspx?FamilyID=16dd21a1-c4ee-4eca-8b80-7bd1dfefb4f8&DisplayLang=en
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/b/c/3/bc3a0c36-fada-497d-a3de-8b0139766f3b/Windows2000-KB917344-56-x86-enu.exe add5f74c5bd4da6cfae47f8306de213ec6ed52c8
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/Windows2000-KB917344-56-x86-enu.exe $WINETRICKS_QUIET
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
|
|
|
load_wsh56vb() {
|
|
|
|
# This installs vbscript 5.6 (but not jscript)
|
|
|
|
# See also http://www.microsoft.com/downloads/details.aspx?familyid=4F728263-83A3-464B-BCC0-54E63714BC75
|
2008-01-26 00:25:01 +01:00
|
|
|
download . http://download.microsoft.com/download/IE60/Patch/Q318089/W9XNT4Me/EN-US/vbs56men.exe 48f14a93db33caff271da0c93f334971f9d7cb22
|
2007-06-03 22:12:03 +02:00
|
|
|
|
2008-05-24 11:28:41 +02:00
|
|
|
try $WINE "$WINETRICKS_CACHE"/vbs56men.exe $WINETRICKS_QUIET
|
2007-06-03 22:12:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2008-01-26 00:25:01 +01:00
|
|
|
load_xvid() {
|
|
|
|
# xvid
|
2008-06-26 01:10:51 +02:00
|
|
|
download . http://download2.videohelp.com/download/Xvid-1.1.3-27042008.exe f1008a11037c0b9368aa4979e62d0963d05d8007
|
|
|
|
try $WINE "$WINETRICKS_CACHE"/Xvid-1.1.3-27042008.exe $WINETRICKS_SILENT
|
2008-01-26 00:25:01 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#----------------------------------------------------------------
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
|
|
|
|
while test "$1" != ""
|
|
|
|
do
|
2008-01-26 00:25:01 +01:00
|
|
|
PACKAGE=$1
|
2007-06-03 22:12:03 +02:00
|
|
|
case $1 in
|
|
|
|
-q) WINETRICKS_QUIET="/q"
|
|
|
|
WINETRICKS_UNIXQUIET="-q"
|
2008-01-26 00:25:01 +01:00
|
|
|
WINETRICKS_SILENT="/silent"
|
2008-04-06 09:16:00 +02:00
|
|
|
WINETRICKS_S="/S" # for NSIS installers
|
2007-06-03 22:12:03 +02:00
|
|
|
WINEDEBUG=${WINEDEBUG:-"fixme-all"}
|
|
|
|
export WINEDEBUG
|
|
|
|
;;
|
|
|
|
-v) set -x;;
|
|
|
|
art2kmin) load_art2kmin;;
|
2008-06-26 01:10:51 +02:00
|
|
|
autohotkey) load_autohotkey;;
|
|
|
|
cc580|comctl32) load_cc580;;
|
|
|
|
comctl32.ocx) load_comctl32ocx;;
|
2008-02-25 17:48:50 +01:00
|
|
|
colorprofile) load_colorprofile;;
|
2007-06-03 22:12:03 +02:00
|
|
|
corefonts) load_corefonts;;
|
|
|
|
dcom98) load_dcom98;;
|
2009-01-21 14:32:01 +01:00
|
|
|
dirac) load_dirac;;
|
2008-05-24 11:28:41 +02:00
|
|
|
directx9) load_directx9;;
|
2008-06-26 01:10:51 +02:00
|
|
|
divx) load_divx;;
|
2008-05-24 11:28:41 +02:00
|
|
|
dotnet11) load_dotnet11; load_fontfix;;
|
|
|
|
dotnet20) load_dotnet20; load_fontfix;;
|
2008-07-11 23:40:12 +02:00
|
|
|
firefox|firefox3) load_firefox3;;
|
2008-01-26 00:25:01 +01:00
|
|
|
ffdshow) load_ffdshow;;
|
2008-04-06 09:16:00 +02:00
|
|
|
flash) load_flash;;
|
2008-05-24 11:28:41 +02:00
|
|
|
fontfix) load_fontfix;;
|
2007-06-03 22:12:03 +02:00
|
|
|
gdiplus) load_gdiplus;;
|
|
|
|
gecko) load_gecko;;
|
2008-03-12 20:10:31 +01:00
|
|
|
icodecs) load_icodecs;;
|
2007-06-03 22:12:03 +02:00
|
|
|
jet40) load_jet40;;
|
2008-07-11 23:40:12 +02:00
|
|
|
kde) load_kde;;
|
2007-06-03 22:12:03 +02:00
|
|
|
liberation) load_liberation;;
|
2008-01-26 00:25:01 +01:00
|
|
|
mdac25) load_mdac25;;
|
2007-06-03 22:12:03 +02:00
|
|
|
mdac27) load_mdac27;;
|
|
|
|
mdac28) load_mdac28;;
|
|
|
|
mfc40) load_mfc40;;
|
2009-01-21 14:32:01 +01:00
|
|
|
mono19) load_mono19;;
|
2008-06-26 00:40:27 +02:00
|
|
|
mpc) load_mpc;;
|
2007-06-03 22:12:03 +02:00
|
|
|
msi2) load_msi2;;
|
2008-04-06 09:16:00 +02:00
|
|
|
msls31) load_msls31;;
|
2007-06-03 22:12:03 +02:00
|
|
|
msxml3) load_msxml3;;
|
|
|
|
msxml4) load_msxml4;;
|
2008-02-15 01:47:21 +01:00
|
|
|
msxml6) load_msxml6;;
|
2008-07-11 23:40:12 +02:00
|
|
|
ogg) load_ogg;;
|
2007-06-03 22:12:03 +02:00
|
|
|
pdh) load_pdh;;
|
2008-06-26 00:40:27 +02:00
|
|
|
quicktime72) load_gdiplus; load_quicktime72;; # needs e.g. gdiplus.dll.GdipCloneImage
|
2008-01-26 00:25:01 +01:00
|
|
|
riched20) load_riched20;;
|
2008-02-15 01:47:21 +01:00
|
|
|
riched30) load_riched30;;
|
2007-06-03 22:12:03 +02:00
|
|
|
tahoma) load_tahoma;;
|
2008-03-12 20:10:31 +01:00
|
|
|
vb3run) load_vb3run;;
|
|
|
|
vb4run) load_vb4run;;
|
|
|
|
vbvm50|vb5run) load_vbvm50;;
|
|
|
|
vbrun60|vb6run) load_vbrun60;;
|
2008-05-24 11:28:41 +02:00
|
|
|
vcrun6|mfc42) load_vcrun6;;
|
2008-04-06 09:16:00 +02:00
|
|
|
vcrun2003) load_vcrun2003;;
|
2007-06-03 22:12:03 +02:00
|
|
|
vcrun2005) load_vcrun2005;;
|
2008-01-26 00:25:01 +01:00
|
|
|
vcrun2005sp1) load_vcrun2005sp1;;
|
|
|
|
vcrun2008) load_vcrun2008;;
|
2008-06-26 01:10:51 +02:00
|
|
|
vjrun20) load_vjrun20;;
|
2008-06-26 00:40:27 +02:00
|
|
|
vlc) load_vlc;;
|
2008-04-24 09:17:49 +02:00
|
|
|
wmp9) load_vcrun6; load_wsh56; load_wmp9;;
|
|
|
|
wmp10) load_vcrun6; load_wsh56; load_wmp10;;
|
2009-01-21 14:32:01 +01:00
|
|
|
wsh51) load_wsh51;;
|
2008-05-24 11:28:41 +02:00
|
|
|
wsh56) load_vcrun6; load_wsh56;;
|
2007-06-03 22:12:03 +02:00
|
|
|
wsh56js) load_wsh56js;;
|
|
|
|
wsh56vb) load_wsh56vb;;
|
2008-01-26 00:25:01 +01:00
|
|
|
xvid) load_xvid;;
|
2007-06-03 22:12:03 +02:00
|
|
|
|
|
|
|
fakeie6) set_fakeie6;;
|
2008-01-26 00:25:01 +01:00
|
|
|
allfonts) load_corefonts; load_tahoma; load_liberation;;
|
2008-03-12 20:10:31 +01:00
|
|
|
allvcodecs|allcodecs) load_vcrun6; load_ffdshow; load_xvid; load_icodecs;;
|
2008-04-06 09:16:00 +02:00
|
|
|
nt40|winver=nt40) set_winver nt40;;
|
|
|
|
win98|winver=win98) set_winver win98;;
|
|
|
|
win2k|winver=win2k) set_winver win2k;;
|
|
|
|
winxp|winver=winxp) set_winver winxp;;
|
2008-04-24 09:17:49 +02:00
|
|
|
vista|winver=vista) set_winver vista;;
|
2007-06-03 22:12:03 +02:00
|
|
|
winver=) unset_winver;;
|
|
|
|
native_mdac) set_native_mdac;;
|
2007-10-05 00:39:47 +02:00
|
|
|
volnum) volnum;;
|
2008-02-15 01:47:21 +01:00
|
|
|
*) echo Unknown arg $1; usage ; exit 1;;
|
2007-06-03 22:12:03 +02:00
|
|
|
esac
|
|
|
|
# Provide a bit of feedback
|
|
|
|
test "$WINETRICKS_QUIET" = "" && case $1 in
|
|
|
|
-q) echo Setting quiet mode;;
|
|
|
|
-v) echo Setting verbose mode;;
|
|
|
|
*) echo "Install of $1 done" ;;
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
2009-01-21 14:32:01 +01:00
|
|
|
# cleanup
|
|
|
|
rm -rf "$WINETRICKS_TMP"/*
|
|
|
|
|
2007-06-03 22:12:03 +02:00
|
|
|
test "$WINETRICKS_QUIET" = "" && echo winetricks done. || true
|