fusioninventory-agent icon indicating copy to clipboard operation
fusioninventory-agent copied to clipboard

Uninstaller broken on osx

Open Hardcore-fs opened this issue 4 years ago • 5 comments

The packages for the mac osx 2.6 / 2.5 do not have a fully functional uninstaller. inside the pkg is a number of scripts for installing & uninstalling on mac osx

The uninstaller fails depending on what version of mac osx you are running. (not that it is even documented or easy to find)

if the package installs on the full range of mac osx from 10.10-10.15, then it should have an installer/uninstaller that correctly handles those platforms.

there is absolutely NO point in building agent 2.6 against mac osx 10.15, then allowing it to be installed on all platforms of mac osx, but then having an uninstaller that fails to remove the installed files on incorrect platforms, trashing them in the process.

Hardcore-fs avatar Dec 21 '20 23:12 Hardcore-fs

Hi @Hardcore-fs sorry, for that issue, as I said in #873, perl was build on Catalina and I understood the mistake. I'm trying to rebuild perl to at least support 10.10. Anyway, you're just complaining here telling somethink like "that's not working" and this won't help us to fix the problem if you don't report any error.

Actually, I can uninstall 2.6 agent on Catalina without any error. So I'm not fully agree with your sentence "uninstaller fails depending on what version of mac osx you are running" as this seems to work on Catalina. I can't test on older versions as I don't have any one at the moment.

So please can you be more accurate in your report ?

g-bougard avatar Dec 29 '20 14:12 g-bougard

Hi, the issue is that it cannot re-install 2.5 becasue 2.6 leaves something behind in the installation database. therefore to my mind it is a failure. (and uninstall & re-install a previous version does not really need an explanation.) it's just : install 2.6, reboot, uninstall 2.6, reboot, try to install 2.5-> fail.. cannot install package that predates current version.

I tried to track it own, but have been unable to find out where the entry is.

Hardcore-fs avatar Dec 29 '20 21:12 Hardcore-fs

Hi @Hardcore-fs I think there's still an issue with the packager but I can't find exactly what at the moment. Anyway, here is a work-around:

  • after you uninstalled the agent, run the following command:
sudo pkgutil --forget org.fusioninventory-agent
  • then install the older package

g-bougard avatar Dec 31 '20 17:12 g-bougard

Hi, you will get it eventually.... maybe just run that command from the uninstaller.....

Hardcore-fs avatar Dec 31 '20 21:12 Hardcore-fs

Hi, to answer your last proposition, the pkgutil man page explains this is not recommended... Anyway I still don't have a good answer on the question "How a package should be cleanly uninstalled from a MacOS operating system ?"... On my point of view the Apple documentation is really poor about this process. So I leave the question open if anyone has a good answer.

g-bougard avatar Jan 12 '21 07:01 g-bougard