Насколько я знаю задача такого архива просто распаковать софтину, всё же остальное делает после распаковки сама софтина или через сценарий приложенный к SFX-архиву.
Цитата из справки к WinRar:
WinRAR GUI SFX modules support several command line options listed below.
Option Description
-d<path> Set the destination folder for unpacked files.
-p<pwd> Specify a password for encrypted SFX archive.
-s, -s1, -s2 Silent mode. Switch -s is a brief form of -s1. Both -s and -s1 hide SFX dialog and extraction progress. -s2 hides the start dialog, but extraction progress is displayed.
-sp<par> Define parameters passed to application specified in Setup SFX command.
|
WinRAR SFX Commands тема на msfn
WinRAR SFX как раз пример с -sp
WinRAR-SFX страница на oszone.net по изготовлению инсталлятора на подобии самого WinRAR