Re: uninstalling kext
Re: uninstalling kext
- Subject: Re: uninstalling kext
- From: hagen <email@hidden>
- Date: Wed, 14 Nov 2012 16:25:28 +0100
Thanks Stuart,
for this really quick response!
So far I have an Uninstall installer package. Which is also a bit
confusing to the user, as there are a lot of places indicating
"install", "upgrade" (or similar) which I didn't find a way yet (with
packages) to change.
Anyway in one of those scripts I unloading my kext with kextunload,
but the issue is that usually some components are using it. I.e. if
its an audio device, network etc. So you almost always end up being
told by kextunload that there are still references to it and either
nothing happens or the kext is unusable anymore. Both is nuts, as now
the user will have to reboot. Actually I have only seen kextunload to
work for devices the are attached to a bus the OS thinks its PNP (i.e
firewire or USB). However it works when the kext (test-wise) was
installed to /tmp. The real issue with that is that there is zero
documentation. Nothing. Not even very limited documentation like for
most parts for kernel development.
Cheers,
Hagen.
On Wed, Nov 14, 2012 at 4:03 PM, Stuart Ramdeen
<email@hidden> wrote:
> As far as I understand it, yes, you have to create your own uninstall method. The most common practice for installs that install files in locations other than /Applications is to create an uninstaller installer package (not confusing at all) that deletes the necessary files and then removes the package receipt using pkgutil.
>
> As for unloading your kext, this from the kextunload man page:
>
>> kextunload is a formal interface for unloading kexts in the Darwin OS and in Mac OS X. Software
>> and installers can rely on its presence and invoke it in order to unload kexts. Note that long
>> options are present as of Mac OS X 10.6 (Snow Leopard).
>
> That any help?
>
> Regards
>
> Stuart
>
>
> On 14 Nov 2012, at 14:49, hagen <email@hidden> wrote:
>
>> Hi,
>> (unfortunately since years the search function of apples list archives
>> is not working), I hope this hasn't been discussed before:
>>
>> Am I wrong or is there no real "uninstall" advice?
>> Looks like everybody must in one or the other way provide uninstall
>> functionality while there is no help from the OS/docu/Apple.
>>
>> Especially I am concerning uninstalling kext:
>> Please point me to the resource where this is documented. (Joke).
>>
>> But: how can I reliably unload a kext, especially to make sure that
>> references from other components are removed.
>>
>> Thanks and cheers,
>> Hagen.
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden