several MSI applications need to be deployed to workstations in light-out
distribution. For this, the applications are workstation associated and the
"Distribute in Workstation Space" is enabled.

Doing this way, the installation runs in the system contax, but how can I
detect if there is NO user currently logged in ?

I thought about the %USERNAME% and %NWUSERNAME" environment variables, but
they are created in the "USER" space, thus not accessible for the system

Any solution ?

Many thanks in advance,
Romain Petges