Startallback Aio 3.8.7.5149 Silent Install Msh... (2027)
:: Check if installer exists if not exist "%INSTALLER_PATH%" ( echo [ERROR] Installer not found: %INSTALLER_NAME% echo Please place the installer in the same directory as this script. pause exit /b 1 )
@echo off setlocal enabledelayedexpansion :: Advanced StartAllBack Silent Installer with Validation title StartAllBack Advanced Silent Installer color 0E
:: Wait and verify timeout /t 8 /nobreak >nul
:: Silent installation echo [INFO] Installing StartAllBack silently... echo [%date% %time%] Starting installation >> "%LOG_FILE%" StartAllBack AiO 3.8.7.5149 Silent Install msh...
:: Restart explorer.exe echo [INFO] Restarting explorer.exe... start explorer.exe timeout /t 2 /nobreak >nul
# Check if already installed $existingInstall = Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*" catch Write-ColorOutput "[ERROR] $($ .Exception.Message)" "Red" Write-Log "ERROR: $($ .Exception.Message)" Write-ColorOutput "" Write-ColorOutput "Press any key to exit..." "Gray" $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") exit 1
:: Verify installer integrity if not exist "%INSTALLER%" ( echo [ERROR] Installer missing: %INSTALLER% >> "%LOG%" exit /b 1 ) :: Check if installer exists if not exist
:: Check for Administrator privileges net session >nul 2>&1 if %errorLevel% neq 0 ( echo [ERROR] This script requires Administrator privileges. echo Please run as Administrator. pause exit /b 1 )
Then uncomment the line in the script that applies the registry settings.
:: Wait for installation to complete timeout /t 5 /nobreak >nul start explorer
# Get full path $InstallerFullPath = Resolve-Path $InstallerPath Write-ColorOutput "Installer: $InstallerFullPath" "Yellow" Write-Log "Installer path: $InstallerFullPath"
:: 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 ) )
:: Registry verification reg query "HKLM\SOFTWARE\StartAllBack" >nul 2>&1 if %errorLevel% equ 0 ( echo [SUCCESS] StartAllBack installed and registered >> "%LOG%" echo [SUCCESS] Installation completed successfully! ) else ( echo [WARNING] Registry entries not found >> "%LOG%" )
:: Kill explorer.exe to avoid conflicts echo [INFO] Stopping explorer.exe... taskkill /f /im explorer.exe >nul 2>&1 timeout /t 2 /nobreak >nul