Solved

Delete file in inno setup

Posted on 2008-06-23
4
3,954 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:
2266180 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…

856 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