Skip to content
⌘ NSIS Forum Archive

Nsis does not uninstall the Start Menu folder

3 posts

Maxim30#

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 ?
Anders#
For all those people who find it more convenient to bother you with their question rather than to Google it for themselves.