How to update app and keep data?

Is there a way to install app (in my case mobile banking), registrate with your credentials, and then install new version of that same app over the old version while keeping data intact?