Archive: NSIS script problem


NSIS script problem
Hi,

ich will grad nen script mit NSIS schreiben... aber ich krieg immer folgende fehlermeldung:



Section: "ReadMe"
File: "readme.txt" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in script "C:\Users\TimeBandit\Desktop\test.nsi" on line 29 -- aborting creation process




woran liegt das?? Die Datei "readme.txt" gibt es....



Hier ein Teil meines Code:




Page components
Page directory
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles



Section "Würfelspiel"
File "Würfelspiel.exe"
SectionEnd


Section "ReadMe"
File "readme.txt" <<<----- Line 29
SectionEnd

Section ""
File "\Kugeln\2.jpg"
SectionEnd

Section ""
File "\Kugeln\3.jpg"
SectionEnd

Section ""
File "\Kugeln\4.jpg"
SectionEnd

Section ""
File "\Kugeln\5.jpg"
SectionEnd

Section ""
File "\Kugeln\6.jpg"
SectionEnd

Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\Wuerfelspiel by Patrick H."
CreateShortCut "$SMPROGRAMS\Werfelspiel by Patrick H.\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\Wuerfelspiel by Patrick H.\Würfelspiel.lnk" "$INSTDIR\Würfelspiel.exe" "" "$INSTDIR\Würfelspiel.exe" 0
SectionEnd

Section "Uninstall"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Wuerfelspiel by Patrick H."
Delete $INSTDIR\uninstall.exe
Delete $INSTDIR\Wuerfelspiel by Patrick H..exe
Delete $INSTDIR\ReadMe.txt
RMDir $INSTDIR
Delete "$SMPROGRAMS\Wuerfelspiel by Patrick H.\*.*"
RMDir "$SMPROGRAMS\Wuerfelspiel by Patrick H."
SectionEnd


It cannot find readme.txt during compilation. Note that the compiler searches relative to the directory where your .nsi file is stored. So readme.txt should be in the same directory as your .nsi file.