Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to refresh Desktop within MSI


2 replies to this topic

klee777

klee777
  • Full Members
  • 21 posts

Posted 12 April 2006 - 21:28

Hi, I saw someone replied how to refresh Desktop using C/C++, such as, SHGetSpecialFolderLocation() and SHChangeNotify().
Is there any way to do the same within "Basic MSI"?

TIA.

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 13 April 2006 - 11:13

Just launch an EXE custom action with an EXE that sends the appropriate windows message. I believe I have such an exe stored somewhere, will try to dig it up when I get to the computer that has the files.
Regards
-Stein Åsmul

klee777

klee777
  • Full Members
  • 21 posts

Posted 13 April 2006 - 14:16

Hello Stein,
Thank you for your support. Well, I can create the EXE so please do not bother to send it to me. As you already replied to my other question, I had a problem using an EXE, so I was reluctant to use another EXE as a custom action. That's why I posted it yesterday to find if there is another way to accomplish refreshing the desktop without using an EXE as a custom action.

Thank you again for your time and advice.
Kyle