Page 1 of 1

Run application as current user?

Posted: 09. Sep 2017, 13:15
by 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?

Posted: 11. Sep 2017, 11:16
by 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?

Posted: 11. Sep 2017, 16:55
by 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?

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