Archive: The start menu shortcut doesnt refresh after re-installing on a different webport


The start menu shortcut doesnt refresh after re-installing on a different webport
Hi,
I am trying to re-install my application on a different webport after uninstalling it. I have a start menu shortcut 'Manage Server', as a link to this website.
However, when I re-install the application, it deletes the shortcut and re-creates it. But still, it picks the old webport in the url, and as a result, this shortcut doesnt display anything.
I was looking at an old thread between 'dajvid' and 'kichik'. and the final solution was to use the function NotifyRmDir after deleting the shortcut folder.
Here's the code for that function again:

!define SHCNE_RMDIR 0x010
!define SHCNF_PATH 0x01

Function NotifyRmDir
; Based on RefreshShellIcons By jerome tremblay - april 2003
System::Call 'shell32.dll::SHChangeNotify(i, i, t, i) v \
(${SHCNE_RMDIR}, ${SHCNF_PATH}, "directory to notify", 0)'
FunctionEnd

I have tried calling this function at the point before creating the shortcut (and after deleting it) in my NSIS code but it doesnt seem to work for me.
Any help/suggestion/comments would be most welcome.

Thanks
DeEpAk


just to add, the subject of the old thread is:

"Refreshing the program groups in the Start Menu "