Try to fix uninstall of symlink.

This commit is contained in:
Adam Treat 2023-04-28 22:28:11 -04:00
parent a018a3176e
commit c9c8c60db7

View File

@ -57,7 +57,8 @@ Component.prototype.createOperationsForArchive = function(archive)
component.createOperationsForArchive(archive); component.createOperationsForArchive(archive);
if (systemInfo.productType === "osx") { if (systemInfo.productType === "osx") {
var symlinkPath = targetDirectory + "/../GPT4All.app"; var uninstallTargetDirectory = installer.value("TargetDir");
var symlinkPath = uninstallTargetDirectory + "/../GPT4All.app";
// Remove the symlink during uninstallation // Remove the symlink during uninstallation
if (installer.isUninstaller()) { if (installer.isUninstaller()) {