Hello,

Can someone help me create a messagebox that will ask the user a question.

If Yes then Delete files if No skip.

Currently i have the following: But the messagebox never shows up..
I think because i dont know how to call this from the UnInstallDelete section.

VB Code:
  1. [Code]
  2.   // Ask the user a Yes/No question
  3. begin
  4.   if MsgBox('Would you like to keep your Settings?', mbConfirmation, MB_YESNO) = IDNO then
  5.   begin
  6.         // Delete all files and directories
  7.         // but leave the directory itself
  8.         DelTree('{userappdata}\MySoft', True, True, True);
  9.  
  10.   end;
  11.  end.