Archive: Uninstall ... many files


Uninstall ... many files
Hi there,

I already have used the search-function and it seems that the only solution for my problem is an INI-file or manual entering.

I want to create an installer for an application, which includes 238 small files :-)

I'm installing it via:


SetOutPath "$PROGRAMFILES\AppName"
File /R subdirectory\*.*


Alright, I only want to uninstall the files, which have got installed.
AFAIK I can only do it that way:

DELETE "file1"
DELETE "file2"
...
DELETE "file237"
DELETE "file238"


Damn ... that would be much code.
Does anyone here still have an overview over the posting and could post a solution or link?

Best regards,
Tobias

Hi TobWen :)

AFAIK, nobody developped an automated process to remove only the installed files.. (I started to work on such a log system a while ago but there is still stuff to fix and I can't find some time to work on it.. ).

So you'll have to code it yourself :D

You might want to check these threads:

http://forums.winamp.com/showthread....hreadid=178773

http://forums.winamp.com/showthread....hreadid=146048


In your case you could write a function that performs a search in your input directory to log all the files and folders in an 'ini' file (relative paths). Then during the uninstallation, you just have to remove all the logged files, prepending the installation path defined at runtime.

I hope that helps :)

evilO/Olive