Search for real-windows registry now actually accesses a file.
[wine] / tools / wineinstall
1 #!/bin/bash
2 # WINE Installation script
3 # Can do almost everything from compiling to configuring...
4 #
5 # Copyright 1999 Ove Kåven
6 #
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
11 #
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 # Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 #
21 # History:
22 # Mar 31 1999 - Ove Kåven
23 #  First version
24 # Dec 9 1999 - Ove Kåven
25 #  require Xpm
26 # Feb 25 2000 - Ove Kåven
27 #  auto-add /usr/local/lib to /etc/ld.so.conf
28 # Mar 2 2000 - Ove Kåven
29 #  source rather than grep config.cache
30 #  use sourced config.cache to start ldconfig
31 #  reconfigure if config.cache doesn't exist
32 # Mar 30 2000 - Ove Kåven
33 #  autoconfigure no-windows installs
34 #  do not install registry on real-windows installs
35 #  some support for binary package installs
36 #  set and tell user about LD_LIBRARY_PATH if necessary
37 #  set EXTRA_LD_LIBRARY_PATH in wine.conf
38 # Apr 9 2000 - Ove Kåven
39 #  make root's registry global (system-default)
40 # May 9 2000 - Ove Kåven
41 #  use ttydrv when running regapi, so we don't have to run from X
42 #  change debugger path in registry
43 # Oct 29 2000 - Ove Kåven
44 #  added --enable-opengl to default confargs
45 #  added conf_question, conf_yesno_answer, and conf_string_answer functions
46 #  added DEFCAT variable
47 # (later that day...)
48 #  added conf_reset_question function
49 #  added file existence checks to the registry copying
50 #  fixed problem with no-windows directory creation
51 #  some text reformatting from Eric Maryniak
52 # Jan 5 2000 - Chris Morgan
53 #  use default config file in /documentation/samples/config
54 #  replace .winerc with ~/.wine/config in printed text
55 #  added user question to convert .winerc file(if exists) or use the default
56 #    config file
57 #  add conf_question to allow root to install a local config file and
58 #    registry
59 # Jan 12 2000 - Chris Morgan
60 #  distinguish between creating local and global config files
61 #  display a message about the status of global config files
62 #  misc cleanups and reordering of questions
63 #  added check to see if wine is installed when we are running as a normal
64 #    user and print a message if wine cannot be found
65 # Feb 16 2002 - Adam D. Moss
66 #  Use config.status instead of config.cache to check whether we're
67 #    configured/compiled and to recreate the configuration
68 # Feb 20 2002 - Adam D. Moss
69 #  Partially revert previous changes, force configure to write an
70 #    old-style config.cache
71 # Mar 27 2002 - Chris Morgan
72 #  prevent the user from running wineinstall as root
73 #  add script commands so we su root for 'make install' and other commands
74 #    that require root access
75 #  add text to tell the user we need to run stuff as root so they don't 
76 #    think we are trying to pull something funny
77 # Apr 14 2002 - Dustin Navea
78 #  Fix sed command when finding real-windows registry so it actually 
79 #   accesses a file (~/.wine/config) instead of null ($CONF?!)
80 #  Added search for clean-install (not upgrade) Win2k registry
81 #  (next day, after some sleep)
82 #  Fix sed string when finding real-windows registry to actually find 
83 #   windows partition name in [Drive C] section
84 #  it should now almost always find the windows partition and real-windows 
85 #  registry (if not, let me know)
86
87 #--- defaults (change these if you are a packager)
88 CONFARGS="--enable-opengl"    # configure args, e.g. --prefix=/usr --sysconfdir=/etc
89 prefix=/usr/local             # installation prefix
90 sysconfdir=$prefix/etc        # where wine.conf and global registry is supposed to be
91 bindir=$prefix/bin            # where winelib apps will be (or is) installed
92 libdir=$prefix/lib            # where libwine.so will be (or is) installed
93 exdir=documentation/samples   # where the example system.ini resides
94 GCONF=$sysconfdir/wine.conf   # default path of the wine.conf global config file
95 LCONF=~/.wine/config          # default path of the local config file
96 BINDIST=no                    # whether called from a binary package config script
97 DOGLOBALCONF=auto             # whether to autogenerate wine.conf
98 DOLOCALCONF=auto              # whether to autogenerate localconf
99 DOWCHK=auto                   # whether to autoconfigure existing-windows installation
100 DOWINE=auto                   # whether to autoconfigure no-windows installation
101 DOREG=auto                    # whether to install default registry
102 SYSREG=yes                    # whether to make root's registry global (system-default)
103 CONVCONF=no                   # whether we are converting an existing .winerc or not
104
105 # "make install" still installs the dlls into $libdir, but this may change in the future
106 # (DLLPATH should point to them if/when they are not in standard ld.so paths)
107 DLLPATH=$libdir/wine          # default path of the dll .so files (except libwine.so)
108
109 # having the Wine debugger launched automatically will be a plus for us
110 DEBUGGER=$bindir/winedbg      # the (installed) path of winedbg
111 HDEBUGGER=debugger/winedbg    # the (non-installed) path of winedbg
112
113 # this is only for existing-windows installs
114 WINECONF=tools/wineconf       # the path of wineconf perl script
115
116 # this is only for no-windows installs
117 WINEINI=$exdir/config         # the path of default wine config file (also used by wineconf)
118 WININI=/dev/null              # the path of default win.ini
119 SYSTEMINI=$exdir/system.ini   # the path of default system.ini
120 REGAPI=programs/regapi/regapi # the path of regapi winelib application
121 DEFREG=winedefault.reg        # the path of the registry file to be fed to regapi
122 # CROOT=/var/wine             # the path of the fake Drive C (asks user if not set)
123 DEFCAT=cat                    # program to cat $DEFREG with (some packages need zcat)
124 #--- end of defaults
125
126 # temporary files used by the installer
127 TMPCONF=/tmp/wineinstall.conf
128 TMPREG=/tmp/wineinstall.reg
129
130 # functions
131
132 function std_sleep {
133   sleep 1
134 }
135
136 function conf_question {
137   # parameters: $1 = importance, $2 = question-id, $3+ = message lines
138   # the first two parameters can be used by e.g. debconf in debian packages
139   # but here we just print the message
140   shift 2
141   echo
142   local LINE="$1"
143   while shift
144   do {
145     echo "$LINE"
146     LINE="$1"
147   }
148   done
149 }
150
151 function conf_reset_question {
152   # parameters: $1 = question-id
153   # this is used to flush any cached answers and "already-displayed" flags
154   shift # dummy command
155 }
156
157 function conf_yesno_answer {
158   unset ANSWER
159   while [ "$ANSWER" != 'yes' ] && [ "$ANSWER" != 'no' ]
160   do {
161     echo -n "$1"
162     read ANSWER
163   }
164   done
165 }
166
167 function conf_string_answer {
168   echo -n "$1"
169   read ANSWER
170 }
171
172 function create_windows_directories {
173   for tdir in "$CROOT/windows" "$CROOT/windows/system" \
174               "$CROOT/windows/Start Menu" "$CROOT/windows/Start Menu/Programs" \
175               "$CROOT/Common Files" "$CROOT/Program Files" \
176               "$CROOT/windows/Profiles" "$CROOT/windows/Profiles/Administrator"
177   do [ -d "$tdir" ] || mkdir "$tdir"
178   done
179   [ -f "$CROOT/windows/win.ini" ]    || cp "$WININI"    "$CROOT/windows/win.ini"
180   [ -f "$CROOT/windows/system.ini" ] || cp "$SYSTEMINI" "$CROOT/windows/system.ini"
181 }
182
183 # startup...
184
185 echo "WINE Installer v0.72"
186 echo
187
188 if [ "$BINDIST" = 'no' ]
189 then {
190
191 if ! [ -f configure ]
192 then {
193   echo "You're running this from the wrong directory."
194   echo "Change to the Wine source's main directory and try again."
195   exit 1
196 }
197 fi
198
199 if [ `whoami` == 'root' ]
200 then {
201   echo "You are running wineinstall as root, this is not advisable. Please rerun as a user."
202   echo "Aborting."
203   exit 1
204 }
205 fi
206
207 # check whether RPM installed, and if it is, remove any old wine rpm.
208 hash rpm &>/dev/null
209 RET=$?
210 if [ $RET -eq 0 ]; then
211   if [ -n "`rpm -qi wine 2>/dev/null|grep "^Name"`" ]; then
212     echo "Warning: Old Wine RPM install detected. Do you want to remove it first?"
213     conf_yesno_answer "(yes/no) "
214     if [ "$ANSWER" = 'yes' ]; then
215       echo "We need to remove the rpm as root, please enter your root password"
216       echo
217       echo Starting wine rpm removal...
218       su -c "rpm -e wine; RET=$?"
219       if [ $RET -eq 0 ]; then
220         echo Done.
221       else
222         echo "FAILED. Probably you aren't installing as root."
223         echo "Expect problems (library conflicts with existing install etc.)."
224       fi
225     else
226       echo "Sorry, I won't install Wine when an rpm version is still installed."
227       echo "(Wine support suffered from way too many conflicts between RPM"
228       echo "and source installs)"
229       echo "Have a nice day !"
230       exit 1
231     fi 
232   fi
233 fi
234
235 # check whether wine binary still available
236 if [ -n "`which wine 2>/dev/null|grep '/wine'`" ]; then
237   echo "Warning !! wine binary (still) found, which may indicate"
238   echo "a (conflicting) previous installation."
239   echo "You might want to abort and uninstall Wine first."
240   std_sleep
241 fi
242
243 # run the configure script, if necessary
244
245 if [ -f config.cache ] && [ -f Makefile ] && [ Makefile -nt configure ]
246 then {
247   echo
248   echo "I see that WINE has already been configured, so I'll skip that."
249   std_sleep
250   # load configure results
251   . ./config.cache
252 }
253 else {
254   echo "Running configure..."
255   echo
256   if ! ./configure -C $CONFARGS
257   then {
258     echo
259     echo "Configure failed, aborting install."
260     rm -f config.cache
261     exit 1
262   }
263   fi
264   # load configure results
265   . ./config.cache
266   # make sure X was found
267   eval "$ac_cv_have_x"
268   if [ "$have_x" != "yes" ]
269   then {
270     echo "Install the X development headers and try again."
271     rm -f config.cache
272     exit 1
273   }
274   fi
275 }
276 fi
277
278 # now do the compilation and install, we need to always do this because we 
279 # don't want the 'make install' command we might run to run 'make' as root
280 if [ `whoami` != 'root' ]
281 then {
282   # ask the user if they want to build and install wine
283   echo
284   echo "We need to install wine as root user, do you want us to build wine,"
285   echo "'su root' and install Wine?  Enter 'no' to continue without installing"
286   conf_yesno_answer "(yes/no) "
287
288   if [ "$ANSWER" = "yes" ]
289   then {
290     # start out with the basic command
291     sucommand="make install"
292
293     # if the user doesn't have $libdir in their ld.so.conf add this
294     # to our sucommand string
295     if [ -f /etc/ld.so.conf ] && ! grep -qs "$libdir" /etc/ld.so.conf
296     then {
297       echo
298       echo "$libdir doesn't exist in your /etc/ld.so.conf, it will be added"
299       echo "when we perform the install..."
300       sucommand="$sucommand;echo $libdir>>/etc/ld.so.conf;$ac_cv_path_LDCONFIG"
301     }
302     fi
303
304     echo
305
306     echo "Compiling WINE. Grab a lunch or two, rent a video, or whatever,"
307     echo "in the meantime..."
308     echo
309     std_sleep
310
311     # try to just make wine, if this fails 'make depend' and try to remake
312     if ! { make; }
313     then {
314       if ! { make depend && make; }
315       then {
316         echo
317         echo "Compilation failed, aborting install."
318         exit 1
319       }
320       fi
321     }
322     fi
323     echo
324
325     echo "Performing 'make install' as root to install binaries, enter root password"
326
327     std_sleep
328
329     if ! su root -c "$sucommand"
330     then {
331       echo
332       echo "Either you entered an incorrect password or we failed to run"
333       echo "'$sucommand' correctly."
334       echo "If you didn't enter an incorrect password then please report this"
335       echo "error to wine-devel@winehq.com."
336       echo
337       echo "Installation failed, aborting."
338       exit 1
339     }
340     fi
341
342     echo
343
344     # see if wine is installed on the users system, if not prompt them
345     # and then exit
346     if [ ! `which wine` ]
347     then
348       echo "Could not find wine on your system.  Run wineinstall as root to install wine"
349       echo "before re-running wineinstall as a user."
350       echo
351       echo "Exiting wineinstall"
352       exit 1;
353     fi
354   }
355   else {
356     # user didn't want to install wine so tell them about running from the
357     # current directory and set some stuff up for them
358
359     # setup to run from current directory
360     DLLPATH="$PWD/dlls"
361     if [ -z "$LD_LIBRARY_PATH" ]
362     then LD_LIBRARY_PATH="$PWD:$DLLPATH"
363     else LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD:$DLLPATH"
364     fi
365     export LD_LIBRARY_PATH
366     DEBUGGER="$PWD/$HDEBUGGER"
367     echo
368     echo "NOTE! To run Wine without installing, you must set the environment variable"
369     echo "LD_LIBRARY_PATH to $PWD:$DLLPATH"
370     echo "in your logon scripts."
371     echo
372   }
373   fi
374 }
375 else {
376   echo "You are running wineinstall as root, this is not advisable. Please rerun as a user."
377   echo "Aborting."
378   exit 1
379 }
380 fi # [ `whoami` != 'root' ]
381
382 }
383 fi # BINDIST
384
385 # now check whether we should generate wine.conf
386 if [ -z "$DOGLOBALCONF" ]
387 then
388   DOGLOBALCONF=auto
389 fi
390
391 if [ "$DOGLOBALCONF" = 'auto' ]
392 then {
393   # see if we already have a system wine.conf
394   if [ ! -f $GCONF ] && [ `whoami` = 'root' ]
395   then
396     DOGLOBALCONF=no
397     echo "Creation of a global config file is not supported in wineinstall at this"
398     echo "time.  When the configuration architecture is cleaned up this functionality"
399     echo "will be restored to wineinstall."
400     echo
401   fi
402 }
403 fi
404
405 if [ "$DOLOCALCONF" = 'auto' ]
406 then {
407   # see if the user is root, if so, explicitly ask them if they want a
408   # local config file
409   if [ `whoami` = 'root' ]
410   then
411     echo "You are running as root.  Do you want a local config file,"
412     echo "file, ~/.wine/config, created?"
413     conf_yesno_answer "(yes/no) "
414     DOLOCALCONF="$ANSWER"
415   else
416     # if the user has an existing config file ask them if they want us to
417     # overwrite it, otherwise just ask them if they want to create one
418     if [ -f "$LCONF" ]
419     then
420       echo "Found existing $LCONF, do you want to overwrite this"
421       echo "existing Wine configuration file?"
422       conf_yesno_answer "(yes/no) "
423       DOLOCALCONF="$ANSWER"
424       echo
425     else {
426       echo "Create local config file ~/.wine/config?"
427       conf_yesno_answer "(yes/no) "
428       DOLOCALCONF="$ANSWER"
429       echo
430       if [ "$ANSWER" = 'no' ]
431       then
432         conf_question high need_root \
433           "Aborting install. Try again as root to generate a system wine.conf."
434         exit 1
435       fi
436     }
437     fi
438   fi
439 }
440 fi
441
442 # generate $TMPCONF from existing windows install, if any
443 if [ "$DOLOCALCONF" = 'yes' ]
444 then {
445   if [ "$DOWCHK" = 'yes' ] || [ "$DOWCHK" = 'auto' ]
446   then {
447     echo -n "Searching for an existing Windows installation..."
448     if ! $WINECONF -inifile "$WINEINI" > $TMPCONF 2>/dev/null
449     then {
450       rm -f $TMPCONF $TMPREG > /dev/null
451
452       echo " not found. (no matching /etc/fstab mount entry found)"
453       conf_question low do_without_windows \
454        "Windows was not found on your system, so I assume you want" \
455        "a Wine-only installation. Am I correct?"
456       conf_yesno_answer "(yes/no) "
457       if [ "$ANSWER" = 'no' ]
458       then {
459         conf_question high windows_not_found \
460          "Aborting install. Make sure your Windows partition is mounted and try again," \
461          "or create $LCONF manually by copying from $WINEINI and adapting the drive paths."
462         exit 1
463       }
464       fi
465       DOWINE=yes
466     }
467     else {
468       echo " found."
469
470       conf_reset_question windows_found
471       conf_question low windows_found \
472        "Created $LCONF using your existing Windows installation." \
473        "You probably want to review the file, though."
474       DOWINE=no
475     }
476     fi
477   }
478   elif [ "$DOWINE" = 'auto' ]
479   then DOWINE=yes
480   fi
481 }
482 elif [ "$DOWINE" = 'auto' ]
483 then 
484   DOWINE=no
485 fi
486
487 # setup a no-windows installation, if necessary
488 if [ "$DOWINE" = 'yes' ]
489 then {
490   # set an appropriate DCROOT
491   if [ `whoami` != 'root' ]
492   then DCROOT=~/c
493   else DCROOT=/c
494   fi
495
496   if [ -f ~/.winerc ]
497   then {
498     conf_question medium convert_config \
499      "I found the old version Wine config file, .winerc, in your " \
500      "home directory.  I can convert this to the new format or use the" \
501      "new default Wine config file. Convert?"
502     conf_yesno_answer "(yes/no) "
503     if [ "$ANSWER" = 'yes' ]
504     then {
505       WINEINI=~/.winerc
506       CONVCONF=yes
507     }
508     fi
509   }
510   else {
511
512     conf_question low drivec_path \
513      "Configuring Wine without Windows." \
514      "Some fake Windows directories must be created, to hold any .ini files, DLLs," \
515      "start menu entries, and other things your applications may need to install." \
516      "Where would you like your fake C drive to be placed?"
517     while [ -z "$CROOT" ]
518     do {
519       conf_string_answer "(default is $DCROOT) "
520       [ -z "$ANSWER" ] && ANSWER="$DCROOT"
521       if ! [ -d "$ANSWER" ]
522       then {
523         if mkdir -p "$ANSWER"
524         then CROOT="$ANSWER"
525         else
526           echo "Directory $ANSWER can't be created !"
527           conf_reset_question drivec_path
528         fi
529       }
530       else CROOT="$ANSWER"
531       fi
532     }
533     done
534     echo "Configuring Wine for a no-windows install in $CROOT..."
535   
536     create_windows_directories
537   }
538   fi
539
540   # create $LCONF using the default config file $WINEINI  
541   if [ "$DOLOCALCONF" = 'yes' ] && [ "$CONVCONF" = 'no' ]
542   then {
543     sed "s|\"Path\" = \"/c\"\$|\"Path\" = \"${CROOT}\"|" $WINEINI > $TMPCONF
544     conf_reset_question default_config
545     conf_question low default_config \
546      "Created $LCONF using default Wine configuration." \
547      "You probably want to review the file, though."
548   }
549   fi
550
551   # now we really should install the registry
552   if [ "$DOREG" = 'auto' ]
553   then DOREG=yes
554   fi
555 }
556 fi
557 echo
558
559 #install the local config file $LCONF
560 if [ "$DOLOCALCONF" = 'yes' ]
561 then
562   if [ ! -w ~/.wine ]
563   then
564     mkdir ~/.wine
565   fi
566
567   if [ "$CONVCONF" = 'no' ]
568   then
569     cp $TMPCONF $LCONF > /dev/null
570   fi
571 else
572   DOREG=no
573 fi      
574
575 #install the global config file $GCONF
576 if [ "$DOGLOBALCONF" = 'yes' ]
577 then
578   if [ ! -f $sysconfdir ]
579   then
580     mkdir -p $sysconfdir
581   fi
582
583   cp $TMPCONF $GCONF > /dev/null
584 fi
585
586 # check whether we need to install default registry
587 # (not to be done if windows registry exists)
588 if [ "$DOREG" = 'auto' ]
589 then {
590   CROOT=`sed -n '/^\[Drive C\]$/,/^\[.*\]$/ s/^\"Path\" = \"\(.*\)\"/\1/p' $LCONF`
591   echo "Checking for real Windows registry..."
592   if [ -f "$CROOT/windows/system.dat" ]
593   then DOREG=no
594   elif [ -f "$CROOT/windows/system32/config/system" ]
595   then DOREG=no
596   elif [ -f "$CROOT/WINNT/system32/config/system" ]
597   then DOREG=no 
598   else DOREG=yes
599   fi
600   if [ "$DOREG" = 'yes' ]
601   then echo "Not found, default Wine registry will be installed."
602   else echo "Windows registry found, will not install default Wine registry."
603   fi
604   echo
605 }
606 fi
607
608 # install default registry entries
609 if [ "$DOREG" = 'yes' ]
610 then {
611   if [ "$BINDIST" = 'no' ]
612   then {
613     echo "Compiling regapi..."
614     (cd programs/regapi; make)
615     echo
616   }
617   fi
618   echo "Preparing to install default Wine registry entries..."
619
620   # edit config files so we don't have to run regapi under X
621   if [ "$CONVCONF" = 'yes' ]
622   then
623     mv $WINEINI $WINEINI.new
624     sed "s/GraphicsDriver=.*/GraphicsDriver=ttydrv/" $WINEINI.new > $WINEINI
625   else
626     mv $LCONF $LCONF.new
627     sed "s/\"GraphicsDriver\" = .*/\"GraphicsDriver\" = \"ttydrv\"/" $LCONF.new > $LCONF
628   fi
629
630   # create a temporary wineinstall.reg with fixed debugger path
631   $DEFCAT $DEFREG | sed "s|debugger/winedbg|${DEBUGGER}|" > $TMPREG
632
633   echo "Installing default Wine registry entries..."
634   echo
635   if ! $REGAPI setValue < $TMPREG > /dev/null
636   then {
637     rm -f $TMPREG
638     echo "Registry install failed."
639     conf_reset_question regapi_error
640     conf_question high regapi_error
641     exit 1
642   }
643   else {
644     # if we are converting from a .winerc file, running regapi once
645     # will ONLY convert .winerc -> ~/.wine/config, it will not import the
646     # registry data.  so if we are converting we need to run regapi twice
647     if [ "$CONVCONF" = 'yes' ]
648     then
649       if ! $REGAPI setValue < $TMPREG > /dev/null
650       then
651         rm -f $TMPREG
652         echo "Registry install failed."
653         conf_reset_question regapi_error
654         conf_question high regapi_error
655         exit 1
656       else
657         echo
658         echo "Registry entries successfully installed."
659       fi
660     else
661       echo
662       echo "Registry entries successfully installed."
663     fi
664   }
665   fi
666   rm -f $TMPREG
667   if [ "$SYSREG" = 'auto' ]
668   then SYSREG=yes
669   fi
670
671   # if we converted we need to change the graphics driver back and
672   # restore the original .winerc file
673   if [ "$CONVCONF" = 'yes' ]
674   then
675      mv $WINEINI.new $WINEINI
676   fi
677
678   sed "s/\"GraphicsDriver\" = .*/\"GraphicsDriver\" = \"x11drv\"/" $LCONF > $LCONF.new
679   mv $LCONF.new $LCONF
680 }
681 fi
682
683 # make root's registry global, if desired
684 if [ `whoami` = 'root' ] && [ "$DOREG" = 'yes' ] && [ "$SYSREG" = 'yes' ]
685 then {
686   [ -d ~/.wine ] || mkdir ~/.wine
687   if ! [ -f $sysconfdir/wine.userreg ]
688   then {
689     echo "Linking root's user registry hive to the global registry..."
690     [ -f ~/.wine/wine.userreg ] && cp ~/.wine/wine.userreg $sysconfdir/wine.userreg
691     ln -sf $sysconfdir/wine.userreg ~/.wine/wine.userreg
692   }
693   fi
694   if ! [ -f $sysconfdir/wine.systemreg ]
695   then {
696     echo "Linking root's system registry hive to the global registry..."
697     [ -f ~/.wine/system.reg ] && cp ~/.wine/system.reg $sysconfdir/wine.systemreg
698     ln -sf $sysconfdir/wine.systemreg ~/.wine/system.reg
699   }
700   fi
701 }
702 fi
703
704 # cleanup any temporary files that may remain
705 if [ -f $TMPCONF ]
706 then rm -f $TMPCONF
707 fi
708 if [ -f $TMPREG ]
709 then rm -f $TMPREG
710 fi
711
712
713 # it's a wrap
714 echo
715 echo "Installation complete for now. Good luck (this is still alpha software)."
716 echo "If you have problems with WINE, please read the documentation first,"
717 echo "as many kinds of potential problems are explained there."
718
719 exit 0