- NSIS Discussion
- Error in compile
Archive: Error in compile
ReloadMaster
15th December 2003 17:26 UTC
Error in compile (New error!)
Updated the NSIS today and i got errors from the start.
The script is at:
http://linus.rsdata.net/ctirc/ctirc.nsi
The first error is:
1 warning:
LangString "MUI_UNTEXT_FINISH_RUN" is not set in language table of language 1033
I would also be happy if you help me correct it and maybe help me get a desktop shortcut option at the finishpage
Joost Verburg
15th December 2003 18:18 UTC
This is an old beta 3 script. You will have to upgrade this script to the new Modern UI format, see Readme and examples for details.
ReloadMaster
15th December 2003 18:38 UTC
Ok, updated the code.
But now i get another error at the Uninstall section
What should i replace with?
And also i don't get the Run Program text at the finish no longer i will only get a box when finished the uninstaller? Why?!
And the Option to create a desktop and quick launch wouldn't work either...
Joost Verburg
15th December 2003 20:55 UTC
Without a script and compiler output I can't help you.
Make sure you have used the right positions for all settings (interface, page etc.).
kichik
15th December 2003 23:39 UTC
OK... Lengthy reply written and then I got a database error. Fun.
Anyway, MUI_FINISHPAGE_RUN is not defined in the right place. It should be defined right above the finish page macro, not below it.
I got no error in the uninstaller section. Please supply more details.
There is no code in there that creates a quick launch icon. It can't work if it's not there ;)
ReloadMaster
16th December 2003 08:12 UTC
I know it doesn't exist :)
I had old Beta3 Code that didn't work.
Anyone that have a code for short and quicklaunch icon?
kichik
16th December 2003 11:43 UTC
It's the same as creating any other shortcut, just in $QUICKLAUNCH.
ReloadMaster
16th December 2003 11:46 UTC
If i have this in CTirc1.ini:
[Settings]
NumFields=2
[Field 1]
Type=Checkbox
Text=Create Desktop Shortcut
Left=192
Right=299
Top=89
Bottom=100
[Field 2]
Type=Checkbox
Text=Create Quick Launch Icon
Left=192
Right=307
Top=105
Bottom=116
How can i get it into the finishpage?
The code i use is in my first post
kichik
16th December 2003 11:50 UTC
You should just use the MUI's show readme checkbox. It allows you to set your own function to call instead of showing a readme itself. Use:
!define MUI_FINISHPAGE_SHOWREADME
!define MUI_FINISHPAGE_SHOWREADME_TEXT "create quicklaunch icon..."
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION cqli
Function cqli
CreateShortcut ...
FunctionEnd
ReloadMaster
16th December 2003 12:04 UTC
Well, it's not rally helping,
I want it at the FINISHPAGE and i want the readme to be still shown as it is...
I have but the code shown in:
http://forums.winamp.com/showthread....ighlight=quick
into the script but i dunno how i can get to choose how to do a checkbox into the finishpage, i only need this for my one script i have checked readme and FAQs
and i don't want to learn all about NSIS just to make this
kichik
16th December 2003 12:13 UTC
Well, in the script you have only MUI_FINISHPAGE_RUN, no show readme... So do you want run checkbox, show readme checkbox and another two for quick launch and desktop?
You can edit $PLUGINSDIR\ioSpecial.ini in the pre function of the finsih page and add whatever checkboxes you want, set the colors in the show function using GetDlgItem and SetStlColors and create the shortcuts in the leave funciton if the checkboxes are selected.
You can also drop the finish page idea and create another InstallOptions page for those checkboxes or even create each one a section/component. Both would be much simpler.
ReloadMaster
16th December 2003 12:32 UTC
Well seems like we don't understand each other but if i try to give a new question then:
I have a Icon.ini file like
[Settings]
NumFields=2
[Field 1]
Type=Checkbox
Text=Create Shortcut Icon
Left=212
Right=327
Top=109
Bottom=119
[Field 2]
Type=Checkbox
Text=Create Quick Launch Icon
Left=212
Right=327
Top=128
Bottom=138
How do i get it into my script? You have the code please tell me what and where.
How do i check if checked Create ShortCut, Create Quick Launch? Also there you see my section codes for them, please correct the code and put it where it should be and how.
kichik
16th December 2003 12:38 UTC
You said:
I want it at the FINISHPAGE and i want the readme to be still shown as it is...
If you really want those checkboxes in the finish page do as I said in the second paragraph in the last post. If you want them in another page take a look in the Contrib\InstallOptions and Examples folders for InstallOptions examples.
ReloadMaster
16th December 2003 12:42 UTC
Where is pluginsdir?
kichik
16th December 2003 12:44 UTC
It's in the temporary directory. Output $PLUGINSDIR using MessageBox or DetailPrint to figure out the current location.
Joost Verburg
16th December 2003 16:22 UTC
The Modern UI InstallOptions macros automatically use the plug-ins folder.