Run a script on package install, and deactivate


#1

Is there a way to run a shell script automatically when a package is installed? I want to try and make a custom icon package. I have the shell scripts safely installing and uninstalling the icon, but I’d like a nice way to trigger them.

Conversely, when someone disables or uninstalls the package, it would be nice to have it run the uninstall script. The other obvious way would to be implement these as commands.


#2

This is a duplicate of this previous topic:

We like to unify similar discussions under one topic so that people don’t have to read a bunch of different threads to get the whole story. Please continue the discussion there. I’ll be closing this topic as duplicate.


#3

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.