Archive: DeleteRegKey vs. ${registry::DeleteKey}


DeleteRegKey vs. ${registry::DeleteKey}
DeleteRegKey is part of part of the NSIS and is documented in the NSIS User Manual:

${registry::DeleteKey} 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::DeleteKey} over DeleteRegKey?


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)