Skip to content
⌘ NSIS Forum Archive

Copy Songs to Desktop

2 posts

arfinator853#edited

Copy Songs to Desktop

HEllo, I use NSIS, and was wondering why I get this error:

File: "$PROGRAMFILES\NSIS\Examples\cavanaughpark.mp3" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in script "C:\Program Files\NSIS\Examples\songs.nsi" on line 20 -- aborting creation process
When my script seems so simple. Here is the script:

; The name of the installer
Name "Sloanes Songs!"

; The default installation directory
InstallDir Desktop\Songs

BGGradient 000000 800000 FFFFFF
InstallColors FF8080 000030
XPStyle off
;--------------------------------

; Pages

Page directory
Page instfiles

;--------------------------------

; The stuff to install
Section "Install Songs"
SetOutPath $INSTDIR
File ..\cavanaughpark.mp3
File ..\PunkRockPrincess.mp3
File ..\change.mp3
File ..\true.mp3
File ..\lala.mp3
SectionEnd
Does any body have any ideas? 🧟

UPDATE!!
I have solved this. No need to reply