Collins
Posts: 138
Joined: Wed Oct 12, 2016 2:57 pm

Support For .HCL Configuration Files as Windows Installer File

It would be great if a config.hcl (HashiCorp Configuration Language) file could be added as a Windows Installer type so it can be updated using public properties.
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Support For .HCL Configuration Files as Windows Installer File

Hello,

For this you can use a Text File Update operation to modify existing files using "Append" and "Search & Replace" operations.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Collins
Posts: 138
Joined: Wed Oct 12, 2016 2:57 pm

Re: Support For .HCL Configuration Files as Windows Installer File

That worked perfectly, thank you.
Collins
Posts: 138
Joined: Wed Oct 12, 2016 2:57 pm

Re: Support For .HCL Configuration Files as Windows Installer File

Actually, it didn't work completely because it keeps removing the { brackets.

Example:

backend "file" {
path = "[INSTALLDIR]"
}

After:

backend "file"
path = "[INSTALLDIR]"
Collins
Posts: 138
Joined: Wed Oct 12, 2016 2:57 pm

Re: Support For .HCL Configuration Files as Windows Installer File

I was able to use [\{] to keep them from being removed.
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Support For .HCL Configuration Files as Windows Installer File

Hello,

Indeed, you need to escape the special characters as explain in the Formatted field.

Please let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”