From bba50d1aec3c6309dc2fcfde5caaa20297dbdd79 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Fri, 28 Apr 2023 21:51:39 -0400 Subject: [PATCH] Remove symlink when uninstalling. --- cmake/installerscript.qs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cmake/installerscript.qs b/cmake/installerscript.qs index f0e3ab89..25ff4c81 100644 --- a/cmake/installerscript.qs +++ b/cmake/installerscript.qs @@ -51,3 +51,15 @@ Component.prototype.createOperations = function() print("ERROR: running post installscript.qs" + e); } } + +Component.prototype.createOperationsForArchive = function(archive) +{ + component.createOperationsForArchive(archive); + + if (systemInfo.productType === "osx") { + var symlinkPath = targetDirectory + "/../GPT4All.app"; + + // Remove the symlink during uninstallation + component.addOperation("Delete", symlinkPath, "UNDOEXECUTE"); + } +}