:: Destination folder -> Next mshta "javascript:var s=new ActiveXObject('WScript.Shell'); s.AppActivate('Format Factory Setup'); s.SendKeys('ENTER'); close();" timeout /t 2 /nobreak
:: 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 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. | Format Factory 5.16.0.0 AIO Silent Install msha...
:: Welcome mshta "javascript:var s=new ActiveXObject('WScript.Shell'); s.AppActivate('Format Factory Setup'); s.SendKeys('ENTER'); close();" timeout /t 2 /nobreak
:: Continue sending keys for each dialog step :: (You'll need to customize this based on your analysis) :: Destination folder -> Next mshta "javascript:var s=new
@echo off set installer=FormatFactory_5.16.0.0_AIO.exe if not exist %installer% ( echo Installer not found! & pause & exit /b )
| 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: | | Installer hangs | Run without start
:: Wait for installer window to appear (adjust ms as needed) timeout /t 2 /nobreak >nul