You can try vaping as an alternative or chewing on some nicotine gum to prevent smoking.
If you want to succeed to quit smoking you can start the first day by keeping yourself busy with your activities. Do not get caught up in solitude so arise your desire to smoke again.
Look for more intense activities and make you forget to smoke like cycling, exercising, swimming etc. With a lot of activity and too dense time will make you more forget the desire to smoke because there is no time to do that.