create_installstick.bat: fix install script (thanks to cowbalt and merlin)

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-12-26 01:32:50 +01:00
parent e9a7669184
commit a303a85edf

View File

@ -38,20 +38,23 @@ ECHO 2. Click on 'Properties'
ECHO 3. Change to the 'Compatibility' tab ECHO 3. Change to the 'Compatibility' tab
ECHO 4. Check the 'Run this program as an administrator' checkbox ECHO 4. Check the 'Run this program as an administrator' checkbox
ECHO. ECHO.
ECHO Click Ok and run 'create_installstick.bat' again,
ECHO answering 'N' to the first prompt
ECHO. ECHO.
ECHO. ECHO.
ECHO ****************************************************** ECHO ******************************************************
ECHO. ECHO.
pause ECHO Press any key to open the syslinux directory
cmd /k "start %CD%\3rdparty\syslinux\win32" ECHO.
GOTO END pause >NUL
explorer "%CD%\3rdparty\syslinux\win32"
ECHO When finished changing the administrator rights,
ECHO please press any key to continue with the installation
pause >NUL
GOTO :INSTALL
:INSTALL :INSTALL
3rdparty\md5sum\md5sum.exe -c --status %CD%\target\SYSTEM.md5 3rdparty\md5sum\md5sum.exe -c "%CD%\target\SYSTEM.md5"
IF ERRORLEVEL 1 GOTO BADMD5 IF ERRORLEVEL 1 GOTO BADMD5
3rdparty\md5sum\md5sum.exe -c --status %CD%\target\KERNEL.md5 3rdparty\md5sum\md5sum.exe -c "%CD%\target\KERNEL.md5"
IF ERRORLEVEL 1 GOTO BADMD5 IF ERRORLEVEL 1 GOTO BADMD5
CLS CLS
ECHO. ECHO.
@ -74,6 +77,7 @@ SET /P DRIVE= --
if %DRIVE%!==! goto INSTALL if %DRIVE%!==! goto INSTALL
format %DRIVE% /V:INSTALL /Q /FS:FAT32 format %DRIVE% /V:INSTALL /Q /FS:FAT32
3rdparty\syslinux\win32\syslinux.exe -f -m -a %DRIVE% 3rdparty\syslinux\win32\syslinux.exe -f -m -a %DRIVE%
ECHO Copying necessary files to %DRIVE%
copy target\* %DRIVE% copy target\* %DRIVE%
copy sample.conf\syslinux_installer.cfg %DRIVE%\syslinux.cfg copy sample.conf\syslinux_installer.cfg %DRIVE%\syslinux.cfg
GOTO END GOTO END