Archive: Uninstall installed files


Uninstall installed files
Is there a way to specify to uninstall only installed files instead of providing a list of installed files in the uninstall section?

Thanks,


Tieum


You should have searched the Wiki first.
http://nsis.sourceforge.net/Uninstal...nstalled_files

-Stu


nope, the installer currently just does the same thing as the installer:
executing your script commands.

you need so specify the files by hand.

but you can code some routines that parse config files your installer created. and based on them you'll uninstall.


Could be a nice feature to have this automated!


The idea of NSIS is to be as customisable as possible. Something like this may not be implemented because if you can support it via already existing NSIS code, then why should built in support be needed?

-Stu


I don't make your point.

This feature would be nice and easy cuistomization.


I would like this kind of feature too... I would like to have it like:


Section "Some section"
File "*.*"
SectionEnd


and record the installed files to a special var, i.e. $INSTALLEDFILES and then:


Section "un.Some section"
Delete "$INSTALLEDFILES"
SectionEnd


Or like

Section "some section"
File "*.*"
Record "*.*" $R0
SectionEnd

Section "un.some section"
Delete $R0
SectionEnd


would come in handy

Instead of deleting all files and displaying a warning message :)