From 6c44c08b663e042ca2bb23513ced3df6fe30094a Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 4 Apr 2022 22:31:36 -0700 Subject: [PATCH] Disable automatic application start after install via Windows Installer Arduino IDE is packaged for Windows in multiple formats: - ZIP - NSIS - Windows Installer (AKA "MSI") The interactive installer of the NSIS package makes it the best option for installation by users. The other use case for the installers is deployment by a system administrator. The Windows Installer package was added to offer an additional installer option for this specific use case. In this use case, a "silent install" will often be required. Previously, the Windows Installer package was configured to start the Arduino IDE after completing the installation. This behavior is likely to be problematic for the very use case the Windows Installer package was intended for. That configuration was not intentional, but rather a result of using whatever setting electron-builder happened to provide as a default. The behavior of the Windows Installer package is hereby changed to not run after installation. This also aligns it with the behavior of the NSIS package's silent installation (running the installer with the `/S` flag). The behavior of the NSIS installer is unchanged: - When in interactive mode: user chooses whether to start Arduino IDE - When in silent mode: Arduino IDE does not start after installation --- electron/build/template-package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/electron/build/template-package.json b/electron/build/template-package.json index 9b5af5cde..b40ea9f0c 100644 --- a/electron/build/template-package.json +++ b/electron/build/template-package.json @@ -106,6 +106,9 @@ "category": "Development", "icon": "resources/icons" }, + "msi": { + "runAfterFinish": false + }, "nsis": { "oneClick": false, "installerHeaderIcon": "resources/icon.ico",