{"by":"rmast","descendants":24,"id":44331518,"kids":[44333031,44331940,44332772,44332611,44331815,44345026],"score":135,"text":"Hey everyone!<p>I&#x27;m excited to share a small web app I built that allows you to view and extract the contents of Windows MSI installers directly in your browser. It&#x27;s essentially a web-based &quot;lessmsi&quot; powered by Pyodide.<p>You can try it out at: <a href=\"https:&#x2F;&#x2F;pymsi.readthedocs.io&#x2F;en&#x2F;latest&#x2F;msi_viewer.html\" rel=\"nofollow\">https:&#x2F;&#x2F;pymsi.readthedocs.io&#x2F;en&#x2F;latest&#x2F;msi_viewer.html</a><p>My motivation for building this was from part of my day job -- I often get Windows MSI installers and need to extract files while preserving the relative directory structure and filenames, as they would appear after a full installation. The existing tools I found were good but limited in which platforms they support: lessmsi works great on Windows, while msitools works for Linux&#x2F;macOS. Neither is a truly cross-platform solution that works on any major OS.<p>So we developed pymsi (a pure Python library, available on GitHub at <a href=\"https:&#x2F;&#x2F;github.com&#x2F;nightlark&#x2F;pymsi\">https:&#x2F;&#x2F;github.com&#x2F;nightlark&#x2F;pymsi</a>) to handle reading and extracting MSI files from Python. Then I realized that since pymsi has no native dependencies, it could potentially run in a web browser using Pyodide. After a bit of &quot;vibe coding&quot; and fixing some &quot;hallucinated&quot; functions&#x2F;classes that don&#x27;t exist in pymsi, the result was this client-side web app.<p>If you need an MSI file to experiment with, older versions of PowerToys included the installer in .msi form, such as this one: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;PowerToys&#x2F;releases&#x2F;download&#x2F;v0.21.1&#x2F;PowerToysSetup-0.21.1-x64.msi\">https:&#x2F;&#x2F;github.com&#x2F;microsoft&#x2F;PowerToys&#x2F;releases&#x2F;download&#x2F;v0....</a><p>Note that the underlying pymsi library hasn&#x27;t been extensively tested against a bunch of MSI installers yet, so there might still be lingering bugs. If you come across any issues, please don&#x27;t hesitate to report them in on the GitHub repository (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;nightlark&#x2F;pymsi&#x2F;issues\">https:&#x2F;&#x2F;github.com&#x2F;nightlark&#x2F;pymsi&#x2F;issues</a>).<p>I&#x27;d love to hear your feedback and answer any questions!","time":1750449841,"title":"Show HN: Inspect and extract files from MSI installers directly in your browser","type":"story","url":"https://pymsi.readthedocs.io/en/latest/msi_viewer.html"}