0

I need to delete files from hard disk with Inno Setup.

We need to remove an old app version (not installed with Inno Setup), it was installed manually last year, and after remove old one, install the new one.

Some idea, Inno Setup script example? Thanks.

Martin Prikryl
  • 167,268
  • 50
  • 405
  • 846
  • You should give more details about old app and what you want to do. Does it leave any certain traces on machine like making specific registry changes or creating any specific file or folder in certain places? You have 2 major steps to do what you want: 1- Find the old app and its traces 2- Give what you found to Inno for deleting. In which step exactly you have problem? – Armin Taghavizad Mar 18 '20 at 13:05

1 Answers1

0

Use [InstallDelete] section:

[InstallDelete]
Type: files; Name: "{app}\*"

For more complicated cases, see also:
Inno Setup - Delete old/obsolete files on update

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