0

I have the following setup:

Command Setup

The last command is:
$("$($InstallationPath)\$($ApplicationId)\$($ApplicationId).exe install")

I want that to execute:

C:\Services\OmStudioAdministration\OmStudioAdministration.exe install

But it just prints the text of the command out. (Does not run the command.)

However if I copy that and run it, it does what I want:

Command is Correct

How can I get it to run the command directly?
(So I don't have to copy and paste it in and run it.)

NOTE: In case it matters, I am planning to run this as an Octopus Deploy script.

3

2 Answers 2

2

Try This:

& {$InstallationPath\$ApplicationId\$ApplicationId.exe install}

Script Blocks are generally easier to run than character strings.

Sign up to request clarification or add additional context in comments.

Comments

0

Replace your last line by this one:

cmd.exe /c "$installationpath\$ApplicationID.exe" install

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.