Skip to content
⌘ NSIS Forum Archive

DeleteRegKey vs. ${registry::DeleteKey}

2 posts

nsnb#

DeleteRegKey vs. ${registry::DeleteKey}

DeleteRegKey is part of part of the NSIS and is documented in the NSIS User Manual:

${registry:😁eleteKey} is part of the Registry plugin.

The registry plugin seems to have more functionality and higher resolution in terms of registry operations.

However, for a single key deletion operation, one needs to write several lines of code: open, check for error, delete key, close, unload.

DeleteRegKey, on the other hand, does it all in a single line of code.

In the specific case in which only one registry key deletion operation is required, is there any benefit to preferring ${registry:😁eleteKey} over DeleteRegKey?
Animaether#
in short: no
in medium: no. In fact, your installer will be bigger and have a plugin dependency that it does not need to have.
in long: noooooooooooooooooooooooooooooooooooooooooooooooooooooooo (this will make sense to those who watch ZP)