Added mutex to the app and now inno setup can detect if it is openned