Custom IIS site home directory using system variables?

I like the default naming convention pretty much as it is except for the drive letter. So my question is, is it possible to use system variables in custom variable values? Or alternatively, is it possible to set variable values from the predeploy powershell script?

So than instead of this output:


I would be able to make a “dynamic” variable with the following output:


or maybe something like:


Where the project name and versions parts of the path is being populated by Octopus Deploy.

Hi Johannes,

When you install the Tentacle agent, you can choose where it installs applications to:


So you could set that to C:\Sites for example to achieve what you need.

You can also do this from the command line - see here for more examples:

 tentacle.exe configure --appdir="C:\Sites"

Hope that helps,


Thanks Paul, that’s perfect! :slight_smile: And please accept my apologies for skipping through your beautifully crafted installers. However, I’m glad to report that my department is now one Octopus Deploy enterprise license richer. Looking forward to deploying using your tool in the future. Keep up the excellent work and support you are doing.

Thanks for the order Johannes, much appreciated! Let me know if you have any other issues getting up and running.