Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 179061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:20:24+00:00 2026-05-11T14:20:24+00:00

I am new to Inno Setup. Stuck on one issue ~ how to configure

  • 0

I am new to Inno Setup. Stuck on one issue ~ how to configure the uninstall piece to remove all files, folders, subfolders, and even new files/folders etc. created by application (in other words, a 100% removal of the application and associated files).

I hunted around here and also on their forum, and came up empty. Can anyone point me to a document, FAQ etc. regarding how to do this?

UPDATE

Thanks for all the feedback so far (very awesome). So it looks like I can delete everything using the {app}*.* directive in the uninstall section. Also looks like everyone is advising against it. So the question now becomes (I am wondering if this should be a totally new question) is there a way during the uninstall that we can ask the user ‘Do you want to remove all project files associated with this application?’ and if they answer YES, to run the uninstall {app}*.* piece?

Thanks –

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:20:25+00:00Added an answer on May 11, 2026 at 2:20 pm

    You should probably have made this a totally new question, but I’ll answer your updated question here as well. Have a look at the section ‘Pascal Scripting: Uninstall Code’ in the Inno Setup Documentation.

    To give an example how to conditionally delete data files as part of the uninstallation process:

    [Code]  procedure DeleteBitmaps(ADirName: string); var   FindRec: TFindRec; begin   if FindFirst(ADirName + '\*.*', FindRec) then begin     try       repeat         if FindRec.Attributes and FILE_ATTRIBUTE_DIRECTORY <> 0 then begin           if (FindRec.Name <> '.') and (FindRec.Name <> '..') then begin             DeleteBitmaps(ADirName + '\' + FindRec.Name);             RemoveDir(ADirName + '\' + FindRec.Name);           end;         end else if Pos('.bmp', AnsiLowerCase(FindRec.Name)) > 0 then           DeleteFile(ADirName + '\' + FindRec.Name);       until not FindNext(FindRec);     finally       FindClose(FindRec);     end;   end; end;  procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); begin   if CurUninstallStep = usUninstall then begin     if MsgBox('Do you want to delete all data files?', mbConfirmation,         MB_YESNO) = IDYES      then begin       DeleteBitmaps(ExpandConstant('{app}'));     end;   end; end; 

    But depending on the amount of stuff you need to clean up you might be better off to create a special helper program that is part of the installation, and which can be executed during the uninstallation of the app (using an entry in the [UninstallRun] section).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 85k
  • Answers 85k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Does your arraylist contain custom data type (i.e. your own… May 11, 2026 at 5:08 pm
  • Editorial Team
    Editorial Team added an answer You can call the php exec function to execute whoami:… May 11, 2026 at 5:08 pm
  • Editorial Team
    Editorial Team added an answer href and onclick both get fired when you click an… May 11, 2026 at 5:08 pm

Related Questions

I need a data structure that always holds the n largest items inserted so
This is similar to Invoking a method using reflection on a singleton object but
The comments here got me thinking. If you are a new Developer without a
I am new to C# and am doing some work in an existing application.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.