Self-Destructing PKGs/DMGs

alexz
New Contributor

Is it possible to create a DMG or a PKG which deactivates/destructs itself after installation? Otherwise is it possible to create a DMG/PKG that has a limited time to live after which it becomes unusable?

2 REPLIES 2

nessts
Valued Contributor II

it is unix you can create a launchdaemon and a corresponding script to do whatever you want whenever you want.

acdesigntech
Contributor II

or just rm -r /path/to/pkg as a post-flight.