Skip to content
⌘ NSIS Forum Archive

Uninstall Leaves leftover folders.

14 posts

HaVoK-G2#

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. 🧟
b_avery@yahoo.c#
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.
HaVoK-G2#edited
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


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
Coppermill#
If I correct have a look at

AddSize

this way you can select the current session size in kilobytes
b_avery@yahoo.c#
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.
HaVoK-G2#
The ticks work fine, its when a box isnt checked, It will still install the unchecked items.
HaVoK-G2#
.
b_avery@yahoo.c#
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?