http://bugs.winehq.org/show_bug.cgi?id=17712
--- Comment #3 from Andrew Nguyen arethusa26@gmail.com 2009-08-18 10:46:23 --- Created an attachment (id=23164) --> (http://bugs.winehq.org/attachment.cgi?id=23164) Simple command line output program
I think the issue is that quotes in the command line passed in when an application starts through the Wine loader are prepended with a backslash, whereas quotes in the command line when launched through CreateProcess are not.
Wine loader:
andrew@ubuntu-desktop:~$ wine ./commandline.exe.so "test" Received command line: Z:\home\andrew\commandline.exe.so test andrew@ubuntu-desktop:~$ wine ./commandline.exe.so "test" Received command line: Z:\home\andrew\commandline.exe.so "test"
CreateProcess (cmd.exe):
andrew@ubuntu-desktop:~$ wine cmd CMD Version 1.1.27
Z:\home\andrew>commandline.exe.so "test" Z:\home\andrew>Received command line: commandline.exe.so "test"
Z:\home\andrew>commandline.exe.so "test" Z:\home\andrew>Received command line: commandline.exe.so "test"
For the uninstaller command line, the backslash escape character causes the uninstaller to interpret the command line incorrectly, and thus fail.