With thanks to pacman and this-is-me, I changed the code so psservice is no longer needed. So all instances of psservice have been removed from the script. The upgrade part of the installer will ask you if you would like to remove it if it is found. The check status code isn't as robust anymore, it will tell you if the service exists, is running or not running or if there is an error checking the service. Unfortunately right now if access is denied, it just says the service is not running. I als