1

How can I backup easily all files (in all subdirectories unlimited depth) which already exists in destination directory for installation, and how can I restore all backuped files by uninstallation?

Thanks in advance.

[Files]
Source: "setupData\*"; DestDir: "{app}"
Martin Prikryl
  • 167,268
  • 50
  • 405
  • 846

1 Answers1

1

Backup: In yours [Files] section entry, use the external, recursesubdirs, skipifsourcedoesntexist and uninsneveruninstall flags. See Backup files and restore them on uninstall with InnoSetup?

Restore: See also the Backup files and restore them on uninstall with InnoSetup? To restore a directory tree, you will need DirectoryCopy function from Inno Setup: copy folder, subfolders and files recursively in Code section.

Community
  • 1
  • 1
Martin Prikryl
  • 167,268
  • 50
  • 405
  • 846
  • Thanks for your help, unfortunately the Flag combination doesn't work for me, bud the DirectoryCopy has helped me cope. – greenforest Mar 16 '17 at 19:30