{"id":13756255,"url":"https://github.com/mh-cbon/go-msi","last_synced_at":"2026-02-28T10:45:06.954Z","repository":{"id":50319930,"uuid":"61898036","full_name":"mh-cbon/go-msi","owner":"mh-cbon","description":"Easy way to generate msi package for a Go project","archived":false,"fork":false,"pushed_at":"2023-04-14T12:29:21.000Z","size":56674,"stargazers_count":451,"open_issues_count":29,"forks_count":57,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-08-03T11:01:50.017Z","etag":null,"topics":["golang","msi","wix"],"latest_commit_sha":null,"homepage":"https://mh-cbon.github.io/go-msi/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mh-cbon.png","metadata":{"files":{"readme":"README.e.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-06-24T16:34:55.000Z","updated_at":"2024-07-17T09:14:04.000Z","dependencies_parsed_at":"2024-01-17T15:04:49.570Z","dependency_job_id":"754caa4c-1422-4d15-8ad3-25e79f3d0a52","html_url":"https://github.com/mh-cbon/go-msi","commit_stats":null,"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mh-cbon%2Fgo-msi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mh-cbon%2Fgo-msi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mh-cbon%2Fgo-msi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mh-cbon%2Fgo-msi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mh-cbon","download_url":"https://codeload.github.com/mh-cbon/go-msi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224911420,"owners_count":17390840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","msi","wix"],"created_at":"2024-08-03T11:00:40.083Z","updated_at":"2026-02-28T10:45:01.902Z","avatar_url":"https://github.com/mh-cbon.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"\u003ca href=\"https://app.codesponsor.io/link/aHBhB5M68Fescjjp9VC9TtJs/mh-cbon/go-msi\" rel=\"nofollow\"\u003e\u003cimg src=\"https://app.codesponsor.io/embed/aHBhB5M68Fescjjp9VC9TtJs/mh-cbon/go-msi.svg\" style=\"width: 888px; height: 68px;\" alt=\"Sponsor\" /\u003e\u003c/a\u003e\n\n# {{.Name}}\n\n{{template \"badge/appveyor\" .}}\n\n{{pkgdoc}}\n\nThis tool is part of the [go-github-release workflow](https://github.com/mh-cbon/go-github-release)\n\nFind a demo program [here](https://github.com/mh-cbon/go-msi/tree/master/testing/hello)\n\n# {{toc 5}}\n\n# Install\n\n{{template \"gh/releases\" .}}\n\n#### Go\n{{template \"go/install\" .}}\n\n#### Bintray\n{{template \"choco_bintray/install\" .}}\n\n#### Chocolatey\n{{template \"choco/install\" .}}\n\n#### linux rpm/deb repository\n{{template \"linux/bintray_repo\" .}}\n\n#### linux rpm/deb standalone package\n{{template \"linux/gh_pkg\" .}}\n\n# Usage\n\n### Requirements\n\n- A windows machine (see [here](https://github.com/mh-cbon/go-msi/blob/master/appveyor-recipe.md) for an appveyor file, see [here](https://github.com/mh-cbon/go-msi/blob/master/unice-recipe.md) for unix friendly users)\n- wix \u003e= 3.10 (may work on older release, but it is untested, feel free to report)\n- you must add wix bin to your `PATH`\n- use `check-env` sub command to get a report.\n\n### Workflow\n\nFor simple cases,\n\n- Create a `wix.json` file like [this one](https://github.com/mh-cbon/go-msi/blob/master/wix.json)\n- Apply it guids with `go-msi set-guid`, you must do it once only for each app.\n- Run `go-msi make --msi your_program.msi --version 0.0.2`\n\n### configuration file\n\n`wix.json` file describe the desired packaging rules between your sources and the resulting msi file.\n\n[Check the demo json file](https://github.com/mh-cbon/go-msi/blob/master/testing/hello/wix.json)\n\nPost an issue if it is not self-explanatory.\n\nAlways double check the documentation and [SO](https://stackoverflow.com)\nwhen you face a difficulty with `heat`, `candle`, `light`\n\n- http://wixtoolset.org/documentation/\n- http://stackoverflow.com/questions/tagged/wix\n\nIf you wonder why `INSTALLDIR`, `[INSTALLDIR]`, this is part of wix rules, please check their documentation.\n\n### License file\n\nTake care to the license file, it must be an `rtf` file, it must be encoded with `Windows1252` charset.\n\nI have provided some tools to help with that matter.\n\n# Personnalization\n\n### wix templates\n\nFor simplicity a default install flow is provided, which you can find [here](https://github.com/mh-cbon/go-msi/tree/master/templates)\n\nYou can create a new one for your own personalization,\nyou should only take care to reproduce the go templating already\ndefined for `files`, `directories`, `environment variables`, `license` and `shortcuts`.\n\nI guess most of your changes will be about the `WixUI_HK.wxs` file.\n\n# Cli\n\n###### $ {{exec \"go-msi\" \"-h\" | color \"sh\"}}\n\n###### $ {{exec \"go-msi\" \"check-env\" \"-h\" | color \"sh\"}}\n\n###### $ {{exec \"go-msi\" \"check-json\" \"-h\" | color \"sh\"}}\n\n###### $ {{exec \"go-msi\" \"set-guid\" \"-h\" | color \"sh\"}}\n\n###### $ {{exec \"go-msi\" \"make\" \"-h\" | color \"sh\"}}\n\n###### $ {{exec \"go-msi\" \"choco\" \"-h\" | color \"sh\"}}\n\n###### $ {{exec \"go-msi\" \"generate-templates\" \"-h\" | color \"sh\"}}\n\n###### $ {{exec \"go-msi\" \"to-windows\" \"-h\" | color \"sh\"}}\n\n###### $ {{exec \"go-msi\" \"to-rtf\" \"-h\" | color \"sh\"}}\n\n###### $ {{exec \"go-msi\" \"gen-wix-cmd\" \"-h\" | color \"sh\"}}\n\n###### $ {{exec \"go-msi\" \"run-wix-cmd\" \"-h\" | color \"sh\"}}\n\n# Recipes\n\n### Appveyor\n\nPlease check [this](https://github.com/mh-cbon/go-msi/blob/master/appveyor-recipe.md)\n\n### Unix like\n\nPlease check [this](https://github.com/mh-cbon/go-msi/blob/master/unice-recipe.md)\n\n### Release the project\n\n```sh\ngump patch -d # check\ngump patch # bump\n```\n\n# History\n\n[CHANGELOG](CHANGELOG.md)\n\n# Credits\n\nA big big thanks to\n\n- `Helge Klein`, which i do not know personally, but made this project possible by sharing a real world example at\nhttps://helgeklein.com/blog/2014/09/real-world-example-wix-msi-application-installer/\n- all SO contributors on `wix` tag.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmh-cbon%2Fgo-msi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmh-cbon%2Fgo-msi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmh-cbon%2Fgo-msi/lists"}