How to input parameters into the downloaded setup.exe on the server side?

What methods exist to include parameters (such as userid) into the setup.exe that users download from a server?

I'm looking for a way to give a customized installer to users that I already know (because they are logged in).


Is your question tied with some technology/installation system? Or you are researching which installation system to use to achieve this functionality?

In NSIS there is option to append custom data to installer, see this article:

  • Maybe the easiest would be to send a setup_whateverparameter.exe filename instead of setup.exe...
  • A smarter approach would probably be to store parameter into a ressource file which would be edited from command line with some tool like
  • Another one would be to generate a sort of INI file which would be packed with the original setup file using some installer software like Inno Setup ( and the original installer would be configured to check if some ini file exists in a temporary location, to just use its content to do specific tasks.

Other possibilities might exists, thoses are just the one which might be the most easy to implement.

@elfrancesco hinted at Ninite and Patrick from Ninite got back to me with:

We put the installer id in a segment of the .exe that doesn't get included in the hash for the signature. So we just sign our loader .exe once whenever we update it and then our web server drops in the key for each download.

Need Your Help

How to assert that a function call does not return an error with unittest?

python unit-testing assert

Is there anyway with unittest to just assert that a function call does not result in an error, whether it is a TypeError, IOError, etc.