self extracting zip taking arguments

aalimian picture aalimian · Jun 29, 2012 · Viewed 8.6k times · Source

I am looking for a tool that will allow me to create a self extracting executable file which can take arguments. The arguments will later be passed on to the batch file that is residing within the package that the self extracting exe contains.

Here is what I would want to achieve in steps:

User types: cmd>setup.exe arg1 arg2 arg3 arg4 arg5

Expected behavior: 1) setup.exe extracts its contents to some folder 2) it then goes and executes a batch file with arg1, arg2,...arg5 arguments

Is anyone aware of a tool like that ?

Answer

higuaro picture higuaro · Jun 29, 2012

Don't know if it could help but WinRAR lets you create auto-exe-extracting files, besides it gives you the option to run some command after the extraction and/or to show you a license info in a text editor