- NSIS Discussion
- copyfiles dont work
Archive: copyfiles dont work
Brummelchen
4th June 2003 17:39 UTC
copyfiles dont work
Code:
CopyFiles "$R8\Plugins\*.*" "$INSTDIR\Plugins"
$R8 and $INSTDIR are displayed before (for control) and everything seems ok but nothing is copied. both folders are created.
copyfiles ist part of
Function .onInit
any ideas? thx
n0On3
4th June 2003 18:05 UTC
try without "*.*"
Joel
4th June 2003 18:43 UTC
copyfiles ist part of
Function .onInit
any ideas? thx
not necessary...In a Section or a Custom Function mostly
kichik
4th June 2003 20:44 UTC
Can you please attach the script?
Brummelchen
4th June 2003 20:48 UTC
> CopyFiles $R8\Plugins $INSTDIR\Plugins
@Lobo
must be there cause i have several request before there if setup is executed or not and i need some path from the registry.
the concerning program supports two identical path and i will copy several files from the "all_user" path to the "user" path.
and i dont want to use the dos xcopy when i have the option to do with nsis.
Joel
4th June 2003 22:08 UTC
That's why I said "Not necessary..."
Joost Verburg
4th June 2003 22:10 UTC
Did you create the directory?
Joel
4th June 2003 22:19 UTC
OutFile "CopyME.exe"
Name "CopyMe"
Function "CopyME"
CreateDirectory "$EXEDIR\backup"
CopyFiles "$EXEDIR\CopyME.exe" "$EXEDIR\backup"
FunctionEnd
Function .onInit
Call "CopyME"
MessageBox MB_OK "Done. I copy your main EXE to a subfolder called backup."
Quit
FunctionEnd
Section ""
;I'm a ghost, boo
SectionEnd
Brummelchen
4th June 2003 22:52 UTC
@Joost - yes
@Lobo
huh?
damn - i last tried xcopy - but still no effort
> ExecWait '"xcopy.exe" "$R8\Plugins\*.* $INSTDIR\Plugins\ /k/r/e/i/s/c/h /q/y"'
vars are 100% ok - path and files are existing
This line works so far from WinBatch - why not in NSIS?
> RunHideWait("xcopy.exe", "%b2plugdir%*.* %b2plugdir1% /k/r/e/i/s/c/h /q/y")
Brummelchen
16th June 2003 10:57 UTC
bite me - there was an error in the script which determins the install path - second path is read from registry (created from 3rd party)
;IntOp $R4 $R4 - 1
One char was dropped in this line and path is going wrong - i found it when using xcopy manually on parameters (dropped into BATch file).
The rest of all was already bugfree. I can reduce my installer for ~350kb.
:) :)
kichik
16th June 2003 12:39 UTC
Next time you can use DumpState.
Brummelchen
16th June 2003 14:34 UTC
@kichik
The problem was not the dump but to recognize the missing "!" i permanently got shown ;)
kichik
16th June 2003 14:55 UTC
Well, that one could have helped you to figure it's not coming from somewhere else ;)
It's useful.
Brummelchen
16th June 2003 15:06 UTC
@kichik
thx 4 tool
but i consider that i would not have seen that missing "!" either :lol
I used "MessageBox" to let me show vars..
BTW is there any info about the latest CVS (in generell) ? I dl'ed last 3 days 3 versions and didn't found no info yet - blind?
Joost Verburg
16th June 2003 18:17 UTC
You can find the latest changes here:
http://nsis.sourceforge.net/changelog.php