How do I call exec in psake to an executable with a variable path?
Posted
by
Josh Kodroff
on Stack Overflow
See other posts from Stack Overflow
or by Josh Kodroff
Published on 2012-12-19T23:01:47Z
Indexed on
2012/12/19
23:02 UTC
Read the original article
Hit count: 349
I can't seem to call this executable correctly in my psake deploy script.
If I do this:
exec { "$ArchiverOutputDir\NServiceBus.Host.exe /install" }
It simply outputs this (and is clearly not calling the executable - just outputting the value of that expression):
c:\ReloDotNet2_ServiceEndpoints\Archiver\NServiceBus.Host.exe /install
But if I do this:
exec { c:\ReloDotNet2_ServiceEndpoints\Archiver\NServiceBus.Host.exe /install }
I get the expected output from the executable.
How do I correctly call an executable with a variable in the path to the executable in psake? If this is actually a PowerShell issue, please feel free to correct the question to reflect that insight.
I
© Stack Overflow or respective owner