Unfortunately, there is nothing that is guaranteed to work - that I am aware of. This is a problem that can be very difficult to stop and requires patience and diligence. Most of the repellant type products I have not heard very good results with.
If he is not neutered, this may help you a lot in your endeavors to keep him from urinating in the house. Unneutered males will urinate to mark their territory and advertise their availability. If left intact, it is almost impossible to keep some males from urinating in the house. You may want to consider a male belly band to control the problem - although it will do nothing to stop it. Here is a link to the product.
If he is already neutered or if neutering him is not possible, it helps to know the reason he is urinating in the house. This may be that he has never been completely housetrained (if this has been a problem more or less his whole life). If this is the case then I would go back to treating him like a puppy. A vigorous housetraining routine involving confinement when you are not able to watch him, in order to prevent accidents. This could be in a kennel when you are gone or you can do the umbilical cord technique where you tie the dog around your waist with a long leash. This way you can watch for any signs that the dog is going to go and get him outside. You should also have a set schedule of regular walks for him to go potty. Stay with him during these times to praise him for going in the right spot.
Other reasons might be separation anxiety, urinary tract infections, or other problems. A thorough physical exam with urinalysis is always recommended to rule out physical problems.
Be sure to clean up any favorite areas for urinating with a product made to neutralize urine odor. Otherwise there is a constant calling card left for your dog in that spot. My favorite products have been nature's miracle and odor disposers. Here is a link to these products.
I would also try leadership building techniques so that he doesn't believe, in his own little head, that it's his house and he'll go where he'd like. This involves basic obedience training - a class is probably the best option, requiring him to earn things by obeying a command prior to being fed, let outside, playing, or just about anything. It is basically a concept that makes them realize that nothing is free and they have to acquiesce to your authority. It is so easy to just spoil the adorable little dogs that we treat them like they are little kings or queens. They can definitely pick up on this quickly and decide that they are the boss of us instead of visa versa. Just by turning the tables on them a bit by requiring them to "earn" things, feeding meals instead of leaving food out all of the time, not allowing free access to toys all of the time, and not allowing the dog to sleep in the bed (at least for awhile) can make them reassess who is the boss.
You may also want to use a trick that takes advantage of a dog's instinct to not urinate or defecate where they eat and sleep by feeding meals in "favorite" spots - after using the odor neutralizers. This can help them to stop using that spot.
If you would like additional information, just reply.
_______________If this was helpful, please click ACCEPT________________