Nsis does not uninstall the Start Menu folder
Hello,
Nsis does not uninstall the Start Menu folder. Here there my code:
!define NomeSpazi "xxx xxx"
Var Cartella_StartMenu
...
!insertmacro MUI_STARTMENU_WRITE_BEGIN MenuAvvio
CreateDirectory "$SMPROGRAMS\$Cartella_StartMenu"
...
!insertmacro MUI_STARTMENU_WRITE_END
...
Section un.
...
!insertmacro MUI_STARTMENU_GETFOLDER MenuAvvio $0
Delete "$SMPROGRAMS\$0\${NomeSpazi}.lnk"
Delete "$SMPROGRAMS\$0\Help.lnk"
Delete "$SMPROGRAMS\$0\Readme.lnk"
RMDir "$SMPROGRAMS\$0"
...
SectionEnd
This code does not remove any shortcuts created.
How to fix it ?