Run application as current user?

Moderator: MVogt

Antworten
ricardoduarte
Beiträge: 14
Registriert: 07. Jul 2017, 14:33
Kontaktdaten:

Run application as current user?

Beitrag von ricardoduarte » 09. Sep 2017, 13:15

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.

Benutzeravatar
Hendrik_Ambrosius
Moderator
Moderator
Beiträge: 7599
Registriert: 13. Dez 2004, 23:10
Wohnort: Adendorf/Lüneburg

Re: Run application as current user?

Beitrag von Hendrik_Ambrosius » 11. Sep 2017, 11:16

Run the EXE from the user part of the package:

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

[SET:Userpart]
CALL Whatever.exe
Hendrik Ambrosius / Senior Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 AG | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 AG or of the support team.

ricardoduarte
Beiträge: 14
Registriert: 07. Jul 2017, 14:33
Kontaktdaten:

Re: Run application as current user?

Beitrag von ricardoduarte » 11. Sep 2017, 16:55

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.

Benutzeravatar
Hendrik_Ambrosius
Moderator
Moderator
Beiträge: 7599
Registriert: 13. Dez 2004, 23:10
Wohnort: Adendorf/Lüneburg

Re: Run application as current user?

Beitrag von Hendrik_Ambrosius » 11. Sep 2017, 17:23

Try reinstall with uninstallation or increase the package revision in the setup.inf AND the swdepot package properties.
Hendrik Ambrosius / Senior Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 AG | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com

Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 AG or of the support team.

Antworten

Zurück zu „Software Management“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast