Remove symlink when uninstalling.

pull/520/head
Adam Treat 1 year ago
parent 22441a460b
commit bba50d1aec

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

Loading…
Cancel
Save