cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
thygesen
Level 3

How to get the currently logged in Windows User?

I need to get the Windows user name of the user who is performing the installation.

I have tried this command which I found in a forum:

MsiGetProperty(ISMSI_HANDLE, "LogonUser", szLogonUser, nBuffer);

But MsiGetProperty seems to not be available for Installscript projects.

How can I do it?

Thanks,
thygesen
Labels (1)
0 Kudos
1 Reply
Cygnusx1
Level 8

USERNAME property
0 Kudos