title: How to allow two different installation of executables from the same source code in Windows machine
body: <p>I'm currently working on two <code>ReactJs</code> <code>Electron</code> project using the same source code. In case my statement are confusing, I got <code>Product A</code> and <code>Product B</code> on the same source code but the differences between both are the logo and configurations.</p>
  <p>When I use <code>electron-builder</code> to generate the executable file, it indeed come out as two different executable and when I install both executable, it did appear as two different application. But the problem is that, when I opened both application, it overwrite the previous installation.</p>
  <p>I did assume changing the <code>setAppUserModelId</code> on my <code>electron.js</code> and <code>appId</code>, <code>name</code> and others in <code>package.json</code> will trick Windows into thinking that both project are different but ended up it doesn't.</p>
  <pre><code>//electron.js
  
  app.on(&quot;ready&quot;, () =&gt; {
    createWindow();
    if (process.platform === &quot;win32&quot;) {
      app.setAppUserModelId(&quot;com.product.a&quot;); //similar thing goes to Product B
    }
  });
  
  </code></pre>
  <pre><code>//package.json
  
  &quot;build&quot;: {
     &quot;appId&quot;: &quot;com.product.a&quot;,
     &quot;win&quot;: {
       &quot;target&quot;: &quot;NSIS&quot;,
       &quot;icon&quot;: &quot;build/logo.ico&quot;
     }
  },
  
  </code></pre>
  <p><strong>Problem:</strong></p>
  <p>I install <code>productA.exe</code> first then install <code>productB.exe</code>, two application did show up as separate application, but when I launch <code>Product A</code>, it shows <code>Product B</code> and when I launch <code>Product B</code> it shows <code>Product B</code> (which doesn't wrong).</p>
  <p><strong>Expectation:</strong></p>
  <p>What I trying to achieve here is that, when I install <code>productA.exe</code> it shows <code>Product A</code> and when I install <code>productB.exe</code> it shows <code>Product B</code>.</p>
  <p><strong>Question:</strong></p>
  <p>Did I configure my project wrongly or did I missed out something here?</p>