0

我的安装程序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"
4

2 回答 2

0

你试过使用SetShellVarContext吗?

于 2013-02-12T10:08:00.657 回答
0
于 2013-02-12T12:01:39.797 回答