私のインストーラーuninstall.exeはスタートメニューエントリを削除できません。以下にコードコードの一部がありますが、どこが間違っているか教えてくれます。
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY}
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "IREC "
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory "$SMPROGRAMS\${COMPANYNAME}\$startmenufolder"
CreateShortCut "$SMPROGRAMS\${COMPANYNAME}\$startmenufolder\$(^Name).lnk" "$INSTDIR\eclipse\iREC.exe"
CreateShortcut "$SMPROGRAMS\${COMPANYNAME}\$startmenufolder\Uninstall $(^Name).lnk" "$INSTDIR\uninstall.exe"
SetOutPath "$INSTDIR\eclipse"
CreateShortCut "$DESKTOP\$(^Name).lnk" "$INSTDIR\eclipse\iREC.exe"
!insertmacro MUI_STARTMENU_WRITE_END
DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$registry"
Delete "$SMPROGRAMS\${COMPANYNAME}\$startmenufolder\Uninstall $(^Name).lnk"
Delete "$SMPROGRAMS\${COMPANYNAME}\$startmenufolder\$(^Name).lnk"