我有这个问题:在安装程序部分我有这个;
Section "Start Menu Shortcuts"
SetShellVarContext current
CreateDirectory "$SMPROGRAMS\myProgram"
CreateShortCut "$SMPROGRAMS\myProgram\myProgram.lnk" "$INSTDIR\myProgram.exe"
CreateShortCut "$SMPROGRAMS\myProgram\Uninstall myProgram.lnk" "$INSTDIR\myProgram-Uninstall.exe"
SectionEnd
Section "Desktop Shortcut"
SetShellVarContext current
CreateShortCut "$DESKTOP\myProgram.lnk" "$INSTDIR\myProgram.exe"
SectionEnd
它工作正常,我有桌面上的图标和图标加上开始\程序...树上的卸载图标
卸载程序部分是这样的:
SetShellVarContext current
Delete "$DESKTOP\myProgram.lnk"
Delete "$SMPROGRAMS\myProgram\myProgram.lnk"
Delete "$SMPROGRAMS\myProgram\Uninstall myProgram.lnk"
RMDir "$SMPROGRAMS\myProgram"
并且桌面链接被删除,但没有链接的其他文件夹..有什么想法吗?
存储的文件夹是这个(我在win 7 64位):
C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs