I have a folder (database folder) that I would like to keep after uninstall (for saving users data and future reinstall), I have flagged top folder to never uninstall as well as all its files (and folders?) whether empty or not yet Inno Setup deletes these empty sub-folders (which I want to keep) during uninstall. Do I have to declare all the sub folders I want to keep or is their a flag I am missing?
[Dirs]
Name: "{app}\db\data"; Flags: uninsneveruninstall; Permissions: everyone-full
[Files]
Source: "D:\sesam\db\data\*"; DestDir: "{app}\db\data"; Flags: recursesubdirs createallsubdirs uninsneveruninstall; Check: CheckNotExists(ExpandConstant('{app}\db\data'))
Before uninstall and after:
As you can see it only keeps "non empty" folders.

