Data lost after installing a new version of CMS?

1. When uninstalling the old version of CMS, please choose to keep user data.

2. The installation path needs to be kept on the same path as the previous version.