While performing a factory reset, only the data portion is wiped. So your software update won't be deleted.