I want that whenver my application is installed it should start automatically (no problem if it runs in the background), and it should run (and come to foreground) also whenever someone tries to uninstall it.

My application is dependent on a few files and I am unable to understand that where and how to use these three options (FR, RI, RR) in the pkg file.

Can anybody plz help me to solve this issue?

Thanks in advance.