Remove symlink when uninstalling.

This commit is contained in:
Adam Treat 2023-04-28 21:51:39 -04:00
parent 22441a460b
commit bba50d1aec

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