If you have any doubt within your head when quitting, you will fail. When I chose to quit, I chose with my whole body and mind. That is, it wasn't about willpower against my own inclinations. If it was, I would have failed.
But I may also have been helped by a few additional factors: The day after I quit, I also got very very sick. That knocked me off my feet for a couple of days, and probably got me through the first few days of the worst cravings (which felt like worms in my brain). Another thing I did was intentionally hang out at a cafe where there were other smokers whom I didn't know. I wanted to make sure I could be around people who smoked without failing.
My dad had never been able to quit smoking. I know how lucky I was to manage it.