- NSIS Discussion
- Can't Diagnose Error - Have only HRS till need to get working
Archive: Can't Diagnose Error - Have only HRS till need to get working
webmedium
15th September 2004 21:56 UTC
Can't Diagnose Error - Have only HRS till need to get working
the following code is what is in the nsi that is causing a script error:
SetOutPath $INSTDIR
File "${PRODUCT}${EXEC_EXTENSION}"
File "${IDLEHOOKS}${DLL_EXTENSION}"
File "${MSN_EMOTICONS}${DLL_EXTENSION}"
File "${YAHOO_EMOTICONS}${DLL_EXTENSION}"
File "${LIBIDN}${DLL_EXTENSION}"
File "${VCL}"
File "${RTL}"
the output box says:
Section: "iMessenger" ->(SEC_iMessenger)
SectionIn: [RO]
Call "NotifyInstances"
SetOutPath: "$INSTDIR"
File: "iMessenger.exe" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] filespec [...]|/oname=outfile one_file_only)
Error in script "E:\eclipse\eclipse\workspace\exodus\exodus\iworldlink-new.nsi" on line 433 -- aborting creation process
not sure what the problem is...
Joel
15th September 2004 22:13 UTC
The problem is:
File: "iMessenger.exe" -> no files found.
The compiler can't find the file.
Jarada
27th September 2004 21:28 UTC
I also have this problem. Where should I put my files so that the compiler does find them, as I really don't know. I've tried loads of places, any help would be great...
webmedium
27th September 2004 21:35 UTC
Where to put files...
Try putting the file right with the installer script. If it doesnt find them look for where the refernced file is supposed to be i.e. /includes/filename.exe and either move the file there or change it to list the correct file location... POST CODE for further assistance...
Jarada
27th September 2004 21:45 UTC
OK, here is some code:
Section "Install"
SetOutPath $INSTDIR
File "..\Jarada's Utopian Guide.pdf"
File "..\FAQ.pdf"
File "..\Readme.pdf"
And the Error Message:
Section: "Install"
SetOutPath: "$INSTDIR"
File: "..\Jarada's Utopian Guide.pdf" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] filespec [...]|/oname=outfile one_file_only)
Error in script "C:\Documents and Settings\david\My Documents\Guide.nsi" on line 25 -- aborting creation process
Oh, and I have placed the files where the .nsi file is, where it's supposed to install, and even where the NSIS program is installed, to no avail.
scully13
27th September 2004 21:56 UTC
By putting the ..\ before your file your saying that the file is one directory before the current directory. So, remove the ..\ and just make sure the file is in the same directory as the script or move the files back a folder. For instance if you have your script in c:\temp it will look for the file at c:\. You could also put File ".\FAQ.pdf" which would be the same as File "FAQ.pdf"
Jarada
27th September 2004 22:01 UTC
Thank you, thank you, thank you! I got past that bit, and hit another hump.
Section "Uninstall"
Delete $INSTDIR\uninstall.exe
Delete $INSTDIR\Jarada's Utopian Guide.pdf
Section: "Uninstall"
Delete: "$INSTDIR\uninstall.exe"
Delete expects 1-2 parameters, got 3.
Usage: Delete [/REBOOTOK] filespec
Error in script "C:\Documents and Settings\david\My Documents\Guide.nsi" on line 53 -- aborting creation process
What does this bug mean?
Also, the "Jarada's Utopian Guide" turns blue after the '. So obviously it doesn't like that. How can I fix this other new and really annoying bug?
(Sorry, I only want to make a simple installer :()
scully13
27th September 2004 22:06 UTC
Try putting quotes around it like this:
Section "Uninstall"
Delete "$INSTDIR\uninstall.exe"
Delete "$INSTDIR\Jarada's Utopian Guide.pdf"
The second path has spaces in it so it thinks you are passing multiple parameters.
Jarada
27th September 2004 22:11 UTC
Again, brilliant :D
You are very helpful. But there is another bug. For heavens sake, they don't stop!!!!!!! :cry:
OK:
VIProductVersion "Version_sring_3.0.0.0"
Processed 1 file, writing output:
Error: invalid VIProductVersion format, should be X.X.X.X
According to the manual, I have written this correctly. Why does it insist it is wrong?
Afrow UK
27th September 2004 22:12 UTC
Version_string is the version string, you don't actually put Version_string in!!!
VIProductVersion "3.0.0.0"
For heavens sake before posting read the error messages produced by the compiler...
-Stu :P
Jarada
27th September 2004 22:15 UTC
Stupid me :rolleyes:
Thanks a lot guys. You have been invaluable. :D