[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4406
  • Last Modified:

Delete file in inno setup

Does anyone have an example of deleting a file using inno setup?
0
weimha
Asked:
weimha
  • 2
2 Solutions
 
2266180Commented:
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
 
mirtheilCommented:
Use [InstallDelete].  It is the same format as [UninstallDelete].  
0
 
weimhaAuthor Commented:
It worked great.  Thank you.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now