Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-07

TProcess and Windows XP

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Richard Mace
to leledumbo

It was the complete path to an .msi file. Does that make a difference?

Richard

leledumbo wrote 17 lines
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 . -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130703/b621dc92/attachment.html>

Reply by email

Michael Van Canneyt
to Richard Mace
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 executable associated with a file type (in this case, the MS installer).

Michael.

Reply by email

Sven Barth
to Richard Mace: It was the complete path to an .msi file. Does that make a difference? Richard…
Richard Mace wrote
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 explorer (or with ShellExecute). So you'll need to look into msiexec and it's parameters to install a *.msi file.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130703/38941e41/attachment.html>

Reply by email

Sven Barth
to Michael Van Canneyt: Yes. You can only specify executables in TProcess. .msi is not an executable file. You…
Michael Van Canneyt wrote 14 lines
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 executable associated with a file type (in this case, the MS installer).

Or start the executable which processes *.msi files and pass the *.msi file as argument ;)

Regards,
Sven

Reply by email

Michael Van Canneyt
to Sven Barth
Sven Barth wrote 17 lines
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 (maybe the LCL provides an > equivalent) to start the executable associated with a file type (in this > case, the MS installer). > Or start the executable which processes *.msi files and pass the *.msi file as argument ;)

Obviously. I just don't know what that executable is or where it resides.

Michael.

Reply by email

Richard Mace
to Michael Van Canneyt: Yes. You can only specify executables in TProcess. .msi is not an executable file. You…
Show quoted text 9 lines
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 for there help.

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130705/337e0c3f/attachment.html>

Reply by email