This can also be used to get a fresh Minecraft installation (it will keep your saves and texture packs, but not your mods.).
Finally, click 'Done' and login with your Minecraft credentials. Click on 'Options' which is next to the username textbox, then press 'Force update!' on the 'Launcher Options' window.
To update Minecraft, launch the Minecraft Launcher.