Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Copy a file that already exists (http://forums.winamp.com/showthread.php?t=268150)

James4563 21st March 2007 14:02

Copy a file that already exists
 
Hi,

Is it possible while installing my program to copy a file.

The file I acctually want to copy is java.exe. I need to make a copy of it and rename it. I cant include the java.exe in my installer because it could be a different version.

So is it possible for me to make a copy of java.exe while installing?

Thanks,
James

Red Wine 21st March 2007 14:15

Provided that you know the exact path of the file you may copy/rename the file at runtime in one action e.g.
CopyFiles "$WINDIR\notepad.exe" "$TEMP\copy of notepad.exe"

James4563 21st March 2007 14:55

Excellent!

Thanks, I did acctually find that out shortly after posting the topic.

Thanks again.


All times are GMT. The time now is 06:12.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.