Files
videoPlayer/install-autostart.bat
2025-10-02 01:52:03 -06:00

30 lines
966 B
Batchfile

@echo off
echo Installing Quantum Player Autostart...
echo.
REM Verificar si el archivo de autostart ya existe
if exist "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\quantum-autostart.bat" (
echo Autostart already installed. Updating...
del "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\quantum-autostart.bat"
)
REM Copiar el script de autostart al Startup folder
copy "%~dp0quantum-autostart.bat" "%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\quantum-autostart.bat"
if %errorlevel% == 0 (
echo.
echo ========================================
echo Autostart installed successfully!
echo Quantum Player will start automatically when Windows boots.
echo ========================================
echo.
echo You can disable autostart from the Settings panel in the app.
) else (
echo.
echo ERROR: Failed to install autostart.
echo Please run this script as Administrator.
)
echo.
pause