Old 26th May 2006, 12:12   #1
BarrelOfAGun
Junior Member
 
Join Date: Feb 2006
Location: Italy
Posts: 28
Unhappy File(s) realy exist!

My NSI code return this error:


File: "..\..\..\Programmi\Starlight\aliases.ini" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in script "C:\Documents and Settings\Marco\Documenti\Starlight\setup.nsi" on line 52 -- aborting creation process


But the file(s) and the directory realy exist!

This i s avery strange error!

Help me!

Edited by Afrow UK on 29th May 2006 at 9:40
Code attached further down.
Please post large code as a file attachment.
BarrelOfAGun is offline   Reply With Quote
Old 26th May 2006, 13:18   #2
shaunb
Member
 
Join Date: May 2006
Location: Devon, UK
Posts: 65
personally I'd say the ..\..\..\ is bad practice, I'd use a dir to reference from, I use ".\setup_files"

that wont cause the error though, you know you can use wildcards with 'file' and 'delete' ( I believe ), right?
shaunb is offline   Reply With Quote
Old 28th May 2006, 21:43   #3
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 916
Also, you must have moved the .nsi after you saved it, which is why you got the error. Where possible, I use absolute paths, or use the current directory where the .nsi resides.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 29th May 2006, 08:42   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Script:
Attached Files
File Type: nsi script.nsi (10.0 KB, 340 views)
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump