Uninstaller only runs once

13 views
Skip to first unread message

Jamie

unread,
Oct 1, 2015, 6:26:17 PM10/1/15
to The Luggage
I've created a simple pkg that uses rm to delete all the files installed.  After running some tests, it seems this uninstall pkg only works the first time.  

Run installer - result, files installed
Run uninstaller - result, files removed
Run installer - result, files installed
Run uninstaller - result, files NOT removed

Any idea what's going on?

Jamie

unread,
Oct 1, 2015, 6:49:06 PM10/1/15
to The Luggage
It looks like installer is recognizing that an install already happened and is tagging this as an upgrade.  Is there a way to override this?

Vaughn Miller

unread,
Oct 2, 2015, 8:28:26 PM10/2/15
to the-l...@googlegroups.com
The package is setting a receipt.  When you run it a second time, installer correctly sees that it is already installed.  If you want to run it again you can remove the receipt with the pkgutil command.

Vaughn Miller
Desktop Engineer
Lafayette College
--
You received this message because you are subscribed to the Google Groups "The Luggage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to the-luggage...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages