From e21ef08754bfeea3c08515d697ae59de8284847f Mon Sep 17 00:00:00 2001 From: Black_Yuzia <25010528+BlackYuzia@users.noreply.github.com> Date: Mon, 24 Jan 2022 11:56:14 +0200 Subject: [PATCH 1/2] add change folder options to build config --- template/builder.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/template/builder.config.js b/template/builder.config.js index d21e4fed..490675a5 100644 --- a/template/builder.config.js +++ b/template/builder.config.js @@ -7,8 +7,11 @@ const windowsOS = { target: 'nsis' }, + // https://www.electron.build/configuration/nsis.html nsis: { - differentialPackage: true + differentialPackage: true, + allowToChangeInstallationDirectory: false, // set to true if you want allow user choose folder + oneClick: true // set to false, if you set allowToChangeInstallationDirectory to true } } From 45552cccec360b4ed18079713461c0ec62f216be Mon Sep 17 00:00:00 2001 From: Black_Yuzia <25010528+BlackYuzia@users.noreply.github.com> Date: Mon, 24 Jan 2022 12:01:51 +0200 Subject: [PATCH 2/2] add deleteAppDataOnUninstall nsis option --- template/builder.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/template/builder.config.js b/template/builder.config.js index 490675a5..f3ab68e2 100644 --- a/template/builder.config.js +++ b/template/builder.config.js @@ -11,7 +11,8 @@ const windowsOS = { nsis: { differentialPackage: true, allowToChangeInstallationDirectory: false, // set to true if you want allow user choose folder - oneClick: true // set to false, if you set allowToChangeInstallationDirectory to true + oneClick: true, // set to false, if you set allowToChangeInstallationDirectory to true + deleteAppDataOnUninstall: false } }