Details
-
Bug
-
Resolution: Incomplete
-
P1: Critical
-
None
-
4.5.1
-
None
Description
I followed this link: Promoting Updates for the Maintenance Tool
to update the maintenance tool as follows:
- Run command to create maintenance tool
binarycreator -c config/config.xml --mt
- Copy the newly created bundle to packages/com.emotiv.maintenance/data
cp -rf "MyCompany Maintenance Tool.app" packages/com.emotiv.maintenance/data
- Here is my install script file:
function Component() { installer.installationStarted.connect(this, Component.prototype.onInstallationStarted); } Component.prototype.onInstallationStarted = function() { if (component.updateRequested() || component.installationRequested()) { if (installer.value("os") == "mac") { component.installerbaseBinaryPath = installer.value("TargetDir") + "/MyCompany\ Maintenance\ Tool.app"; } installer.setInstallerBaseBinary(component.installerbaseBinaryPath); let updateResourceFilePath = installer.value("TargetDir") + "/update.rcc"; installer.setValue("DefaultResourceReplacement", updateResourceFilePath); } }
- And when updating the maintenance tool to a new version, I see the error: Can't unlink already-existing object (image attached)