Make a default config in wineprefixcreate

Mike Hearn mike at navi.cx
Thu Feb 10 09:08:59 CST 2005


The number of people confused by the sudden disappearance of the config
file with no working alternative is very high. Maybe this patch will
help them as a temporary measure.

Also, it can be quite annoying to have to make a new config file every
time you need to change versions or desktop mode.

ChangeLog:
Make a default config in wineprefixcreate
-------------- next part --------------
--- tools/wineprefixcreate.in  (revision 132)
+++ tools/wineprefixcreate.in  (local)
@@ -167,6 +167,42 @@ cp "$datadir/wine.inf" "$CROOT/windows/i
 export WINEPREFIX
 ${WINELOADER:-wine} rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 128 wine.inf
 
+# Create a small config file, this will suffice until we remove it entirely
+if [ ! -e "$WINEPREFIX/config" ];
+then
+    cat <<EOF >"$WINEPREFIX/config"
+WINE REGISTRY Version 2
+
+;
+; Lines that start with a semi-colon are ignored
+;
+
+[Version]
+"Windows"="win98"
+; Other useful versions are "winxp", "win2k"
+; If none are specified, Wine tries to guess
+
+[x11drv]
+; Uncomment the line below to give Windows apps a virtual screen
+;"Desktop"="800x600"
+
+[DllOverrides]
+
+; Native MSI and DCOM can be used if Wines own versions aren't
+; complete enough for your programs. They must be installed from
+; microsoft.com
+
+; Uncomment the next two lines if you want to use native MSI
+;"msi"="native, builtin"
+;"msiexec.exe"="native, builtin"
+
+; Uncomment the next three lines if you want to use native DCOM
+;"ole32"="native, builtin"
+;"oleaut32"="native, builtin"
+;"rpcrt4"="native, builtin"
+EOF
+fi
+
 # Wait for the wineserver to finish
 
 if [ $do_update = 0 ]


More information about the wine-patches mailing list