Skip to content
⌘ NSIS Forum Archive

Uninstall installed files

7 posts

tieum#

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
Afrow UK#
You should have searched the Wiki first.


-Stu
Comm@nder21#
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.
Afrow UK#
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
aleksanteri#
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 🙂