Solved

Delete file in inno setup

Posted on 2008-06-23
4
3,842 Views
Last Modified: 2010-04-21
Does anyone have an example of deleting a file using inno setup?
0
Comment
Question by:weimha
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
ciuly earned 250 total points
ID: 21849683
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
 

Author Comment

by:weimha
ID: 21850025
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
 
LVL 18

Assisted Solution

by:mirtheil
mirtheil earned 250 total points
ID: 21850991
Use [InstallDelete].  It is the same format as [UninstallDelete].  
0
 

Author Closing Comment

by:weimha
ID: 31469914
It worked great.  Thank you.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now