Archive: Problem with deleting shortcuts in Vista


Problem with deleting shortcuts in Vista
Hello!

I've a simple (as it seems) question...
I'm creating a shortcuts in my install by CreatShortcut function:

***
CreateShortCut "$SMPROGRAMS\$StartMenuGroup\$(ProgramName).lnk" "$INSTDIR\${PROGRAM_EXE_NAME}"
**

and kill it in uninstall:

***
Delete "$SMPROGRAMS\$StartMenuGroup\$(ProgramName).lnk"
***

Shortcut is creating in folder "C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs"

But Windows Vista creates a copy in folder "C:\ProgramData\Microsoft\Windows\Start Menu\Programs" and uses shortcut from this folder.
Shortcut is not deleting after uninstalling.

QUESTION: I must delete it in my script or NSIS have a stantard support for Vista shortcut uninstalling?
Thanks for support.


http://www.google.de/search?q=NSIS+%...cuts+%2B+Vista :rolleyes:


Thanks for help!