diff options
-rw-r--r-- | src/libs/installer/createshortcutoperation.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libs/installer/createshortcutoperation.cpp b/src/libs/installer/createshortcutoperation.cpp index 0eebc9bcd..7c181290b 100644 --- a/src/libs/installer/createshortcutoperation.cpp +++ b/src/libs/installer/createshortcutoperation.cpp @@ -117,6 +117,16 @@ static bool createLink(const QString &fileName, const QString &linkName, QString ppf->Release(); } psl->Release(); + + PIDLIST_ABSOLUTE pidl; // Force start menu cache update + if (SUCCEEDED(SHGetKnownFolderIDList(FOLDERID_StartMenu, 0, 0, &pidl))) { + SHChangeNotify(SHCNE_UPDATEDIR, SHCNF_IDLIST, pidl, 0); + CoTaskMemFree(pidl); + } + if (SUCCEEDED(SHGetKnownFolderIDList(FOLDERID_CommonStartMenu, 0, 0, &pidl))) { + SHChangeNotify(SHCNE_UPDATEDIR, SHCNF_IDLIST, pidl, 0); + CoTaskMemFree(pidl); + } #else Q_UNUSED(arguments) Q_UNUSED(workingDir) |