Archive: InstallOptions Question


InstallOptions Question
I am creating an downloading installer that has multiple mirrors, and I was wondering if InstallOptions would be able to do that. So, Can it do that and how.

Thanks,
-Duane


You can create a combobox or a listbox using InstallOptions and fill it in with the mirrors.


Right, I know that, but what do I do to pass the info from InstallOptions to NSISdl???

-Duane


Read the control state and download according to the user selection.

You can make a file with a structure such as:
Site name=http://www.site.com/mydl.exe

Load all site names into InstallOptions and then use the state to find out the URL from the file.


There is a problem, It is not just one download file, it has plug-ins and the it would be better if I could just have the InstallOptions have the user download from a main mirror and then it would pass the URL to all of the NSISdl types. Is that possible. And is it also possible to pass the User inputs (from textboxes) to a PHP file and then adds them to a database???

-Duane


If it has plug-ins make the data file like this:
Mirror name=http://www.bla.com/prog.exe,http://www.bla.com/plugin.exe

All you need to do is decide on a data structure that fits your needs and deal with it both server side and client side (NSIS).

To pass information from InstallOptions text boxes into one of your PHP scripts is very simple. All you need to do is send your data using GET method (variables in the url eg. http://www.website.com/myscript.php?...1&getplugin2=0).


duane: im kinda doing something simliar at the moment..