I have a procedure DeleteTransferFolder
which is called during the install using BeforeInstall in Inno Setup.
I know the procedure is called because I have a couple of MsgBox messages that show. But the DelTree does not delete the specified folder and sub-folders.
Any thoughts ?
procedure DeleteTransferFolder();
begin
MsgBox('DeleteTransferFolder 1', mbInformation, MB_OK);
if (FileExists ('{userdesktop}\RemedyNotes 1.0\RemedyNotes Old.remno')) then
DelTree(ExpandConstant('{userdesktop}\RemedyNotes 1.0'), True, True, True);
MsgBox('DeleteTransferFolder 2', mbInformation, MB_OK);
end;