Archive: Calling up the current user


Calling up the current user
Is there a way to find out who the current user is during installation so that I can copy some files into that directory? Any help is very much appreciated.


NSIS has a plugin called User Info that get some information about the current user. Use the UserInfo::GetName plugin function of UserInfo to get what you want. But it doesn't work for Win9x...


But it doesn't work for Win9x...
UserInfo::GetName works OK on Win9x