Installing new version of an extension

Also you can’t use any code which should be in the old version to detect because the old version is already installed. We can only put additional code in the new version to check.