From 7382b25312bbb97c737a57383f0e8e64c78232d7 Mon Sep 17 00:00:00 2001 From: SimplestStudio Date: Wed, 23 Oct 2024 16:34:17 +0300 Subject: [PATCH] [win] iss: add disableplugins parameter --- win-linux/package/windows/common.iss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/win-linux/package/windows/common.iss b/win-linux/package/windows/common.iss index 97613b030..da1be45ef 100644 --- a/win-linux/package/windows/common.iss +++ b/win-linux/package/windows/common.iss @@ -901,6 +901,12 @@ begin if (Length(paramStore) > 0) and (paramStore = 'full') then begin RegWriteStringValue(HKEY_LOCAL_MACHINE, ExpandConstant('{#APP_REG_PATH}'), 'uninstall', paramStore); end; + + if CheckCommandlineParam('/disableplugins') then begin + if DirExists(ExpandConstant('{app}\editors\sdkjs-plugins\') + '{AA2EA9B6-9EC2-415F-9762-634EE8D9A95E}') then + DelTree(ExpandConstant('{app}\editors\sdkjs-plugins\') + '{AA2EA9B6-9EC2-415F-9762-634EE8D9A95E}', True, True, True); + end; + end else if CurStep = ssDone then begin // if not (gHWND = 0) then begin