Wine and WinNT wine.conf dumb question

Mark Daglish mark.daglish at bris.ac.uk
Fri Apr 6 04:40:14 CDT 2001


Daniel Foesch wrote:

>>Hi,
>>
>>I've just installed Wine 20010305 on a box with SuSE 7.1 (kernel
>>2.4.2) and
>>Win NT4.0.  I previously ran wine with no problems under SuSE 7.0. 
>>Now when I try to start wine I get the error:
>>
>>Invalid path 'C:\winnt' for windows directory: does not exist.
>>
>>This is using the same wine.conf file as before.  Here are the
>>relevant lines from the wine.conf file:

<snip>

>>I can cd to /windows/c/winnt and ls the contents with no problem. 
>>Does
>>anyone have any suggestions.  I have tried running wineinstall and
>>wineconf with no luck, but Winesetuptk finds my windows directories
>>and agrees with what I have above.
>>

> 
> Wow... this seems like a wierd problem... frankly, I don't think it's
> a dumb question, because this is perplexing... by all of your configs,
> everything should be working... in truth, this is something that I
> don't think I could fix unless I was at the control stick and able to
> poke at things until I see what's
> up...  but, in an effort to help you in a situation where I can't:
> 
>   Could you post a direct tail of the output from wine?
>   post a bit more from your wine.conf
>   post your full fstab, and the output from mount, just so we can look
>   at it.
> (hopefully your fstab isn't 800 lines...)
> 
> Daniel "Krach" Foesch
> ---------------------
Daniel,

Many thanks for the offer, I hope you can help as I need to be able to 
run this mricro.exe program.

Here are the details:

I compiled wine from the sources on my machine - version 20010305

<attempt to run wine>

markd at pmpsycho38:~ > wine /usr/local/bin/mricro/mricro.exe
Invalid path 'C:\winnt' for windows directory: does not exist
Perhaps you have not properly edited or created your Wine configuration 
file.
This is '/home/markd/.wine/config'
markd at pmpsycho38:~ > cd /windows/c/winnt
markd at pmpsycho38:/windows/c/winnt > ls
Active Setup Log.BAK      IEHELP.EXE          TASKMAN.EXE              
Active Setup Log.txt      INF                 Tasks                    
<snipped dir listing>
markd at pmpsycho38:/windows/c/winnt >

<fstab>
/dev/sda2       /       ext2    defaults 1 1
/dev/hda3       /boot   ext2    defaults 1 2
/dev/cdrom      /cdrom  auto    ro,noauto,user,exec 0 0
/dev/hda10      /data4  reiserfs        defaults 1 2
/dev/hda7       /data1  reiserfs        defaults 1 2
/dev/hda8       /data2  reiserfs        defaults 1 2
/dev/hda9       /data3  reiserfs        defaults 1 2
/dev/hda11      /data5  reiserfs        defaults 1 2
devpts  /dev/pts        devpts  defaults 0 0
/dev/fd0        /floppy auto    noauto,user 0 0Paths must be given in 
/dir/dir/file.reg format.
; Wine will not understand dos file names here...

;These are all booleans.  Y/y/T/t/1 are true, N/n/F/f/0 are false.
;Defaults are read all, write to Home
; Global registries (stored in /etc)
"LoadGlobalRegistryFiles" = "Y"
; Home registries (stored in ~user/.wine/)
"LoadHomeRegistryFiles" = "Y"
; Load Windows registries from the Windows directory;
;; Each section has the following format:
;; [Drive X]
;; Path=xxx       (Unix path for drive root)
;; Type=xxx       (supported types are 'floppy', 'hd', 'cdrom' and 
'network')
;; Label=xxx      (drive label, at most 11 characters)
;; Serial=xxx     (serial number, 8 characters hexadecimal number)
;; Filesystem=xxx (supported types are 'msdos'/'dos'/'fat', 
'win95'/'vfat', 'unix')
;;   This is the FS Wine is supposed to emulate on a certain
;;   directory structure.
;;   Recommended:
;;   - "win95" for ext2fs, VFAT and FAT32
;;   - "msdos" for FAT16 (ugly, upgrading to VFAT driver strongly 
recommended)
;;   DON'T use "unix" unless you intend to port programs using Winelib !
;; Device=/dev/xx (only if you want to allow raw device access)
"LoadWindowsRegistryFiles" = "Y"
; TRY to write all changes to home registries
"WritetoHomeRegistryFiles" = "Y"
; Registry periodic save timeout in seconds
; PeriodicSave=600
; Save only modified keys
/dev/sda5       /home   ext2    defaults 1 2
proc    /proc   proc    defaults 0 0
/dev/hda1       /windows/c      ntfs    rw,user,umask=0000 0 0
/dev/hda5       /windows/d      ntfs    rw,user,umask=0000 0 0
/dev/sda1       swap    swap    defaults 0 2

<~/.wine/config>
WINE REGISTRY Version 2
;; All keys relative to \\Machine\\Software\\Wine\\Wine\\Config

;;
;; MS-DOS drives configuration comments snipped
;;

[Drive A]
"Type" = "floppy"
"Path" = "/floppy"
"Label" = "/floppy"
"Device" = "/dev/fd0"

[Drive C]
"Type" = "hd"
"Path" = "/windows/c"
"Label" = "/windows/c"
"FS" = "win95"

[Drive D]
"Type" = "hd"
"Path" = "/windows/d"
"Label" = "/windows/d"
"FS" = "win95"

[Drive E]
"Path" = "/usr/local/bin/mricro"
"Type" = "hd"
"Device" = ""
"Filesystem" = "win95"

[Drive M]
"Type" = "cdrom"
"Path" = "/cdrom"
"Label" = "/cdrom"
"FS" = "win95"
"Device" = "/dev/cdrom"

[Drive X]
"Type" = "hd"
"Path" = "/tmp"
"Label" = "Tmp Drive"
"FS" = "win95"

[Drive Y]
"Type" = "network"
"Path" = "${HOME}"
"Label" = "Home"
"FS" = "win95"

[Drive Z]
"Type" = "network"
"Path" = "/"
"Label" = "Root"
"FS" = "win95"

[wine]hh.exe
"Windows" = "C:\\winnt"
"System" = "C:\\winnt\\system"
"Path" = "C:\\winnt;C:\\winnt\\system;E:\\;X:\\;Y:\\"
; location of user.dat (resp. ntuser.dat) file
"Profile" = "C:\\winnt\\Profiles\\Default User"
"Temp" = "X:\\"
"GraphicsDriver" = "x11drv"
; Wine doesn't pass directory symlinks to Windows programs by default.
; Enabling this may crash some programs that do recursive lookups of a 
whole
; subdir tree in case of a symlink pointing back to itself.
;ShowDirSymlinks=1
"ShellLinker" = "wineshelllink"

[DllDefaults]
"DefaultLoadOrder" = "native, builtin, so"

[DllOverrides]
"commdlg" = "builtin, native"
"comdlg32" = "builtin, native"
"ver" = "builtin, native"
"version" = "builtin, native"
"shell" = "builtin, native"
"shell32" = "builtin, native"
"lzexpand" = "builtin, native"
"lz32" = "builtin, native"
"comctl32" = "builtin, native"
"commctrl" = "builtin, native"
"wsock32" = "builtin"
"winsock" = "builtin"
"advapi32" = "builtin, native"
"crtdll" = "builtin, native"
"mpr" = "builtin, native"
"winspool.drv" = "builtin, native"
"ddraw" = "builtin, native"
"dinput" = "builtin, native"
"dsound" = "builtin, native"
"mmsystem" = "builtin"
"winmm" = "builtin"
"msvideo" = "builtin, native"
"msvfw32" = "builtin, native"
"mcicda.drv" = "builtin, native"
"mciseq.drv" = "builtin, native"
"mciwave.drv" = "builtin, native"
"mciavi.drv" = "native, builtin"
"mcianim.drv" = "native, builtin"
"msacm.drv" = "builtin, native"
"midimap.drv" = "builtin, native"
"wnaspi32" = "builtin"
"icmp" = "builtin"
"imm" = "builtin, native"
"imm32" = "builtin, native"

[x11drv]
; Number of colors to allocate from the system palette
"AllocSystemColors" = "100"
; Use a private color map
"PrivateColorMap" = "N"
; Favor correctness over speed in some graphics operations
"PerfectGraphics" = "N"
; Color depth to use on multi-depth screens
;;ScreenDepth = 16
; Name of X11 display to use
;;Display = :0.0
; Allow the window manager to manage created windows
"Managed" = "Y"
; Run Wine windows in desktop. Contains "N" or something like "800x600".
"Desktop" = "N"
; Use XFree86 DGA extension if present
"UseDGA" = "Y"
; Use XShm extension if present
"UseXShm" = "Y"
; Enable DirectX mouse grab
"DXGrab" = "N"
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
"DesktopDoubleBuffered" = "N"
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP == 0)
"TextCP" = "0"
; Use this if you have more than one port for video on your setup
; (Wine uses for now the first 'input image' it finds).
;; XVideoPort = 43

