?
Solved

Delete file in inno setup

Posted on 2008-06-23
4
Medium Priority
?
4,196 Views
Last Modified: 2010-04-21
Does anyone have an example of deleting a file using inno setup?
0
Comment
Question by:weimha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
2266180 earned 1000 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 1000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

800 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