<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: leifiyo</title>
    <description>The latest articles on DEV Community by leifiyo (@leifiyo).</description>
    <link>https://dev.to/leifiyo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4245692%2Fbfb223f1-bbba-474e-9624-d8f84c833d50.png</url>
      <title>DEV Community: leifiyo</title>
      <link>https://dev.to/leifiyo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/leifiyo"/>
    <language>en</language>
    <item>
      <title>One bach.toml, one Setup.exe: Windows installers without an installer script</title>
      <dc:creator>leifiyo</dc:creator>
      <pubDate>Sun, 15 Nov 2026 09:46:02 +0000</pubDate>
      <link>https://dev.to/leifiyo/one-bachtoml-one-setupexe-windows-installers-without-an-installer-script-14h8</link>
      <guid>https://dev.to/leifiyo/one-bachtoml-one-setupexe-windows-installers-without-an-installer-script-14h8</guid>
      <description>&lt;p&gt;Shipping a desktop app to Windows tends to end the same way: you pick NSIS, Inno Setup or WiX, and then you learn a scripting language or an XML schema to get a setup file out of the door.&lt;/p&gt;

&lt;p&gt;I built Bach because making a Windows installer shouldn't need a script language or a compiler. It covers the common case, an app that installs for one user, with settings instead of code.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it looks like
&lt;/h2&gt;

&lt;p&gt;This is the whole config for a Rust app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="k"&gt;[app]&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Hello"&lt;/span&gt;
&lt;span class="na"&gt;version&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"1.0.0"&lt;/span&gt;
&lt;span class="na"&gt;publisher&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Hello Inc."&lt;/span&gt;
&lt;span class="na"&gt;executable&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"hello.exe"&lt;/span&gt;

&lt;span class="k"&gt;[files]&lt;/span&gt;
&lt;span class="na"&gt;source&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"target/release"&lt;/span&gt;
&lt;span class="na"&gt;exclude&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"*.pdb"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"deps/**"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"build/**"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;$ bach build
Wrote dist\Hello-Setup-1.0.0.exe &lt;span class="o"&gt;(&lt;/span&gt;9.7 MB&lt;span class="o"&gt;)&lt;/span&gt;
  Packed       101.8 KB of 216.5 KB &lt;span class="o"&gt;(&lt;/span&gt;47%&lt;span class="o"&gt;)&lt;/span&gt;, &lt;span class="k"&gt;in&lt;/span&gt; 0.9s
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;source&lt;/code&gt; is the folder your build writes to. Bach packs it, plus the config, into one &lt;code&gt;Setup.exe&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the setup file does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;No admin prompt.&lt;/strong&gt; Apps install per user into &lt;code&gt;%LOCALAPPDATA%\Programs&lt;/code&gt; and only write to the user's own folders and &lt;code&gt;HKCU&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Updates that can't half-fail.&lt;/strong&gt; A newer setup file over an install updates it in place. Files are unpacked first and swapped in together; if one is locked, everything is put back. Files the new version no longer ships are removed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A window people can read.&lt;/strong&gt; 13 languages that follow the Windows display language, light and dark mode, and every text can be replaced.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A clean uninstaller&lt;/strong&gt; in Settings › Apps. It removes only what the installer put there, and deletes user data only if the user asks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Silent installs&lt;/strong&gt; for automation: &lt;code&gt;Setup.exe /S&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Setup files need no .NET and no Visual C++ runtime.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it without installing anything
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install --global @usebach/cli

bach init      &lt;span class="c"&gt;# writes a commented bach.toml&lt;/span&gt;
bach check     &lt;span class="c"&gt;# validates it, lists every file the installer will carry&lt;/span&gt;
bach preview   &lt;span class="c"&gt;# opens the real window; nothing is installed&lt;/span&gt;
bach build     &lt;span class="c"&gt;# writes the setup file&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;bach init&lt;/code&gt; recognizes Rust, Tauri, Electron and .NET projects and fills in the config. On GitHub it also adds a one-click release workflow, and there is a GitHub Action if you'd rather build in CI. &lt;code&gt;bach&lt;/code&gt; itself runs on Windows, macOS and Linux, so the installer can come out of any runner.&lt;/p&gt;

&lt;h2&gt;
  
  
  When not to use it
&lt;/h2&gt;

&lt;p&gt;Bach does not do machine-wide installs or anything that needs administrator rights, MSI for Group Policy, Windows services or drivers, or custom install-time scripts. It has no delta updates (Velopack does those), and a setup file adds about 10 MB to your app. If you need any of that, NSIS, Inno Setup and WiX are still the right tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Website: &lt;a href="https://usebach.app" rel="noopener noreferrer"&gt;https://usebach.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub (MIT): &lt;a href="https://github.com/usebach/bach" rel="noopener noreferrer"&gt;https://github.com/usebach/bach&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If something is missing for your kind of app, open an issue. I'd like to hear it.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>rust</category>
      <category>opensource</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
