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:

C:\Octopus\Applications\Test\Jubii.Linkguides.Site\4.0.4603.41695\

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

**D:\**Octopus\Applications\Test\Jubii.Linkguides.Site\4.0.4603.41695\

or maybe something like:

**C:\Sites\**Jubii.Linkguides.Site\4.0.4603.41695\

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:

Example

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,

Paul

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.

Paul