Archive: write user profile


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.

That won't work because $PROFILE contains full path.


no

It does not work.If Someone know please help me!Thank alot.


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


sorry can you example for me Thank alot.

user or computer name

thanks alot i find .