Delete file in inno setup

Does anyone have an example of deleting a file using inno setup?
Who is Participating?

Improve company productivity with a Business Account.Sign Up

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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.