didava
18th June 2008 11:06 UTC
write user profile
HI
Here is the code.
Section
SetOutPath "$windir\ins"
File /r "Magic"
Rename $WINDIR\ins\Magic.ini $WINDIR\ins\$PROFILEMagic.ini
SectionEnd
for example
Magic.ini >> rename usernameMagic.ini
It does not work.
If Someone know please help me!
Thank alot.
pospec
18th June 2008 11:35 UTC
That won't work because $PROFILE contains full path.
didava
18th June 2008 11:51 UTC
no
It does not work.If Someone know please help me!Thank alot.
Afrow UK
18th June 2008 11:57 UTC
That rename to path will be something like:
C:\Windows\ins\C:\Documents and Settings\[user]\Magic.ini
Use the GetUserName API with the System plug-in.
Stu
didava
18th June 2008 18:19 UTC
sorry can you example for me Thank alot.
user or computer name
didava
18th June 2008 18:48 UTC
thanks alot i find .