Skip to content

Commit

Permalink
[win] iss: add disableplugins parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplestStudio committed Oct 23, 2024
1 parent 91e56ae commit 7382b25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions win-linux/package/windows/common.iss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7382b25

Please sign in to comment.