You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go-msi comes with some default templates in the program directory, but it also allows the user to provide a custom "src" template, and a custom "out" template. It's just not clear to me how the generator uses the source template to generate a new template. Maybe it's because I've not used wix before.
I thought I would take the wix templates provided, edit them manually, and add the modified versions to my repository (just like one does with wix.json). It's just confusing to me to use a template generator to generate new templates based on existing templates. And then do i still have to manually edit the generated templates? Any additional explanation would help. Thanks!
The help for go-msi is below.
USAGE:
go-msi generate-templates [command options] [arguments...]
OPTIONS:
--path value, -p value Path to the wix manifest file (default: "wix.json")
--src value, -s value Directory path to the wix templates files (default: "C:\\Program Files\\go-msi\\templates")
--out value, -o value Directory path to the generated wix templates files (default: "C:\\Users\\me\\AppData\\Local\\Temp\\go-msi806034671")
--version value The version of your program
--license value, -l value Path to the license file
The text was updated successfully, but these errors were encountered:
generate-templates sub command is an helper tool to validate the golang templating implementation, nothing more. make sub command will regenerate the template appropriately JIT.
This pre-processing in golang is necessary to inject a ton of information into the wix templates.
The wix templates, once pre-processed, are provided as is to wix tool set. Under the wix universe, the operator/developer/whatever-people would manually write the wix templates, before calling for the wix binaries.
The generate-template helps to test and to reproduce this manual process.
To benefit of go-msi simplicity with some tailor made wix templates, you need to duplicate them, probably into your repo, as you did, they contains the golang template expressions.
You must keep those golang templating expressions and work around them to implement your installer features.
Those expressions are the helpers that reflects the configuration put into the wix.json file.
At worst, if you remove those expressions, it would be the same as removing features of go-msi, or ignoring some parts of the wix.json file you declared.
When generating the msi file with go-msi make, do not forget to pass in your special templates via the --src,-s flag to instruct the program the location of the wix files to consume.
You do not need to keep the same file names (LicenseAgreementDlg_HK.wxs / WixUI_HK.wxs / product.wxs).
They must be in the root directory of the value of --src
Go-msi comes with some default templates in the program directory, but it also allows the user to provide a custom "src" template, and a custom "out" template. It's just not clear to me how the generator uses the source template to generate a new template. Maybe it's because I've not used wix before.
I thought I would take the wix templates provided, edit them manually, and add the modified versions to my repository (just like one does with wix.json). It's just confusing to me to use a template generator to generate new templates based on existing templates. And then do i still have to manually edit the generated templates? Any additional explanation would help. Thanks!
The help for go-msi is below.
The text was updated successfully, but these errors were encountered: