Archive: Removing Reg keys on uninstall with Vista


Removing Reg keys on uninstall with Vista
Hi
I'm hoping someone can help me here, I'm very new to Nsis and just trying to edit an installer so it will now support Vista as well as XP but have run into a problem. With my XP installer it seems to work fine when removing a reg key for a context menu ive added but with vista it wont remove the context menu item aka not removing the reg key. have anyone had this probelm before maybe?

Code:

Install
WriteRegStr HKLM "Software\CLASSES\*\shell" "" ""
WriteRegStr HKLM "Software\CLASSES\*\shell\AIToolkit" "" ""
WriteRegStr HKLM "Software\CLASSES\*\shell\AIToolkit\command" "" "$\"${INSTDIR}\AIToolkit.exe$\" $\"%L$\" $\"context$\""

Uninstall
DeleteRegValue HKLM "Software\CLASSES\*\shell\AIToolkit" "command"
DeleteRegValue HKLM "Software\CLASSES\*\shell" "AIToolkit"


Thanks!!!


try

DeleteRegKey HKLM "Software\CLASSES\*\shell\AIToolkit"