You are here

[nsis]How can i get user id?

4 posts / 0 new
Last post
ye14cV92
Offline
Last seen: 13 years 2 weeks ago
Joined: 2008-02-23 04:18
[nsis]How can i get user id?

$PROFILE
>>The user's profile directory. A typical path is "C:\Documents and Settings\Foo."

I wanna get "Foo"...
Is there variable of NSIS?

Thanks..

OliverK
OliverK's picture
Offline
Last seen: 2 years 9 months ago
Developer
Joined: 2007-03-27 15:21
$USERPROFILE

$USERPROFILE EDIT: NeverMind
EDIT e Doce:
System::Call "advapi32::GetUserName(t.R0, *i${NSIS_MAX_STRLEN}.R1) i.R2"

http://forums.winamp.com/showthread.php?threadid=255085

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

ye14cV92
Offline
Last seen: 13 years 2 weeks ago
Joined: 2008-02-23 04:18
thank you :) but i'm beginner

how can i insert that code?

i'm using "Application Launcher Template".

link : http://usb.smithtech.us/apps/launcherscripts/ApplicationLauncherTemplate...

OliverK
OliverK's picture
Offline
Last seen: 2 years 9 months ago
Developer
Joined: 2007-03-27 15:21
You'd have to find a

You'd have to find a convenient place to put it, I'm not sure about editing that template, I just right from a base. You'll have to be careful that you don't break something.

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

Log in or register to post comments