[Bug 9628] msiexec command line parsing incorrect

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Apr 9 16:52:58 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=9628





--- Comment #9 from Darragh Bailey <felix at compsoc.nuigalway.ie>  2008-04-09 16:52:58 ---
Actually a little more work has shown the following. When using CreateProcess
on windows, if lpApplicationName is used, the value passed will not be added to
the start of the lpCommandline string. 

Therefore using GetCommandLine will never retrieve this string. However it
appears that the is a quirk left in the way the CommandLineToArgv function
works. If the string (usually the return value of GetCommandLine) passed in
starts with 1 or more spaces, then the first element of argv (argv[0]) will be
an empty string, and the rest of the command line will be broken up into the
subsequent array elements.

Obviously this means that using 
argvW = CommandLineToArgvW(GetCommandLineW(), &argc);
would fix "Install RPG Maker XP", it would at the moment break the xlviewer
installer.

Right now I've eliminated CreateProcess, the creation of argv sent to child
processes (build_argv), and GetCommandLine from being points of error.

So either CommandLineToArgvW has a bug in how it generates the command line
from the xlviewer installer, or msiexec will need to include a work around for
dealing with this special case.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list