JSON Configuration Variables Target Location

How would I do a “JSON Configuration Variables” variable substitution if our application does not store the config file with the application.

Application path: c:\program files\Our App
Config files path: c:\programdata\Our App\Config\config.json

Relative path walking with … does not work. How do I accomplish without custom deploy.ps1?



Hi Tyler,

Thanks for getting in touch! I am going to have to make some assumptions here, so please correct me if I am wrong.
If you have your config file as part of the package, I would suggest using the Substitute Variables in Files feature as is, then using a PowerShell script to move the file to the location after this has occurred.

If the file already exists in that other location, would it not already have the correct variables, or is it part of another deployment package?

Let me know!