Old 19th September 2007, 08:44   #1
SolemnSolitary
Junior Member
 
Join Date: Sep 2007
Location: Brighton
Posts: 1
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!!!
SolemnSolitary is offline   Reply With Quote
Old 19th September 2007, 09:36   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
try

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

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump