Remove symlink when uninstalling.

This commit is contained in:
Adam Treat 2023-04-28 21:51:39 -04:00
parent f3663cc55e
commit 8bdbcfeaa6

View File

@ -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");
}
}