1

My app writes log files in application data folder of every local account. I'd like to delete them all during uninstallation. Seems I can't just add a UninstallDelete section like this:

Type: filesandordirs; Name: "{sd}\Users\\*\AppData\Roaming\MyLogFolder"

Or can I iterate over all user accounts and delete my log folders one by one. I just have no idea how to do it in Inno Setup script. Thanks!

Martin Prikryl
  • 167,268
  • 50
  • 405
  • 846
leochou0729
  • 175
  • 1
  • 12

1 Answers1

1

You definitely cannot use wildcards in directory components of a path.

You have to write a code to delete the logs from individual profiles, one by one. For an example code, see:
Inno Setup Create individual shortcuts on all desktops of all users

Martin Prikryl
  • 167,268
  • 50
  • 405
  • 846