Results 1 to 2 of 2

Thread: Inno5 Not Deleting All Files After Uninstalling App!

  1. #1

    Thread Starter
    Frenzied Member arpan_de's Avatar
    Join Date
    Oct 2005
    Location
    Mumbai, India
    Posts
    1,394

    Question Inno5 Not Deleting All Files After Uninstalling App!

    Using Inno5, I created an installation package for a VB6 app which includes an uninstallation feature as well but when I uninstall the app (either by clicking the uninstall icon or by opening Add/Remove Programs in the Control Panel), all the files that are being used by the app (along with the folder in which the app resides in C:\Program Files\) don't get deleted from the machine!

    How do I ensure that when the app is uninstalled, all the files along with the folder in which the app exists get completely deleted from the users' machine when my app is uninstalled?

    Also when an app is installed, usually the first (or maybe the second) step asks user whether he agrees with the terms & conditions for which he is provided 2 OptionButtons - I agree & I don't agree & users can proceed with the installation if & only if the I agree OptionButton is selected by the user. Can this feature be added during the installation process using Inno5?


    ARPAN

    IF YOU HAVE AN APPLE & I HAVE AN APPLE AND WE EXCHANGE THE APPLES, THEN YOU & I WILL STILL HAVE ONE APPLE BUT IF YOU HAVE AN IDEA & I HAVE AN IDEA AND WE EXCHANGE OUR IDEAS, THEN EACH OF US WILL HAVE TWO IDEAS!

    NOTHING IS IMPOSSIBLE IN THIS WORLD.....EVEN THE WORD IMPOSSIBLE SAYS I'M POSSIBLE!

    PRACTICE MAKES A MAN PERFECT BUT NOBODY IS PERFECT; SO WHY PRACTICE?

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Inno5 Not Deleting All Files After Uninstalling App!

    in the setup section of your script, you should be able to put a directive "LicenseFile"

    It may look like

    LicenseFile=EULA.TXT

    where EULA.TXT is the file that will be displayed for them to read and agree to. If you set this directive, then INNO will automatically add this page to the setup, and force them to click the accept option before continuing the install.

    I personally use INNO 4, but I imagine they have not changed this in INNO 5

    Also, about uninstalling files. INNO should by default uninstall any files in the [files] section of your app when you uninstall the program. If you are talking about other files that maybe your app creates during its normal use or whatever, then you need to specify to delete them.

    for example, lets say your app generates files with extensions of .abc, and when uninstalled you want them removed, you would want to put this in your setup
    [UninstallDelete]
    Type: files; Name: "{app}\*.abc"

    BUT BE CAREFUL!!!!

    you don't want to put anything in that will delete all files in the directory
    do not put
    Type: files; Name: "{app}\*.*"
    and think it will be a good solution.

    Lets say the user installs your app to the system32 directory under windows

    Sure they would be a complete idiot for doing so, but that doesn't mean it doesn't happen. If they uninstalled your app, it would delete their system32 directory and totally crap out their computer.

    Inno's setup help file even has a similar warning in its documentation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width