Delete file in inno setup

Does anyone have an example of deleting a file using inno setup?
Who is Participating?
2266180Connect With a Mentor Commented:
something like this?
Type: files; Name: "path to file\filename.extension";
Type: files; Name: "path to file\*"; // all files

Open in new window

weimhaAuthor Commented:
I want to do it doing an install.  I've had to change the name of a file.  In my inno setup file I am going to add the new file, but I also need to delete the old file.
mirtheilConnect With a Mentor Commented:
Use [InstallDelete].  It is the same format as [UninstallDelete].  
weimhaAuthor Commented:
It worked great.  Thank you.
All Courses

From novice to tech pro — start learning today.