MessageBox("Setup is attempting to overwrite:||%SystemDirectory%CTL3DV2.DLL|(%SDate% %STime% %SLen% Bytes)||with:||%CurrentDrive%\CTL3DV2.DLL|(%DDate% %DTime% %DLen% Bytes)||Are you sure you wish to overwrite this file ?", "%Caption%", MB_YESNO, MB_ICONQUESTION)
MessageBox("Setup can install a file association|for File Manager with .INF files.||Do you wish to install this association ?", "%Caption%", MB_YESNO, MB_ICONQUESTION)
MessageBox("The %Application% software is about to be removed from your machine.||All files, directories and the appropriate Program Manager Group will be deleted.||Are you sure you wish to continue ?", "%Caption%", MB_YESNO, MB_ICONQUESTION)
IF %ERROR% == IDYES GOTO :DODELETE
SET %Message1% = "De-installation aborted - the %Application% software has not been deinstalled."
SET %Message2% = ""
DialogBox("OKBOX")
GOTO :END
:DODELETE
Delete("%InstallPath%*.*")
SET %Len% = Len("%InstallPath%") - 1
SET %InstallPath% = Left("%InstallPath%", %Len%)
RmDir("%InstallPath%")
Delete("%WindowsDirectory%BUILDER.INI")
Delete("%WindowsDirectory%COMPRESS.EXE")
Delete("%WindowsDirectory%COMPRESS.TXT")
DeleteGroup("%Application%")
SET %Message1% = "The %Application% software has been successfully de-installed."
SET %Message2% = "To re-install the %Application% software you should re-run this installation program."
DialogBox("OKBOX")
GOTO :END
:NOTINSTALLED
SET %Message1% = "The %Application% software has not been correctly installed."
SET %Message2% = "The De-installation procedure is unable to de-install the %Application% software."