[Bug 9628] msiexec command line parsing incorrect

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Nov 23 15:10:05 CST 2007


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





--- Comment #4 from Darragh Bailey <felix at compsoc.nuigalway.ie>  2007-11-23 15:10:05 ---
Looking at the output for traces for xlviewer (the application that the
installer broke due to the original change)

Command line passed into msiexec

trace:msiexec:main bug 9628: argv[0] = "c:\windows\system32\msiexec.exe"
trace:msiexec:main bug 9628: argv[1] = "/I"
trace:msiexec:main bug 9628: argv[2] = "C:\windows\temp\IXP001.TMP\XLVIEW.MSI"
trace:msiexec:main bug 9628: argv[3] = "CDCACHE=2"
trace:msiexec:main bug 9628: argv[4] = "LAUNCHEDFROMSETUP=1"
trace:msiexec:main bug 9628: argv[5] =
"SETUPEXEPATH=C:\windows\temp\IXP001.TMP" SETUPEXENAME=SETUP.EXE   /lpiwaeo
C:\windows\temp\Microsoft"
trace:msiexec:main bug 9628: argv[6] = "Office"
trace:msiexec:main bug 9628: argv[7] = "Excel"
trace:msiexec:main bug 9628: argv[8] = "Viewer"
trace:msiexec:main bug 9628: argv[9] = "2003"
trace:msiexec:main bug 9628: argv[10] = "Setup(0004)_Task(0001).txt CDCACHE=0
DWSETUPLOGFILE=C:\windows\temp\Microsoft"
trace:msiexec:main bug 9628: argv[11] = "Office"
trace:msiexec:main bug 9628: argv[12] = "Excel"
trace:msiexec:main bug 9628: argv[13] = "Viewer"
trace:msiexec:main bug 9628: argv[14] = "2003"
trace:msiexec:main bug 9628: argv[15] = "Setup(0004).txt
DWMSILOGFILE=C:\windows\temp\Microsoft"
trace:msiexec:main bug 9628: argv[16] = "Office"
trace:msiexec:main bug 9628: argv[17] = "Excel"
trace:msiexec:main bug 9628: argv[18] = "Viewer"
trace:msiexec:main bug 9628: argv[19] = "2003"
trace:msiexec:main bug 9628: argv[20] = "Setup(0004)_Task(0001).txt"

which gets converted to the following in the case of process_args
trace:msiexec:main argvW[1] = L"/I"
trace:msiexec:main argvW[2] = L"C:\\windows\\temp\\IXP001.TMP\\XLVIEW.MSI"
trace:msiexec:main argvW[3] = L"CDCACHE=2"
trace:msiexec:main argvW[4] = L"LAUNCHEDFROMSETUP=1"
trace:msiexec:main argvW[5] = L"SETUPEXEPATH=C:\\windows\\temp\\IXP001.TMP\\"
trace:msiexec:main argvW[6] = L"SETUPEXENAME=SETUP.EXE"
trace:msiexec:main argvW[7] = L"/lpiwaeo"
trace:msiexec:main argvW[8] = L"C:\\windows\\temp\\Microsoft Office Excel
Viewer 2003 Setup(0003)_Task(0001).txt"
trace:msiexec:main argvW[9] = L"CDCACHE=0"
trace:msiexec:main argvW[10] = L"DWSETUPLOGFILE=C:\\windows\\temp\\Microsoft
Office Excel Viewer 2003 Setup(0003).txt"
trace:msiexec:main argvW[11] = L"DWMSILOGFILE=C:\\windows\\temp\\Microsoft
Office Excel Viewer 2003 Setup(0003)_Task(0001).txt"

and to the following when using CommandLineToArgvW

trace:msiexec:main argvW[1] = L"/I"
trace:msiexec:main argvW[2] = L"C:\\windows\\temp\\IXP001.TMP\\XLVIEW.MSI"
trace:msiexec:main argvW[3] = L"CDCACHE=2"
trace:msiexec:main argvW[4] = L"LAUNCHEDFROMSETUP=1"
trace:msiexec:main argvW[5] = L"SETUPEXEPATH=C:\\windows\\temp\\IXP001.TMP\"
SETUPEXENAME=SETUP.EXE   /lpiwaeo C:\\windows\\temp\\Microsoft"
trace:msiexec:main argvW[6] = L"Office"
trace:msiexec:main argvW[7] = L"Excel"
trace:msiexec:main argvW[8] = L"Viewer"
trace:msiexec:main argvW[9] = L"2003"
trace:msiexec:main argvW[10] = L"Setup(0005)_Task(0001).txt CDCACHE=0
DWSETUPLOGFILE=C:\\windows\\temp\\Microsoft"
trace:msiexec:main argvW[11] = L"Office"
trace:msiexec:main argvW[12] = L"Excel"
trace:msiexec:main argvW[13] = L"Viewer"
trace:msiexec:main argvW[14] = L"2003"
trace:msiexec:main argvW[15] = L"Setup(0005).txt
DWMSILOGFILE=C:\\windows\\temp\\Microsoft"
trace:msiexec:main argvW[16] = L"Office"
trace:msiexec:main argvW[17] = L"Excel"
trace:msiexec:main argvW[18] = L"Viewer"
trace:msiexec:main argvW[19] = L"2003"
trace:msiexec:main argvW[20] = L"Setup(0005)_Task(0001).txt"

Looks to me that the command line being send to msiexec is incorrect in the
first place, and its only due to some unusual behaviour by process_args that
the correct command line is extracted.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list