Deployment folder on target server?

We need to write a powershell script that does manipulation of the deployed octopacked files. However, we are not sure where the files were deployed to on the target server. What octopus system variables do we use for installation path for the following scenarios:

  1. Using custom installation folder
  2. Using default installation folder


Thanks for getting in touch!

The two variables that you are looking for are:

  1. Octopus.Action.Package.CustomInstallationDirectory
  2. Octopus.Action.Package.InstallationDirectoryPath

You can also use Action[Step name] if you are deploying more than one package in the deployment ie
#{Octopus.Action[website package].Output.Package.InstallationDirectoryPath}

And here is a link to our documented list of System Variables:

Hope that helps!