Commit d0ed9fc6 authored by Alexandre Julliard's avatar Alexandre Julliard

Use the new .inf script instead of winedefault.reg.

Removed some obsolete code.
parent 299d5594
...@@ -37,21 +37,14 @@ DOREG=auto # whether to install default registry ...@@ -37,21 +37,14 @@ DOREG=auto # whether to install default registry
DOAPP=auto # whether to install applications, distributed with Wine DOAPP=auto # whether to install applications, distributed with Wine
SYSREG=yes # whether to make root's registry global (system-default) SYSREG=yes # whether to make root's registry global (system-default)
# "make install" still installs the dlls into $libdir, but this may change in the future
# (DLLPATH should point to them if/when they are not in standard ld.so paths)
DLLPATH=$libdir/wine # default path of the dll .so files (except libwine.so)
# this is only for existing-windows installs # this is only for existing-windows installs
WINECONF=tools/wineconf # path to the wineconf perl script WINECONF=tools/wineconf # path to the wineconf perl script
# this is only for no-windows installs # this is only for no-windows installs
WINEINI=$exdir/config # path to the default wine config file (also used by wineconf) WINEINI=$exdir/config # path to the default wine config file (also used by wineconf)
WININI=/dev/null # path to the default win.ini RUNDLL32=programs/rundll32/rundll32 # path to the rundll32 winelib application
SYSTEMINI=$exdir/system.ini # path to the default system.ini INFSCRIPT=tools/wine.inf # path to the default .inf script
REGEDIT=programs/regedit/regedit # path to the regedit winelib application
DEFREG=winedefault.reg # path of the registry file to be fed to regedit
# CROOT=/var/wine # path of the fake Drive C (asks user if not set) # CROOT=/var/wine # path of the fake Drive C (asks user if not set)
DEFCAT=cat # program to cat $DEFREG with (some packages need zcat)
#--- end of defaults #--- end of defaults
# temporary files used by the installer # temporary files used by the installer
...@@ -108,8 +101,7 @@ function create_windows_directories { ...@@ -108,8 +101,7 @@ function create_windows_directories {
"$CROOT/windows/Fonts" "$CROOT/windows/Start Menu/Programs/Startup" "$CROOT/windows/Fonts" "$CROOT/windows/Start Menu/Programs/Startup"
do [ -d "$tdir" ] || mkdir "$tdir" do [ -d "$tdir" ] || mkdir "$tdir"
done done
[ -f "$CROOT/windows/win.ini" ] || cp "$WININI" "$CROOT/windows/win.ini" cp $INFSCRIPT "$CROOT/windows/system/wine.inf"
[ -f "$CROOT/windows/system.ini" ] || cp "$SYSTEMINI" "$CROOT/windows/system.ini"
} }
#creates symbolic link in windows directory to installed winelib application #creates symbolic link in windows directory to installed winelib application
...@@ -354,22 +346,6 @@ then { ...@@ -354,22 +346,6 @@ then {
WINEINSTALLED=yes WINEINSTALLED=yes
} }
else { else {
# user didn't want to install wine so tell them about running from the
# current directory and set some stuff up for them
# setup to run from current directory
DLLPATH="$PWD/dlls"
if [ -z "$LD_LIBRARY_PATH" ]
then LD_LIBRARY_PATH="$PWD:$DLLPATH"
else LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD:$DLLPATH"
fi
export LD_LIBRARY_PATH
echo
echo "NOTE! To run Wine without installing, you must set the environment variable"
echo "LD_LIBRARY_PATH to $PWD:$DLLPATH"
echo "in your logon scripts."
echo
WINEINSTALLED=no WINEINSTALLED=no
} }
fi # [ "$ROOTINSTALL" = "yes" ] fi # [ "$ROOTINSTALL" = "yes" ]
...@@ -615,8 +591,8 @@ if [ "$DOREG" = 'yes' ] ...@@ -615,8 +591,8 @@ if [ "$DOREG" = 'yes' ]
then { then {
if [ "$BINDIST" = 'no' ] if [ "$BINDIST" = 'no' ]
then { then {
echo "Compiling regedit..." echo "Compiling rundll32..."
(cd programs/regedit; make) (cd programs/rundll32; make)
echo echo
} }
fi fi
...@@ -628,7 +604,7 @@ then { ...@@ -628,7 +604,7 @@ then {
echo "Installing default Wine registry entries..." echo "Installing default Wine registry entries..."
echo echo
if ! $REGEDIT $DEFREG > /dev/null if ! $RUNDLL32 setupapi.dll,InstallHinfSection DefaultInstall 128 $INFSCRIPT > /dev/null
then { then {
echo "Registry install failed." echo "Registry install failed."
mv $LCONF.orig $LCONF mv $LCONF.orig $LCONF
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment