Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   copying config files (http://forums.winamp.com/showthread.php?t=206553)

manyaka 1st February 2005 11:11

copying config files
 
Hi guys.I need my installer to copy my Application's config files to (C:\Documents and settings\user name\Application Data...)

The only thing is how can I do that if I dont know what the users name is.

Please send me a peace of code that would do that.


Thanks a million.
Manyaka

Instructor 1st February 2005 15:59

code:
### Copy file "C:\config.cfg" to the current user application data directory.
CopyFiles /SILENT "C:\config.cfg" "$APPDATA"


manyaka 2nd February 2005 07:49

how do I know
 
How do I know what the current user application data directory is?

Please give me an e.g , is it a var?

Thanx dood
Manyaka

manyaka 2nd February 2005 08:15

Thanx
 
Great help man.I tried the last coding that u sent and it worked, dont worry about my previous reply.

Cheers.
Manyaka


All times are GMT. The time now is 05:18.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.