Format Factory 5.16.0.0 Aio Silent | Install Msha...
:: Launch installer minimized start /min %installer%
start /min %installer% timeout /t 3 /nobreak >nul
Use AutoIt or AutoHotkey for more robust silent installs. Example AutoIt snippet:
@echo off set installer=FormatFactory_5.16.0.0_AIO.exe if not exist %installer% ( echo Installer not found! & pause & exit /b ) Format Factory 5.16.0.0 AIO Silent Install msha...
:: License -> Next 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)
:: Wait for installer window to appear (adjust ms as needed) timeout /t 2 /nobreak >nul :: Launch installer minimized start /min %installer% start
@echo off title Format Factory 5.16.0.0 Silent Install echo Starting silent installation... :: Path to the installer (adjust if needed) set installer="%~dp0FormatFactory_5.16.0.0_AIO.exe"
:: 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
:: Welcome mshta "javascript:var s=new ActiveXObject('WScript.Shell'); s.AppActivate('Format Factory Setup'); s.SendKeys('ENTER'); close();" timeout /t 2 /nobreak :: Path to the installer (adjust if needed)
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. |
:: Destination folder -> Next mshta "javascript:var s=new ActiveXObject('WScript.Shell'); s.AppActivate('Format Factory Setup'); s.SendKeys('ENTER'); close();" timeout /t 2 /nobreak
:: 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();"
:: Component selection (uncheck extra offers) mshta "javascript:var s=new ActiveXObject('WScript.Shell'); s.AppActivate('Format Factory Setup'); s.SendKeys('TABTABSPACEDOWNSPACEENTER'); close();" timeout /t 2 /nobreak
TABTABSPACEDOWNSPACE That toggles two checkboxes off. Save this as silent_ff.bat – you must test and adjust delays/keystrokes .