How to update windows registry as part of deployment?

As part of deployment we need to add or update windows registry. I’ve added the values manually, then exported .reg file. Found custom step template for “Update Configuration Variables In Export File” which is useful, but how do I actually import the .reg file into tentacle’s registry?

Hi Alex,

Thanks for reaching out!

There are many ways you can update the windows registry from Octopus. As you’ve got a .reg file, you can import that with a script step that runs regedit /s foo.reg.

As an alternative, if you dont want to include the registry file in your deployment package, you can directly modify the registry from PowerShell to create the keys. Microsoft has some great documentation that can help you here.

Hope this helps!

Matt