Wladimir Mutel'
2007-May-21 13:03 UTC
[Wine] running .exe with space in path and getting a crash
Hi, I use wine 0.9.37 under Kubuntu 7.04. I insert USB drive, it gets mounted as /media/something, then I run an executable (installer) from the command line with wine : wine /media/something/some\ folder\setup.exe And I immediately get the messagebox : "Access violation at address 004097a6" "write of address 00400000" The only workaround was to copy the executable into my home directory, and run it from there : wine ~/setup.exe What information should I apply to report this as a bug ? I remember real Windows API uses quite non-trivial logic when executing programs with space in the executable path, like probe the longest possible filename with spaces or without, etc. May be Wine authors should reimplement this specification more closely, or document this feature of their implementation.
L. Rahyen
2007-May-21 14:22 UTC
[Wine] running .exe with space in path and getting a crash
On Monday May 21 2007 12:03, Wladimir Mutel' wrote:> Hi, > > I use wine 0.9.37 under Kubuntu 7.04. > I insert USB drive, it gets mounted as /media/something, > then I run an executable (installer) from the command line > with wine : > wine /media/something/some\ folder\setup.exe > And I immediately get the messagebox : > "Access violation at address 004097a6" > "write of address 00400000" > > The only workaround was to copy the executable into my home > directory, and run it from there : > wine ~/setup.exe > > What information should I apply to report this as a bug ?Are you sure this is Wine bug (that is, did you try to launch application under windows with same command in MS-DOS emulator)? Why do you think that problem is because of spaces? What happens if you instead of copying just cd to /media/something/some\ folder\ and launch it with wine ./setup.exe? I think that your problem is because of typical for Windows applications bug: it is required to run it in current directory otherwise it cannot find itself. This is stupid, but some Windows applications have this bug. This is because they expect Windows Explorer behavior when you try to launch 'em. This also can be a problem if you use GUI file manager and will try to launch buggy Windows application - in most cases your current directory will be ~ and buggy program will crash. This can be solved only with an wrapper script. Your problem also can be solved in this way but I personally prefer to cd to an application's directory and launch it from there; if this doesn't work and I suspect that this isn't Wine fault I try to launch it with full Windows path (rare, but some real world applications doesn't work without full Windows path). After launching it successfully I typically create an alias so I can run, say, XnView just by typing "xnview" in the console in any current directory.
Declan Moriarty
2007-May-21 15:52 UTC
[Wine] running .exe with space in path and getting a crash
On Mon, 2007-05-21 at 15:03 +0300, Wladimir Mutel' wrote:> wine /media/something/some\ folder\setup.exeI think there's a mistake in that line. each '/' is passed by the shell as a dir level. '\' is usually used to escape the next character, which then is a special character, but there's nothing special about the 's'. Surely wine /media/something/some\ folder/setup.exe ^^^ -- Declan Moriarty <junk_mail@iol.ie>
Wladimir Mutel'
2007-May-23 11:05 UTC
[Wine] Re: running .exe with space in path and getting a crash
> I use wine 0.9.37 under Kubuntu 7.04. > I insert USB drive, it gets mounted as /media/something, > then I run an executable (installer) from the command line > with wine : > wine /media/something/some\ folder\setup.exe > And I immediately get the messagebox : > "Access violation at address 004097a6" > "write of address 00400000"> The only workaround was to copy the executable into my home > directory, and run it from there : > wine ~/setup.exejust to be sure, I did cd /media/something/some\ folder and then run wine setup.exe error is the same. This application is written in VB6, may be this could tell something.