This should be on line 46 after tapping 'yes' because from that point the app is installed. everything else after that is just UI fluff.