Archive: Uninstall Leaves leftover folders.


Uninstall Leaves leftover folders.
Hello, im making an installer for a new version of PVK (for half life its a modification) And when I tested uninstalling it, it leaves behind 8 subfolders, and various files inside of them.

I would really like it to delete the subfolders, and its main folder completly, so there is nothing left.

(Also at the install location screen, it says the required space is 131mb when its really 70mb)

Thanks! Ive attached the script for someone that would be able to help me. Im rather new at this and trying hard to grasp it. :igor:


I think you need to try RMDir with the /r option to remove everything.

RMDir

[/r|/REBOOTOK] directory_name
Remove the specified directory (which should be a full path). Without /r, the directory will only be removed if it is completely empty. If /r is specified, the directory will be removed recursively, so all directories and files in the specified directory will be removed.


Ah wow, RMDir /r "$INSTDIR\" worked perfectly. Thanks alot!

Im still having a problem of it detecting how much space is required, its saying 188.4MB and the folder with the contents is really only 124MB. Compressed with LZMA its 38.9MB. With nothing checked it says 122MB required.

Also having a problem of its install options, say I select only PVK 2.31
http://img.photobucket.com/albums/07...K-G2/inst1.jpg

Then proceed to install, it will still install grogbot (Grogbot folder), metamod, and amx (Addons folder). Even though I only selected PVK 2.31! O_o


If I correct have a look at

AddSize

this way you can select the current session size in kilobytes


Ok thanks I will, How about the install options problem though? :P


*edit* sorry, somehow double posted


Originally posted by HaVoK-G2
Ok thanks I will, How about the install options problem though? :P
Sorry I missed that point

Take a look SectionSetFlags

SectionSetFlags ${Section1} "1"

Will set a tick in the box for you.

The ticks work fine, its when a box isnt checked, It will still install the unchecked items.


Could you post the cost in question and I'll take a look.


sorry "code"


Its in my first post attached avery :) But heres the latest one:


.


okay I think I know what the problem is.

Your .onInit is at the start of your application and therefore the Sections have not been defined, by moving the .onInit to the end you can set the sections up.

I've upload an example and made the third opt not selected. I've removed all the files and had to make a few changes to the installation just so the example will work

Does this answer your question?


Oi Still doesnt work, oh well.. theyll just have to install amx and metamod ;P