php - Generate custom Windows-based EXE installer from *nix webserver on the fly (OpenVPN client custom installer) -


this related this other question. need dynamically generate custom windows exe installer *nix machine (running php, or whatever) contains custom files installed on client's machine.

this used generate client-specific openvpn installers based on preferences , authentication information. runtime not important, can done async.

some ideas, tried , not working:

  1. use scheme similar ninite.com, downloaded executable same, filename different, installer uses information in filename make decisions.
  2. using resource editor edit prebuilt installer's resources. not unix resource editors windows executable rare, creates new problems, , don't solve problem of different files being installed.

what work best nsis/innosetup compiler (targeting windows) running on unix, other inventive solutions okay.

answering own question, seems both nsis (used default on openvpn source code) , inno setup can run on linux.

inno setup can used under wine, it's command line utility it's simple , works. see http://katastrophos.net/andre/blog/2009/03/16/setting-up-the-inno-setup-compiler-on-debian/

nsis has native unix port, it's available "nsis" package on ubuntu/debian. has "makensis" available, can compile (on unix) windows executable .nsi file.

just info, can compile complete .exe installer in under 5 seconds, including dynamic stuff. php used exec() build after preparing it, , sends exe download client.

i suppose (or similar) how works in commercial openvpn server offering.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -