:: sysinstall :: :: usetools command shell script :: :: ::============================================================================== :: sysinstall script-toolset: sysinstall internet/lan get-down script-tool ::----------------------------------------------------------------------------- :: [filename]: getinstall.cmd :: [location]: ~ :: [sitelink]: http://usetools.net/getinstall.7z ::----------------------------------------------------------------------------- :: :: [sysinstall] :: sysinstall is integrated, preconfigured and automated software installation :: system by usetools with advantaged local and networking features provided. :: :: [please note] :: sysinstall is compatible with 32bit nt-kernel operating systems: :: windows xp sp2, sp3 (pro, mce, home, embedded, fundamentals for legacy pc). :: complete gui support is implemented now for russian interface language only. :: ntfs file system as systemroot patition is highly recommended. :: :: [how to use] :: run sysinstall.cmd from sysinstall dir (complete installation, mode-1/2) :: or run setsys32.cmd from sysinstall dir (express installation, mode-3). :: express installation is extremly fast and it is possible under safe mode. :: use sysconfig.ini to customize installation and system configuration. :: remove sysconfig.ini before installation for fail-safe defaults. :: for brief sysinstall files descriptions refer to descript.ion file. :: use getinstall.cmd for upgrades and updates from internet, intranet or lan. :: :: [usetools] :: usetools is the project about free, extremly useful, sharp and smart software :: tools for everyday lifegame. usetools project team is allways in development :: and investigation progress of making things better thus it is highly :: experimental perpetual-beta software lab with testing results based on real :: practical usage. usetools is powered by stand alone free software packages :: with preconfigured and high customized applications for providing :: better defaults – usetools packs - http://usetools.net/softpacks. :: usetools project has web homepage at http://usetools.net, :: newsgroup at http://groups.google.com/group/usetools :: and news rss feed at http://feeds.feedburner.com/usetools. :: usetools is real thing with absolute alternative advantages powered by :: freerange minds able to think, to change and to create. :: if you have feature requests, bug reports or have an idea how to make some of :: usetools packs a little or much more better please share this information :: with us by sending message in free form to mail at usetools dot net. :: have a nice day and stay tuned. ::============================================================================== :: @echo off mode con cols=80 goto begin :begin cls &color 1f &title [getinstall] ver|find.exe "95" &if not errorlevel 1 goto error_os ver|find.exe "98" &if not errorlevel 1 goto error_os ver|find.exe "Me" &if not errorlevel 1 goto error_os ver|find.exe "5.0" &if not errorlevel 1 goto error_os ver|find.exe "5.2" &if not errorlevel 1 goto error_os ver|find.exe "6.0" &if not errorlevel 1 goto error_os ver|find.exe "7.0" &if not errorlevel 1 goto error_os ver|find.exe "5.1" echo running %~nx0 at %logonserver%@%username% on %os% %processor_architecture% %sessionname% &echo. echo ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ echo ùùù usetools project -everything coinside ùùù http://usetools.net ùùù echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ echo ÛÛ ÛÛ ÛÛßßßßÛÛ ÛßßßßßßÛ ßßßÛÛßßß ÛßßßßßßÛ ÛßßßßßßÛ ÛÛ ÛÛßßßßÛÛ echo ÛÛ ÛÛ ÛÛ Û ÛÛ Û Û Û Û ÛÛ ÛÛ echo ÛÛ ÛÛ ßßßßßßÛ Ûßßßßß ÛÛ Û Û Û Û ÛÛ ßßßßßßÛ echo ÛÛ ÛÛ ÛÛ Û Û Û ÛÛ Û Û Û Û ÛÛ ÛÛ ÛÛ Û echo ßßßßßßß ßßßßßßßß ßßßßßßßß ßß ßßßßßßßß ßßßßßßßß ßßßßßßßß ßßßßßßßß echo ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ echo ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß echo. echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ echo ³ SYSINSTALL is integrated, preconfigured and automated ³ echo ³ universal software and settings installation system ³ echo ³ with advantaged local and networking features provided ³ echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ echo. set input01= set input10= set input20= set u_server= set sysinstall=%systemdrive%\sysinstall set sysupdate=%systemdrive%\sysupd_%random% set s32=%systemroot%\system32 set input01=%1 set input02=%2 if "%input01%"=="" set u_server=http://usetools.net if "%input01%"==" " set u_server=http://usetools.net set syslaunch=%~dp0 cd /d "%syslaunch%" if not exist "%syslaunch%wget.exe" ( if exist %s32%\wget.exe copy %s32%\wget.exe "%syslaunch%" >>"%temp%\sysinstall.tmp" if not exist %s32%\wget.exe copy %sysinstall%\wget.exe "%syslaunch%" >>"%temp%\sysinstall.tmp" if not exist %sysinstall%\wget.exe start /wait iexplore.exe "http://usetools.net/sysinstall/wget.exe" ) if not exist "%syslaunch%wget.exe" ( color 74 &title [getinstall]: stop. echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ echo ³ stop. wget.exe which must be located in same dir with getinstall.cmd ³ echo ³ is not found. it is impossible to go on thus press any key to exit... ³ echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ pause >>"%temp%\sysinstall.tmp" exit ) if "%input01%"=="--auto" ( set u_server=http://%input02% if "%input02%"=="" set u_server=http://usetools.net if "%input02%"==" " set u_server=http://usetools.net set getstart=auto set wgetoption=-nc goto getdown ) if "%u_server%" neq "http://usetools.net" ( set u_server=http://%input01%:8800 set getstart=auto set wgetoption=-nc goto getdown ) goto input10 :input10 title [getinstall]: press enter echo ------------------------------------------------------ echo press [enter] to get complete sysinstall distribution echo or input [h] and press [enter] to view brief help/info echo. set /p input10= # if "%input10%"=="h" goto help if "%input10%"=="H" goto help if "%input10%"=="" goto input20 if "%input10%"==" " goto input20 if "%input10%"=="r" shutdown -i -r -t 5 -f -c "system shutdown: rebooting..." -f &exit if "%input10%"=="R" shutdown -i -r -t 5 -f -c "system shutdown: rebooting..." -f &exit if "%input10%"=="o" shutdown -i -s -t 5 -f -c "system shutdown: poweroff" -f &exit if "%input10%"=="O" shutdown -i -s -t 5 -f -c "system shutdown: poweroff" -f &exit if "%input10%"=="0" exit if "%input10%"=="x" exit if "%input10%"=="X" exit goto input20 :: :input20 echo. &echo. &title [getinstall]: press enter or input -ip/hostname without "http://" and without tcp port number echo press [enter] to get sysinstall from usetools.net server echo or input custom [ip-adress/hostname] and press [enter] echo. set /p input20= # if "%input20%"=="" set u_server=http://usetools.net&goto getdown if "%input20%"==" " set u_server=http://usetools.net&goto getdown set u_server=http://%input20%:8800 goto getdown :: :getdown for /f "tokens=2 delims=[]" %%a in ('ping %computername% -n 1') do ( set ip=%%a ) echo. echo %logonserver%@%username% ip-adress: %ip% echo %logonserver%@%username% storage dir: %sysupdate% echo %logonserver%@%username% sysinstall dir: %sysinstall% echo remote sysinstall file-server: %u_server% echo. if not exist "%sysupdate%" md "%sysupdate%" if not exist "%sysupdate%\setupbin" md "%sysupdate%\setupbin" color 1e &echo. cd /d "%sysupdate%" "%syslaunch%wget.exe" -v --tries=10 --random-wait -c %u_server%/sysinstall/sysinstall.lst "%syslaunch%wget.exe" -v --tries=10 --random-wait -c -i sysinstall.lst -B %u_server%/sysinstall/ cd "%sysupdate%\setupbin" "%syslaunch%wget.exe" -v -N --tries=10 --random-wait -c %u_server%/sysinstall/setupbin/setupbin.lst "%syslaunch%wget.exe" -v --tries=10 --random-wait -c -i setupbin.lst -B %u_server%/sysinstall/setupbin/ echo. &cd /d "%sysupdate%" &color 1f echo. echo %logonserver%@%username% ip-adress: %ip% echo %logonserver%@%username% storage dir: %sysupdate% echo %logonserver%@%username% sysinstall dir: %sysinstall% echo remote sysinstall file-server: %u_server% echo. if "getstart"=="auto" goto sysinstall title [getinstall]: press any key echo. &echo press any key to start sysinstall now echo. &pause >>"%temp%\sysinstall.tmp" :: :sysinstall echo. &color 17 &title [getinstall]: starting sysinstall... cd /d "%sysupdate%" start /high sysinstall.cmd exit :help title [getinstall]: help/info/about &cls &color 02 &echo. echo [about] &echo. echo sysinstall is integrated, preconfigured and automated software installation echo system with advantaged local and networking features provided. echo sysinstall is compatible with 32bit nt-kernel operating systems: echo windows xp sp2,sp3 (pro, mce, home, embedded, fundamentals for legacy pc). echo complete gui support is implemented now for russian interface language only. echo. echo [how to use] &echo. echo run sysinstall.cmd from sysinstall dir (complete installation, mode-1/2) echo or run setsys32.cmd from sysinstall dir (express installation, mode-3). echo express installation is extremly fast and it is possible under safe mode. echo use sysconfig.ini to customize installation and system configuration. echo remove sysconfig.ini before installation for fail-safe defaults. echo for brief sysinstall files descriptions refer to descript.ion file. echo use getinstall.cmd for upgrades and updates from internet, intranet or lan. echo visit http://usetools.net echo. echo [command line] &echo. echo getinstall{.cmd} {hostname/ip} echo getinstall{.cmd} {--auto} echo "hostname/ip" - hostname or ip-addess without http:// and tcp port echo "--auto" - download and start sysinstall without additional prompt echo. echo [please note] &echo. echo 1. wget.exe must be located in same dir with getinstall.cmd echo 2. local area network and/or internet connection is requiered title [getinstall]: press any key pause goto begin :: : error_os color 4f &echo. title [getinstall]: stop. echo ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ echo ³ stop. this os version is not supported by sysinstall script-toolset. ³ echo ³ installation is impossible at all thus press any key to exit. ³ echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ pause >>"%temp%\sysinstall.tmp" exit ::