View Single Post
Old 20th November 2010, 16:09   #37  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Darn! I think the mystery is resolved:

There actually are two versions of the QProcess.start() function: One which takes only a single string (complete command-line) and one which takes a string (path to EXE) plus a string-list (command-line arguments). In all places I always used the second one, except for the Nero version check, where I implicitly used the first one, as there were no arguments to pass. Unfortunately it turns out that while the second version correctly wraps all arguments which contain white-spaces into quotes (including the path to the EXE file!), the first version does NOT do so. For this reason Windows couldn't find the Nero executable, if (and only if) the install path contains any white-spaces. I will now enforce the use of the second version also for the Nero executable and the problem should be gone once and for all...

(BTW: Of course on my test system I always put the executables into "C:\Test" and thus the problem never showed up. That's life.)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote