Archive: compilation error


compilation error
Hello dear programmers !

First, i want to say that I'm french so excuse my bad english :)
Secondly, it's the first time I use this programmation language so I'm not a rookie :)

This is my problem.

I have founded a little program that donwload the latest version of chromium (here )

I wanted to change the open source to do the same with firefox. Unfortunately, errors appear during the nsi compilation, even when I compile before any changes !
The first error is the "update.ico" file missing; easy to resolve by deleting the call string.
But the second error is more sneaky. Error line 257: Error in macro __Download on macroline 8

I don't understand this language but he is apparently simple. I have looked, "__Download" return 4 arguments, there is no syntax error...
I don't see where is the problem.
Can you help me please ?


Could you post the related code, please?

The first error is the "update.ico" file missing; easy to resolve by deleting the call string.
What call string?
What for do you need the icon?

But the second error is more sneaky. Error line 257: Error in macro __Download on macroline 8
It would be great, if you could post the code of the macro. Then we can have a look on line 8. ;-)

CJ

pastebin.com/f363c16cb
Here is the original code.

When I compile it, I got the first error at line 23:
Icon "Update.ico"
so I deleted this line.

The second error is at line 256.

And thank you for helping me :D


Ok, the problem using the icon is, you've specified a (incorrect) absolute path. I've got no doubt, you dont have a file with the absolute path "Update.ico".
To solve the problem you can use a relative path that describes where your icon lies in relation to your installer. Example: If your icon is stored in the same directory as your installer, the path would be ".\Update.ico".
You can also pass the absolute path of the icon. That can be for example "C:\MyDir\Update.icon".

I'm sorry, I can't see the error in macro __Download right now...
I've tried it in a shorter version and for me it's fine.

CJ


The icon is useless, i don't care. This is why I delete the line. But thank you for the solution if I wanted to use one.

For the other error, loon at the picture...
imgur.com/CjbhN.png

Maybe it is a software version problem...


Ok, I get it! :)
He says: "Invalid command: inetc::get". So, you're simply missing the include of the inetc plugin.


YEAAAAH !

I understand now !

I got 2 others errors but easy to fix thanks to your help:
1) missing inetc plugin
2) unable to find unzip.exe (to make an installer)
3) missing LockedList plugin

All resolved with google and you !

Thank you !

PS: where do I make this thread solved ?