Inno Setup: Delete folder with Task function -
how can delete folder using task function must executed when hitting next button in additional task panel?
thanks in advanced.
to check whether task selected can use istaskselected
function. so, meet requirement can write this:
[setup] appname=my program appversion=1.5 defaultdirname={pf}\my program [tasks] name: deletefolder; description: "delete folder"; groupdescription: "group description:" [code] function nextbuttonclick(curpageid: integer): boolean; begin // allow setup turning next page result := true; // if on additional tasks page , task selected, then... if (curpageid = wpselecttasks) , istaskselected('deletefolder') // here call removedir or deltree function depending on needs end;
Comments
Post a Comment