Solved

Delete file in inno setup

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Convert MS Word document to a PDF file 9 82
vmware vcenter install/upgrade issue 6 121
Software installation of SCCM client 14 80
Delphi problems to abort a printjob 9 20
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

810 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