Skip to content
⌘ NSIS Forum Archive

write user profile

6 posts

didava#

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.
Afrow UK#
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