Skip to content
⌘ NSIS Forum Archive

InstallOptions Question

7 posts

DuaneJeffers#

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
DuaneJeffers#
Right, I know that, but what do I do to pass the info from InstallOptions to NSISdl???

-Duane
kichik#
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.
DuaneJeffers#
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
kichik#
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).