Delete file in inno setup

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

Open in new window

0
 
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.
0
 
mirtheilConnect With a Mentor Commented:
Use [InstallDelete].  It is the same format as [UninstallDelete].  
0
 
weimhaAuthor Commented:
It worked great.  Thank you.
0
All Courses

From novice to tech pro — start learning today.