:: Configuration set "INSTALLER=StartAllBack_3.8.7.5149_setup.exe" set "EXPECTED_MD5=INSERT_MD5_HASH_HERE" :: Optional: Add actual MD5 hash set "LOG=%~dp0StartAllBack_Install_%date:~10,4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.log" set "LOG=%LOG: =0%"
if ($process.ExitCode -ne 0) Write-Log "Installation process exited with code: $($process.ExitCode)" Write-ColorOutput "[WARNING] Installation may have issues. Exit code: $($process.ExitCode)" "Yellow" else Write-Log "Installation process completed successfully"
:: Admin check net session >nul 2>&1 if %errorLevel% neq 0 ( echo [ERROR] Administrator rights required! pause exit /b 1 )
:: Silent switches for StartAllBack :: /S = Silent mode :: /D = Installation directory (optional) :: /HIDE = Hide all prompts StartAllBack AiO 3.8.7.5149 Silent Install msh...
if ($existingInstall) Write-ColorOutput "[INFO] StartAllBack appears to be already installed" "Yellow" $response = Read-Host "Do you want to reinstall? (Y/N)" if ($response -ne 'Y') Write-ColorOutput "Installation cancelled" "Red" exit 0
:: Set variables set "INSTALLER_NAME=StartAllBack_3.8.7.5149_setup.exe" set "INSTALLER_PATH=%~dp0%INSTALLER_NAME%" set "LOG_FILE=%~dp0StartAllBack_Install.log"
:: 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 :: Configuration set "INSTALLER=StartAllBack_3
echo. echo ======================================== if "!INSTALL_SUCCESS!"=="1" ( echo Installation Complete! ) else ( echo Installation may have issues. Check log file. ) echo ======================================== echo. timeout /t 3 /nobreak >nul exit /b 0 # StartAllBack 3.8.7.5149 Silent Installation Script # Run as Administrator #Requires -RunAsAdministrator
# Final output Write-ColorOutput "" Write-ColorOutput "========================================" "Cyan" if ($installed) Write-ColorOutput "Installation Complete!" "Green" Write-Log "Installation completed successfully" else Write-ColorOutput "Installation may have issues. Check manually." "Yellow" Write-Log "Installation verification failed - files not found"
:: 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%" ) ) else ( echo Installation may have issues
Then uncomment the line in the script that applies the registry settings.
:: 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 )
"%INSTALLER_PATH%" /S /HIDE