Archive: SHDeleteEmptyKey


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.


http://forums.winamp.com/showthread....72#post1829872

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)