1. window api: `appinstalled` event