@echo off set installer=FormatFactory_5.16.0.0_AIO.exe if not exist %installer% ( echo Installer not found! & pause & exit /b )
echo Silent install sequence completed. exit /b | Issue | Likely Fix | |-------|-------------| | Keystrokes go to wrong window | Increase timeout before mshta ; use AppActivate with exact window title (use Window Spy tool). | | Bundled software still installs | Add more TAB and SPACE strokes – capture actual dialog layout. | | Installer hangs | Run without start /min once to see where automation breaks. |
echo Installation triggered. Check for completion manually. pause Based on Format Factory 5.16.0.0 AIO (typical structure): Format Factory 5.16.0.0 AIO Silent Install msha...
:: Continue sending keys for each dialog step :: (You'll need to customize this based on your analysis)
:: 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 @echo off set installer=FormatFactory_5
start /min %installer% timeout /t 3 /nobreak >nul
:: Welcome mshta "javascript:var s=new ActiveXObject('WScript.Shell'); s.AppActivate('Format Factory Setup'); s.SendKeys('ENTER'); close();" timeout /t 2 /nobreak | | Bundled software still installs | Add
Use AutoIt or AutoHotkey for more robust silent installs. Example AutoIt snippet:
TABTABSPACEDOWNSPACE That toggles two checkboxes off. Save this as silent_ff.bat – you must test and adjust delays/keystrokes .