Archive: Please help me in InstallOptions


Please help me in InstallOptions
I am studying about InstallOptions. However, I have many problem which I can not understand when read on manual.
If somebody know, please explain to me!!!

+ I try to read this but still not know
InstallOptions::dialog "$PLUGINSDIR\menu_1.ini"
Because in file testlink.nsi on example use this
InstallOptions::dialog "$PLUGINSDIR\test.ini"
But test.ini is a different file.Why in file TESTLINK.NSI uses file TEST.INI

+ I want to show icon on menu. I also depend on these file help on example but I do not know why it do not display.

+ I use test link in my menu but I want to change state of string which I want to click.I mean: when user only can click on one attribute and the other is disable. The first attribute is installed, the second attribute will be clicked but I do not work.

+ In my menu, I want to change position two button "Exit and View ReadMe" near together. But in example folder, there are not a few example for me.In addition, I want to show file read me which I do not need to close my main application.How can I do that?

This is the first time I use installoptions, may my question be stupid but I can not find out my answer?
Consequently, I hope everyone who use InstallOptions help me in this field.
I also enclose these file which is related,
My attachment include "menu.nsi,menu_1.ini,setmenu.exe"
Your help is really appreaciated!!!!


testlink.nsi uses $PLUGINSDIR\TEST.INI because that's the name it uses extracts testlink.ini. See its .onInit function.

testimgs.nsi shows you how to display images and icons in a custom page.

I don't understand your questions about the two links. Do you want to disable a link? What exactly doesn't work? Doesn't adding DISABLED to Flags work?

What's exactly the problems with setting the positions of two texts?


Thank Kichik,


testlink.nsi uses $PLUGINSDIR\TEST.INI because that's the name it uses extracts testlink.ini. See its .onInit function.
I do not know exactly why in file testlink.nsi we must test.ini.If test.ini extract InstallOptions,I can chang this file to another file ????I mean I will change:
From: $PLUGINSDIR\TEST.INI
To : $PLUGINSDIR\TEST.INI

On the other hand, I want to change positon of button in file
Eg:
The default is Cancel, Next, Back. I want it to become View ReadMe and Exit
Can I move them to go the other positon and change them?
If there is a click on Next or Back (it means now View ReadMe and Exit) how can I know it because I need these event on this to show file readme if they click View ReadMe or exit.
Thank you for your help,

Sorry I type wrong
From: $PLUGINSDIR\TEST.INI
To : $PLUGINSDIR\DETECT.INI
My option when I load InstallOptions I do not depend on file
that


Nothing stops you from extracting the file as DETECT.INI. The INI file can be named anyway you wish.

To change the buttons text use BackButtonText, NextButtonText, and CancelButtonText in the INI file.


Thank Kichik,
If I change attribute NEXT BUTTON to become VIEW README and run file readme text. IS it OK? If it is good, how can I do that?


The leave callback function is called once the next button is clicked. You can show the readme there or you can show it after the call to InstallOptions. If you show it after the call to InstallOptions, you won't be able to call Abort to keep the user in the current page. That can only be done in the leave function.