I have a program which when downloaded from a server downloads another
program from the same web server and then configures the downloaded
program. The trouble is I have to hard code in the program the URL to
download the other program from. So I need to work out how I can do
the same thing without having a hard coded URL in the file. It is an
executable generated from a C compiler so I don't want customers to
have to edit a C source file and compile it.
I wondered if I could have a web page with a button calling a function
which could kick off the download and could pass a pass a parameter.
So it would basically just call a program and pass a parameter.
eg function would call mystartupprogram('http://www.whateverurl.com/
downloads/prog.exe', 'http://www.whateverurl.com/downloads/conf.txt')
Would that be possible? Can a javascript function kick off a file
download in this way? How do I do it?