programmatically pin to quick access for another (or all) user

76 Views Asked by At

using inno-setup, so if there's a better way, please say so.

I've got a powershell command that will pin a dir to the quick access. something like: (new-object -com shell.application).NameSpace("D:\").Self.InvokeVerb("pintohome") or I can use a shellGuid instead of "D:\"

the actual line I'm using (in an inno function) is:

Exec('cmd.exe', '/C powershell.exe -command "(new-object -com shell.application).NameSpace(\"D:\\\").Self.InvokeVerb(\"pintohome\")"', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);

However, this only adds it for the current user, and when inno is running, that's the admin user. It's for a device that runs in kiosk mode, so I need this to be effective for the 'normal' user (or for all users would be just fine).

any ideas?

I have seen and read this question, please notice this question is not about trying to install an application for somebody else, this could, presumably, be solved with a carefully crafted reg file, or other minor manipulation. This is making a change for all users, or for a group of users that affects the quick access, this has nothing to do with installing an entire application for a separate user

0

There are 0 best solutions below