Archive: File /x


File /x
Hi all,

I received the error message:

Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in script "C:\Documents and Settings\emanuele\Desktop\Babelgum Beta\test.nsi" on line 101 -- aborting creation process

at the last line of my code:

SetOutPath "$INSTDIR"
SetOverwrite on
File *.dll /x "xul.dll"

What's wrong with it, it's something like specified in the manual.
The file is present and if I remove /x "xul.dll" it works.

thanks for any help

bye


It's the other way around. /x comes first and then the filespec.

File /x xul.dll *.dll

Hi, thanks for answering, that works

But I tried with /r options and it seems to have same problem:

If I do

(where chrome is a subfolder, so basically I want to install all the files in chrome but toolkit.jar)

File /r chrome /x "toolkit.jar"

or

File /x "toolkit.jar" /r chrome

An error is triggered.

thanks again


You really should check the documentation on File.

File /r /x "toolkit.jar" chrome

Stu