How to deploy multiple packages to the same folder?

The simplest form of my question is this: I have two separate NuGet packages and at deployment time need them to end up at the same folder. Not at some fixed (constant) folder on the machine, but in the folder dynamically created by Octopus for the first package. All I need is to make second package to go to the same folder.

In a more complex form the same question is: how to deploy a package to subfolder of the previous package deployment location.

Does it make sense to let Octopus deploy everything in separate folders and then generate HTFS softlinks to simulate required folder structure?

Thank you!

Hi Konstantine,

You can use the Octopus.Action[StepName].Output.Package.InstallationDirectoryPath variable to get the folder where the NuGet package was extracted to in your first step.

I hope that helps.

Thank you,

And how do I make sure the second package is installed to the same folder?

You can use the Custom Installation Directory feature and set the bind the field to the Octopus.Action[StepName].Output.Package.InstallationDirectoryPath value.