[fonts]
;Read documentation/fonts before adding aliases
"Resolution" = "96"
"Default" = "-adobe-times-"

[serialports]
"Com1" = "/dev/ttyS0"
"Com2" = "/dev/ttyS1"
"Com3" = "/dev/modem,38400"
"Com4" = "/dev/modem"

[parallelports]
"Lpt1" = "/dev/lp0"

[spooler]
"LPT1:" = "|lpr"
"LPT2:" = "|gs -sDEVICE=bj200 -sOutputFile=/tmp/fred -q -"
"LPT3:" = "/dev/lp3"

[ports]
;read=0x779,0x379,0x280-0x2a0
;write=0x779,0x379,0x280-0x2a0

[spy]
"Exclude" = "WM_SIZE;WM_TIMER;"

[registry]
<snipped comments>
"SaveOnlyUpdatedKeys" = "Y"
 
[Tweak.Layout]
;; WineLook=xxx  (supported styles are 'Win31'(default), 'Win95', 
'Win98')
"WineLook" = "Win95"
 
[Console]
;Drivers=tty
;XtermProg=nxterm
;InitialRows=25
;InitialColumns=80
;TerminalType=nxterm
 
[Clipboard]
"ClearAllSelections" = "0"
"PersistentSelection" = "1"





More information about the wine-users mailing list