Electron silent install for Windows

Hi guys. I’m using Electron builder (v22.7.0) for the packaging of the Electron app. In order to support changing the install location through the installer (UI) for the Windows user, nsis flag allowToChangeInstallationDirectory is set to true in the build configuration:

nsis: {
   allowToChangeInstallationDirectory: true,
   oneClick: false,
   perMachine: false
}

If I try to install the app in silent mode using a terminal, the assist window for choosing the install location will be shown. The command that I’m using is:

cd %USERPROFILE%\Downloads\ & {app-name}.exe /sd /currentuser

Question: How to hide that window only in the silent mode?