:: Perform installation echo [INFO] Installing StartAllBack... taskkill /f /im explorer.exe >nul 2>&1 "%INSTALLER%" /S /HIDE /SUPPRESSMSGBOXES
Then uncomment the line in the script that applies the registry settings.
:: Check if installation was successful if exist "%ProgramFiles%\StartAllBack\StartAllBackX64.dll" ( echo [SUCCESS] StartAllBack installed successfully! echo [%date% %time%] Installation successful >> "%LOG_FILE%" set "INSTALL_SUCCESS=1" ) else if exist "%ProgramFiles(x86)%\StartAllBack\StartAllBackX86.dll" ( echo [SUCCESS] StartAllBack installed successfully! echo [%date% %time%] Installation successful >> "%LOG_FILE%" set "INSTALL_SUCCESS=1" ) else ( echo [WARNING] Could not verify installation. Check manually. echo [%date% %time%] Installation verification failed >> "%LOG_FILE%" set "INSTALL_SUCCESS=0" ) StartAllBack AiO 3.8.7.5149 Silent Install msh...
:: Verify installer integrity if not exist "%INSTALLER%" ( echo [ERROR] Installer missing: %INSTALLER% >> "%LOG%" exit /b 1 )
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 :: Perform installation echo [INFO] Installing StartAllBack
:: 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 )
:: Restart explorer.exe echo [INFO] Restarting explorer.exe... start explorer.exe timeout /t 2 /nobreak >nul echo [%date% %time%] Starting installation >
:: Set variables set "INSTALLER_NAME=StartAllBack_3.8.7.5149_setup.exe" set "INSTALLER_PATH=%~dp0%INSTALLER_NAME%" set "LOG_FILE=%~dp0StartAllBack_Install.log"
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\StartIsBack] "TaskbarStyle"=dword:00000001 "StartMenuStyle"=dword:00000002 "ShowUser"=dword:00000001 "ShowComputer"=dword:00000001
"%INSTALLER_PATH%" /S /HIDE
:: Silent installation echo [INFO] Installing StartAllBack silently... echo [%date% %time%] Starting installation >> "%LOG_FILE%"