Perform task only once when plugin get installed

Is it possible to perform some tasks only once, right after the plugin installed?


You could perform tasks on plugin create event (which is triggered every time plugin is installed or first opened after Ps was launched if I’m not mistaken) and store some flag to persistent storage. If flag is there, skip task execution