Problem Upgrading Licensed Orchestrator

The company has Licensed Orchestrator v2017.1.6547 and we want to upgrade to the latest version (2017.1.6682) and be able to update to 2018.2.
We followed the guide (Updating Using the Scripts) but script is not working.

After I manually delete the folders that generate the error (which I should not do), the script completes the installation but the orchestrator login page does not load.

image