Archive: Advice On Better Ways To Do This? NSI Attached


Advice On Better Ways To Do This? NSI Attached
I'm trying to create an NSI package that deletes a number of registry entries and folders on the hard drive which have files and subfolders in them, some files MAY be in use.

The problem I'm having is that I can't seem to specify /R and /REBOOTOK at the same time, and /REBOOTOK doesn't seem to delete them when restarted. Any help is appreciated on how I can get the folders that may be in use to be deleted, or anything else to make this work better! :)

thanks guys


RMDir can't have both /R and /REBOOTOK, therefore you'll have to use Delete /REBOOTOK (works with wildcards) and use RMDir /REBOOTOK on an empty directory, or a directory that's about to become empty after a reboot.