Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title Installer
- color f2
- if not exist "INSTALL_DIRECTORY" mkdir INSTALL_DIRECTORY
- cls
- if exist "INSTALL_DIRECTORY\version.txt" bitsadmin /transfer Version /download /priority foreground http://getlink.s2u.vn/redirect.php?link=www.mediafire.com/file/1234567890/version.txt C:\Temp\version.txt & goto update
- if not exist "INSTALL_DIRECTORY\version.txt" bitsadmin /transfer Install /download /priority foreground http://getlink.s2u.vn/redirect.php?link=www.mediafire.com/file/1234567890/YOUR_BATCH.bat "INSTALL_DIRECTORY\YOUR_BATCH.bat" & goto status
- :update
- cls
- ping localhost -n 1 > nul
- set /p version=<"C:\Temp\version.txt"
- set /p versionold=<"INSTALL_DIRECTORY\version.txt"
- if %version% gtr %versionold% goto updater
- if %version% leq %versionold% goto final
- goto final
- :updater
- cls
- ping localhost -n 1 > nul
- rd /s /q "INSTALL_DIRECTORY"
- ping localhost -n 1 > nul
- mkdir "INSTALL_DIRECTORY"
- ping localhost -n 1 > nul
- cls
- bitsadmin /transfer Update /download /priority foreground http://getlink.s2u.vn/redirect.php?link=www.mediafire.com/file/1234567890/YOUR_BATCH.bat "INSTALL_DIRECTORY\YOUR_BATCH.bat"
- goto status
- :status
- echo.
- echo.
- ping localhost -n 1 > nul
- color fa
- if exist "INSTALL_DIRECTORY\YOUR_BATCH.bat" echo Success! & echo. & pause & exit
- color fc
- if not exist "INSTALL_DIRECTORY\YOUR_BATCH.bat" echo Falure! & echo. & pause & exit
- :final
- echo.
- echo.
- ping localhost -n 1 > nul
- echo No New Version Available.
- echo.
- echo You Are Up To Date!
- pause
- exit
- :fail
- echo.
- echo.
- ping localhost -n 1 > nul
- echo Could Not Update.
- echo.
- echo Have You Installed It Yet?
- pause
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement