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 ?
I was able to achieve it using WinRar. So thanks for the advice. User can specify what executable to launch after files are being extracted. Command line arguments are saved in an environment variable %sfxcmd%. So if you put that environment variable right next to the executable the arguments will be passed to it. The arguments may later be passed within your executable.