PDA

Click to See Complete Forum and Search --> : Inno5 Not Deleting All Files After Uninstalling App!


arpan_de
Jan 19th, 2006, 06:34 AM
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?

kleinma
Jan 25th, 2006, 04:48 PM
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