How to add two same function in Inno-setup

178 views Asked by At

How to add two same function in inno-setup.I mean for example if I want to delete a folder and and everything inside it I use :

DelTree(ExpandConstant('{userdocs}\A'), True, True, True)

to delete everything inside 'A'.But now I want to delete folder 'B' with Folder 'A'

I know one way to do that something this:

  DelTree(ExpandConstant('{userdocs}\Games\A'), True, True, True);
  DelTree(ExpandConstant('{userdocs}\Games\B'), True, True, True);

I want to know is there any other way to do this this in one line something like delete 'A+B' that will delete both 'A' And 'B'.

Anyone please help.

Thanks!

0

There are 0 answers