How to add a message box when i want to quit the .exe file

hi,
i wonder how can i add a message box to prompt the user to confirm whether they really want to quit the .exe file … a yes or no option…

i know how to exit the .exe file by just adding fscommand…but how to add this special features?