PDA

View Full Version : Applicatins directory - non user specific



been_1990
14th February 2013, 21:19
I want to get the directory to the startup programs on win menu, and using
QStandardPaths::standardLocations(QStandardPaths:: ApplicationsLocation).at(0) returns only the applications installed for current user:


C:\Users\[USERNAME]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs

as opposed to for all users (most programs are installed here):


C:\ProgramData\Microsoft\Windows\Start Menu\Programs

Does Qt solve this, or am I going to have to hardcode the path? Or read with winapi?

ChrisW67
15th February 2013, 01:49
I see no way to extract this with Qt unless a system-wide location is returned as a second entry in the standardLocations() list.

These folders are typically the domain of installer scripts, rather than the application itself, on Windows.