Re: [Lazarus] TProcess and Windows XP

2013-07-05 Thread Richard Mace
Yes. You can only specify executables in TProcess. .msi is not an executable file. You need to use the shellexecute function (maybe the LCL provides an equivalent) to start the executable associated with a file type (in this case, the MS installer). Ah, that makes sense. Thanks everyone

Re: [Lazarus] TProcess and Windows XP

2013-07-03 Thread leledumbo
Error 193 is %1 is not a valid Win32 application, what is your .Executable or .CommandLine property? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TProcess-and-Windows-XP-tp4032239p4032244.html Sent from the Free Pascal - Lazarus mailing list archive

Re: [Lazarus] TProcess and Windows XP

2013-07-03 Thread Richard Mace
://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TProcess-and-Windows-XP-tp4032239p4032244.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] TProcess and Windows XP

2013-07-03 Thread Michael Van Canneyt
On Wed, 3 Jul 2013, Richard Mace wrote: It was the complete path to an .msi file. Does that make a difference? Yes. You can only specify executables in TProcess. .msi is not an executable file. You need to use the shellexecute function (maybe the LCL provides an equivalent) to start the

Re: [Lazarus] TProcess and Windows XP

2013-07-03 Thread Sven Barth
Am 03.07.2013 08:57, schrieb Richard Mace: It was the complete path to an .msi file. Does that make a difference? *.msi files are not executables by themselves, they are just stupid files. You don't see this, because they are linked to (AFAIK) msiexec which executes them when you open them in

Re: [Lazarus] TProcess and Windows XP

2013-07-03 Thread Sven Barth
Am 03.07.2013 09:03, schrieb Michael Van Canneyt: On Wed, 3 Jul 2013, Richard Mace wrote: It was the complete path to an .msi file. Does that make a difference? Yes. You can only specify executables in TProcess. .msi is not an executable file. You need to use the shellexecute function

Re: [Lazarus] TProcess and Windows XP

2013-07-03 Thread Michael Van Canneyt
On Wed, 3 Jul 2013, Sven Barth wrote: Am 03.07.2013 09:03, schrieb Michael Van Canneyt: On Wed, 3 Jul 2013, Richard Mace wrote: It was the complete path to an .msi file. Does that make a difference? Yes. You can only specify executables in TProcess. .msi is not an executable file.