jimpy22
3rd February 2005 09:35 UTC
2 .OnInit functions
Hi, I have created an installer that uses a custom components page (from one-section.nsi) and a custom page that allows user variables to be written into an .ini file. Both use a function called .OnInit which obviously are not allowed in the same installer. I have tried to change the function name which does not help and I have searched the forum for a similar problem. Can any one help with this?
Thanks
glory_man
3rd February 2005 11:30 UTC
As I have understood you in different .onInit-functions try to make different actions. Can you make these actions in one function called .onInit?
Yathosho
3rd February 2005 11:55 UTC
if i understood your problem correctly, you should try to use seperate functions and call them from the oninit function. if i'm entirely misunderstanding you, attaching your script might be of help.
Afrow UK
3rd February 2005 12:16 UTC
Keep one as .onInit, rename the other to .onInit2 and out Call .onInit2 in your first .onInit function :p
Or you could copy the code from .onInit2 and put it in .onInit as glory_man rightly said.
-Stu
jimpy22
7th February 2005 09:39 UTC
I have got the two functions together in the .Oninit which now works, but I have 3 fields in my ioa.ini and only 2 are showing in the actual installer when I run it - can anyone tell me why?
Thanks. (I have attached .nsi file and .ini file)
jimpy22
7th February 2005 09:41 UTC
and the .ini file
glory_man
7th February 2005 12:35 UTC
What extension of ioa-file - ini or txt?
jimpy22
7th February 2005 13:43 UTC
File extension is .ini. Changed to .txt just for upload purposes.
glory_man
7th February 2005 13:46 UTC
Fields 4&6 and 3&5 have equal coordinates (i.e. Left, Right, Top, Bottom values). :)
jimpy22
7th February 2005 13:54 UTC
Thank you, thank you.