How to add two functions in Inno-setup

How to add two identical functions to inno-setup.I means, for example, if I want to delete a folder and everything inside, I use:

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

to delete everything inside "A". But now I want to delete folder "B" using folder "A"

I know one way to do something like this:

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

I want to know if there is another way to do this on one line, something like delete 'A+B'that will remove both "A" and "B".

Someone please help.

Thanks!

0
source share

Source: https://habr.com/ru/post/1609628/


All Articles