Proper install/uninstall when running on iOS device.

- Install the app only if it is not installed or fullReset is requested.
- Uninstall the app only if fullReset is requested.