Seite 1 von 1

Run application as current user?

Verfasst: 09. Sep 2017, 13:15
von ricardoduarte
Hi there,

I need the data collector to write some values to HKCU, but when I run it from the Kiosk it always run as SYSTEM.
Because of that, the values show under the SYSTEM registry hive, and not the current user using the computer.
How can I make the data collector run as the current logged on user?

Thanks.

Re: Run application as current user?

Verfasst: 11. Sep 2017, 11:16
von Hendrik_Ambrosius
Run the EXE from the user part of the package:

[Product]
...
#SET:Userpart, Client
...

[SET:Userpart]
CALL Whatever.exe

Re: Run application as current user?

Verfasst: 11. Sep 2017, 16:55
von ricardoduarte
That kind of works.
But it only runs once per user. It is not possible, for example, to rerun a script or reinstall an application.
Setup.exe just opens-closes instantly.

Re: Run application as current user?

Verfasst: 11. Sep 2017, 17:23
von Hendrik_Ambrosius
Try reinstall with uninstallation or increase the package revision in the setup.inf AND the swdepot package properties.