diff options
author | kh1 <karsten.heimrich@digia.com> | 2012-11-01 12:53:53 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2012-11-01 15:06:09 +0100 |
commit | e11d59357f48c84cef38d204999bdb2aa1d80152 (patch) | |
tree | a35188b568d145840b076248e2b3d23b956e3a9e /src/libs/installer/createshortcutoperation.cpp | |
parent | 90ecea22156bd5e2b8c360b6a13cc7f4d98d705d (diff) |
Force start menu cache update.
Task-number: QTCREATORBUG-8145
Seems to be a known issue on at least Windows Vista.
Change-Id: Ib3b6a405f704da991773cbe1ef3c16c1f763959c
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
Diffstat (limited to 'src/libs/installer/createshortcutoperation.cpp')
-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) |