Fix Error 2502 and 2503 while installing or uninstalling