• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Packages - how to make an uninstaller?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Packages - how to make an uninstaller?


  • Subject: Re: Packages - how to make an uninstaller?
  • From: Greg Neagle <email@hidden>
  • Date: Wed, 29 Mar 2017 06:59:47 -0700

No, it's not an ideal method. Apple provides no ideal method to create and distribute an uninstaller. So it's either this, an AppleScript app using `do shell script FOO with administrator privileges`, a shell script people need to run using sudo, or a custom Cocoa app that uses AuthorizationServices, Pick your poison.

-Greg

> On Mar 28, 2017, at 6:18 PM, Stephen Kay <email@hidden> wrote:
>
>> I make a payload-free raw flat package.
>
> I experimented a bit with this. The problem I see is that, even with
> making it a distribution and customizing the presentation using text files
> for the pane contents, assuming you name the .pkg something like Foo
> Uninstaller, you end up with cryptic messages that cannot be changed such
> as:
>
> Title of Window: Install Foo Uninstaller
> "Welcome to the Foo Uninstaller Installer"
>
> Installation Type: Standard Install
> "Click Install to perform a standard installation....
>
> [Except this is an UNINSTALLER....]
>
> Button: INSTALL
>
> Password dialog: Installer is trying to install new software....
>
> Button: Install Software
>
> Summary: The installation was completed successfully (at top, cannot be
> replaced).
>
> So it seems not an ideal method.... Unless I'm missing something...
>
> Thanks,
> - Stephen
>
>
>
> On 3/25/17 5:58 PM, "Conor Schutzman" <email@hidden> wrote:
>
>> I make a payload-free raw flat package. I use the "preinstall" script in
>> Packages to script out a removal of the files my install package added
>> (this obviously varies greatly by software title). I then use a
>> "postinstall" script in Packages to script a 'pkgutil --forget" command
>> for the package identifier of the install package.
>>
>>> On Mar 25, 2017, at 5:53 PM, Stephen Kay <email@hidden> wrote:
>>>
>>> (Sorry, reposting with correct title).
>>>
>>> How does one write an uninstaller for a Packages installer?
>>>
>>> Thanks,
>>> - Stephen
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>
>
>
> _______________________________________________
> 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


 _______________________________________________
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


  • Follow-Ups:
    • Re: Packages - how to make an uninstaller?
      • From: Karl Kuehn <email@hidden>
References: 
 >Packages - installing to current user's home directory (From: Hanspeter Harpf <email@hidden>)
 >Re: Packages - installing to current user's home directory (From: Stephane Sudre <email@hidden>)
 >Re: Packages - installing to current user's home directory (From: Hanspeter Harpf <email@hidden>)
 >Packages - how to make an uninstaller? (From: Stephen Kay <email@hidden>)
 >Re: Packages - how to make an uninstaller? (From: Conor Schutzman <email@hidden>)
 >Re: Packages - how to make an uninstaller? (From: Stephen Kay <email@hidden>)

  • Prev by Date: Re: Packages - how to make an uninstaller?
  • Next by Date: Re: Packages - how to make an uninstaller?
  • Previous by thread: Re: Packages - how to make an uninstaller?
  • Next by thread: Re: Packages - how to make an uninstaller?
  • Index(es):
    • Date
    • Thread