Archive: Administrative folder appears on Vista


Administrative folder appears on Vista
I'm experiencing a weird issue. I have 2 installer scripts, and one works perfectly when uninstalling, while the other always makes the Administrative Tools appear in the Start Menu after uninstalling. It's supposed to be hidden and it's not a permanent thing, it goes away after some time or when I switch users. The weird thing is that both installers have similar uninstall sections and yet only one produces this behaviour. I've experienced this on both Vista x86 and x64, but I -think- XP (I have no way to confirm right now) is unaffected.

Has anyone else run into this?

Here's the uninstall snippet from the offending script:


Delete "$INSTDIR\uninst.exe"

RMDir /r "$SMPROGRAMS\Gorgon\Gorgon Examples"
RMDir "$SMPROGRAMS\Gorgon"

RMDir /r "$INSTDIR\Resources"
RMDir /r "$INSTDIR\PlugIns"
RMDir /r "$INSTDIR\Examples"
RMDir "$INSTDIR"

DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
SetAutoClose true

What exactly are you deleting in the registry? Try adding a call to RefreshShellIcons after deleting the shortcuts, it might help.


The call to RefreshShellIcons worked like a charm. Thanks.