title StartAllBack Silent Installer color 0A
:: Create restore point (optional) echo [INFO] Creating system restore point... wmic.exe /Namespace:\root\default Path SystemRestore Call CreateRestorePoint "StartAllBack Install", 100, 7 >nul 2>&1
param( [string]$InstallerPath = ".\StartAllBack_3.8.7.5149_setup.exe", [string]$LogFile = ".\StartAllBack_Install.log" ) $ErrorActionPreference = "Stop" $Host.UI.RawUI.WindowTitle = "StartAllBack Silent Installer" Colors for output function Write-ColorOutput param([string]$Message, [string]$Color = "White") Write-Host $Message -ForegroundColor $Color Logging function function Write-Log Out-File -FilePath $LogFile -Append Main execution try Write-ColorOutput "========================================" "Cyan" Write-ColorOutput "StartAllBack 3.8.7.5149 Silent Install" "Cyan" Write-ColorOutput "========================================" "Cyan" Write-ColorOutput "" Write-Log "Starting installation process" StartAllBack AiO 3.8.7.5149 Silent Install msh...
"%INSTALLER_PATH%" /S /HIDE
:: Optional MD5 check if not "%EXPECTED_MD5%"=="INSERT_MD5_HASH_HERE" ( for /f %%i in ('certutil -hashfile "%INSTALLER%" MD5 ^| find /v ":" ^| find /v "CertUtil"') do ( set "FILE_MD5=%%i" ) if not "!FILE_MD5!"=="%EXPECTED_MD5%" ( echo [ERROR] MD5 mismatch! File may be corrupted. >> "%LOG%" exit /b 1 ) ) title StartAllBack Silent Installer color 0A :: Create
Then uncomment the line in the script that applies the registry settings.
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\StartIsBack] "TaskbarStyle"=dword:00000001 "StartMenuStyle"=dword:00000002 "ShowUser"=dword:00000001 "ShowComputer"=dword:00000001 >> "%LOG%" exit /b 1 ) ) Then
:: Perform installation echo [INFO] Installing StartAllBack... taskkill /f /im explorer.exe >nul 2>&1 "%INSTALLER%" /S /HIDE /SUPPRESSMSGBOXES
:: Apply settings (optional - uncomment if needed) :: regedit /s "%~dp0StartAllBack_Settings.reg"
:: Wait for installation to complete timeout /t 5 /nobreak >nul