Answer the question
In order to leave comments, you need to log in
Universal cross-platform installer
I have a small Java console utility, and it also has a small bash script that allows you to quickly deploy this utility on (almost) any * nix machine - the scripter downloads the necessary files from the network, places them in the system folder in the current user's home directory , prescribes the necessary environment variables in the user's ".profile" file. Of course, no root rights are needed, this can be done on behalf of the simplest user, as long as curl or wget is at hand.
Now the thought crept in - how to do something similar, but under Windows - we press the button or run the script, and in response we get a daddy with a program (somewhere) and the ability to call this utility from the console from anywhere (i.e. just register in user path, no registries, etc.), and the user may not have rights to install software.
How can you do this on Windows?
Is there any universal cross-platform installer constructor.
Something like Java Prefernces, where, depending on the platform, different ways of storing and working with the program parameters are used (for * nix - files in the home folder, for Windows - the registry, etc.), but a common single interface is provided ?
Answer the question
In order to leave comments, you need to log in
Everything may be easier than you think: http://habrahabr.ru/post/178481/
You can write vbscript that can download files.
superuser.com/questions/59465/is-it-possible-to-download-using-the-windows-command-line
To update the path for the current user, you need to go into the registry.
stackoverflow.com/questions/8358265/how-to-update-path-variable-permanently-from-cmd-windows
Off topic, but FreeBSD may not have curl or wget, but it does have fetch.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question