Get previous successful installation directory

I can get the previous installation path with Octopus.Tentacle.PreviousInstallation.OriginalInstalledPath however I’d like the previous successful path.

For context I’m trying to uninstall a Topshelf service and need to provide the correct installed path to uninstall it. I’m doing it using the topshelf command line so I can provide instance names and have some of the nice setup options that topshelf provides (eg. recovery etc)

I could do a wmi lookup on a hardcoded servicename (or provided via variable) but I’d prefer not to have to specify the service name and have it only defined within topshelf.

Hi Daniel,

Thanks for getting in touch! Currently there is no way to get this value (in an easy way) during a deployment. We can see the value and use so I have created a GitHub issue that you can track here:

The information is available via the deployment journal on the Tentacles, but it would mean a script to read, parse and find the value.

Warm Regards,
Vanessa