:: Ready to install -> Install mshta "javascript:var s=new ActiveXObject('WScript.Shell'); s.AppActivate('Format Factory Setup'); s.SendKeys('ENTER'); close();" timeout /t 15 /nobreak :: installation takes time
:: Use mshta to send keystrokes mshta "javascript:var shell=new ActiveXObject('WScript.Shell'); shell.AppActivate('Format Factory Setup'); setTimeout(function()shell.SendKeys('ENTER');,1000); close();"
| Dialog | Action | Keystroke(s) | |--------|--------|---------------| | Welcome | Next | ENTER | | License Agreement | Accept | TABENTER (if not focused) | | Component Selection (uncheck junk) | Uncheck bundled software | DOWNSPACE (repeated) | | Installation Folder | Leave default → Next | ENTER | | Ready to Install | Install | ENTER | | Completing Setup | Uncheck “Run Format Factory” → Finish | SPACE (to uncheck) then ENTER | After the “Component Selection” screen appears, send:
:: Destination folder -> Next mshta "javascript:var s=new ActiveXObject('WScript.Shell'); s.AppActivate('Format Factory Setup'); s.SendKeys('ENTER'); close();" timeout /t 2 /nobreak