Hi,
i want to copy a picture.
This is what i have:
$3 = logo.bmp
Then i want to rename the file to logo.png:
StrCpy $4 $3 -3
; now is $4 = "logo."
StrCpy $5 "$4png"
; $5 = "logo.png"
CopyFiles $5 $INSTDIR\logo\background.png
But now, logo.png is not copied to this folder. 🙁
What i am doing wrong?
Sorry, but this is all new stuff for me. 🙂
Thanks for any help.
Troubles with CopyFiles
10 posts
Are you specifying a full path to copy from? Does the source file exist?
Stu
Stu
Thanks for your help.
yes, the source file exists. if i use this:
CopyFiles $3 $INSTDIR\logo\background.png
Then it works (but with the file logo.bmp). But i want to copy the file logo.png (from same location).
yes, the source file exists. if i use this:
CopyFiles $3 $INSTDIR\logo\background.png
Then it works (but with the file logo.bmp). But i want to copy the file logo.png (from same location).
ok, i have tried to use the full path to source file and now it works! Thanks for this tip! 🙂
It is not really a tip - the CopyFiles description in the User Manual says "Fully-qualified path names should always be used with this instruction. Using relative paths will have unpredictable results."
Hmm.. maybe i have not all correct.
On my Desktop PC it works and all files copied ok, but on other computer it is not working.
The file "background.png" is not copied on other pc.
What have i wrong here?
On my Desktop PC it works and all files copied ok, but on other computer it is not working.
The file "background.png" is not copied on other pc.
What have i wrong here?
ok, have found my mistake:
Is this possible?
Copies files from the source to the destination on the installing system.How can i implement all these file (logos) in installer? I do not want to install all logos on destination pc.
Is this possible?
They have to come from somewhere - just extract them to $PluginsDir first - that folder and the files therein will be deleted once the installer exits.Originally Posted by MarcelP1977 View PostHow can i implement all these file (logos) in installer? I do not want to install all logos on destination pc.
Is this possible?
How can i extract them to $PluginsDir?
I think the files are not in the installer?!
First i have to put the files in installer, but how?
I think the files are not in the installer?!
First i have to put the files in installer, but how?
That's what the Basic Instructions chapter of the manual will tell you. Please study it.