View Full Version : Desktop Icon

07-19-2004, 04:55 AM
Hi @ all.

I have created two desktop icons in our installer and the icons are not correct. Our QA department has tested it on a clean windows system.

Fact is that IS creates the icon first and then the installer is copying the files to the target folder.

Is it possible to refresh the desktopicons after installation is finished?

Any ideas?

regards BugKiller

07-19-2004, 08:37 AM
I have found a working solution for this bug!

No problem. Here is my solution.

SHChangeNotify(134217728, 0, NULL, NULL);


08-04-2004, 06:44 AM
This is a bug too in InstallShield InstallScript Project.

Please fix this that i don't need my workaraound next time!

regards BugKiller

03-15-2005, 04:21 PM
Thanks for the great information on SHChangeNotify, to refresh icons.

This is how I used it in 10.5 Installscript.
Now I just need to see how to do this in Universal version.

// ----- DLL function prototypes -----
prototype shell32.SHChangeNotify(LONG, INT, INT, INT);

// in OnFirstUIAfter
UseDLL(WINSYSDIR ^ "shell32.dll");
SHChangeNotify(134217728, 0, NULL, NULL);
UnUseDLL(WINSYSDIR ^ "shell32.dll");
// you may want to include in the OnMaintUIAfter too.