- NSIS Discussion
- Uninstall Leaves leftover folders.
Archive: Uninstall Leaves leftover folders.
HaVoK-G2
8th September 2004 06:14 UTC
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:
b_avery@yahoo.c
8th September 2004 10:02 UTC
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
8th September 2004 17:58 UTC
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
Coppermill
8th September 2004 18:25 UTC
If I correct have a look at
AddSize
this way you can select the current session size in kilobytes
HaVoK-G2
9th September 2004 00:44 UTC
Ok thanks I will, How about the install options problem though? :P
HaVoK-G2
9th September 2004 00:45 UTC
*edit* sorry, somehow double posted
b_avery@yahoo.c
9th September 2004 10:56 UTC
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
9th September 2004 18:07 UTC
The ticks work fine, its when a box isnt checked, It will still install the unchecked items.
b_avery@yahoo.c
9th September 2004 18:20 UTC
Could you post the cost in question and I'll take a look.
b_avery@yahoo.c
9th September 2004 18:22 UTC
sorry "code"
HaVoK-G2
10th September 2004 04:07 UTC
Its in my first post attached avery :) But heres the latest one:
HaVoK-G2
10th September 2004 04:11 UTC
.
b_avery@yahoo.c
10th September 2004 08:32 UTC
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?
HaVoK-G2
10th September 2004 20:51 UTC
Oi Still doesnt work, oh well.. theyll just have to install amx and metamod ;P