Skip to content
⌘ NSIS Forum Archive

SHDeleteEmptyKey

2 posts

flyakite#

SHDeleteEmptyKey

Alright I want to use DeleteRegKey /ifempty but it only takes into account no subkeys under the main key, and does not account for existing values in the key.

I think it would be nice if this was an option added to NSIS sometime in the future, maybe a different switch or something?

Anyway though, until then in another thread on here and through MSDN, SHDeleteEmptyKey was listed as a solution. However not being fluent in any actual programming languages, I can't actually figure out how to make the System::Call for this.

If anyone could help I would greatly appreciate it.

Thanks.
Instructor#
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


I didn't use SHDeleteEmptyKey call, because it is a function from the IE library - shlwapi.dll (can cause problems with earlier versions of windows)