Jump to content

install.cmd help


donald7777

Recommended Posts

hello everyone, I am just finishing my multiboot disk for different computers around my home. when i get this error when it install my software.

The system cannot find the batch label specified - XPHO

1 file<s> copied

here is my install.cmd

cmdow @ /HID
@echo off

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\SOFTWARE SET CDROM=%%i:

@echo off
REM next line makes sure the *.TAG extension is identified
setlocal enableextensions
REM checks for the XPHO.tag file and go to the corresponding section:
if exist %SystemDrive%\XPHO.TAG call :XPHO
REM checks for the XPHR.tag and go to the corresponding section:
if exist %SystemDrive%\XPHR.TAG call :XPHR
REM checks for the XPHU.tag and go to the corresponding section:
if exist %SystemDrive%\XPHU.TAG call :XPHU
REM checks for the XPPC.tag and go to the corresponding section:
if exist %SystemDrive%\XPPC.TAG call :XPPC
REM checks for the XPPO.tag and go to the corresponding section:
if exist %SystemDrive%\XPPO.TAG call :XPPO
REM checks for the XPPR.tag and go to the corresponding section:
if exist %SystemDrive%\XPPR.TAG call :XPPR
REM checks for the XPPU.tag and go to the corresponding section:
if exist %SystemDrive%\XPPU.TAG call :XPPU
REM checks for the XHOD.tag and go to the corresponding section:
if exist %SystemDrive%\XHOD.TAG call :XHOD
REM checks for the XHRD.tag and go to the corresponding section:
if exist %SystemDrive%\XHRD.TAG call :XHRD
REM checks for the XHUD.tag and go to the corresponding section:
if exist %SystemDrive%\XHUD.TAG call :XHUD
REM checks for the XPCD.tag and go to the corresponding section:
if exist %SystemDrive%\XPCD.TAG call :XPCD
REM checks for the XPOD.tag and go to the corresponding section:
if exist %SystemDrive%\XPOD.TAG call :XPOD
REM checks for the XPRD.tag and go to the corresponding section:
if exist %SystemDrive%\XPRD.TAG call :XPRD
REM checks for the XPUD.tag and go to the corresponding section:
if exist %SystemDrive%\XPUD.TAG call :XPUD

REM End
goto :end

:XPHO
REM Here we'll add the SOFTWARE to install to the XP Home OEM version.
REM "%~dp0" refers to the full path the Install.cmd is in, so you don't have to worry about drive letters
REM End this section
REM end of this section :
goto :end

:XPHR
REM Here we'll add the SOFTWARE to install to the XP Home Retail version.
REM End this section
REM end of this section :
goto :end

:XPHU
REM Here we'll add the SOFTWARE to install to the XP Home Upgrade version.
REM End this section
REM end of this section :
goto :end

:XPPC
REM Here we'll add the SOFTWARE to install to the XP Professional Corporate version.
REM End this section
REM end of this section :
goto :end

:XPPO
REM Here we'll add the SOFTWARE to install to the XP Professional OEM version.
REM End this section
REM end of this section :
goto :end

:XPPR
REM Here we'll add the SOFTWARE to install to the XP Professional Retail version.
REM End this section
REM end of this section :
goto :end

:XPPU
REM Here we'll add the SOFTWARE to install to the XP Professional Upgrade version.
REM End this section
REM end of this section :
goto :end

:XHOD
REM Here we'll add the SOFTWARE to install to the XP Home OEM version.
%SystemDrive%\DPsFnshr.exe
REM End this section
REM end of this section :
goto :end

:XHRD
REM Here we'll add the SOFTWARE to install to the XP Home Retail version.
%SystemDrive%\DPsFnshr.exe
REM End this section
REM end of this section :
goto :end

:XHUD
REM Here we'll add the SOFTWARE to install to the XP Home Upgrade version.
%SystemDrive%\DPsFnshr.exe
REM End this section
REM end of this section :
goto :end

:XPCD
REM Here we'll add the SOFTWARE to install to the XP Professional Corporate version.
%SystemDrive%\DPsFnshr.exe
REM End this section
REM end of this section :
goto :end

:XPOD
REM Here we'll add the SOFTWARE to install to the XP Professional OEM version.
%SystemDrive%\DPsFnshr.exe
REM End this section
REM end of this section :
goto :end

:XPRD
REM Here we'll add the SOFTWARE to install to the XP Professional Retail version.
%SystemDrive%\DPsFnshr.exe
REM End this section
REM end of this section :
goto :end

:XPUD
REM Here we'll add the SOFTWARE to install to the XP Professional Upgrade version.
%SystemDrive%\DPsFnshr.exe
REM End this section
REM end of this section :
goto :end

:end
REM Here we'll add the options for every OS.
%CDROM%\SOFTWARE\ADOBE\Flash\install_flash_player_10_active_x.msi /q
%CDROM%\SOFTWARE\ADOBE\Shockwave\sw_lic_full_installer.msi /qn
%CDROM%\SOFTWARE\OEMLOGO.CMD
%CDROM%\SOFTWARE\REGISTRY.CMD
%CDROM%\SOFTWARE\CLEANUP.CMD
del /f /q %SystemDrive%\*.TAG

exit

please help

Link to comment
Share on other sites


I would suggest you start by replacing your first 39 lines with these!

@ECHO OFF&SETLOCAL ENABLEEXTENSIONS

FOR %%# IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (
IF EXIST %%#:\SOFTWARE SET "CDROM=%%#:")

REM CHECKS FOR A TAG FILE AND GOES TO THE CORRESPONDING SECTION
FOR %%# IN (%SYSTEMDRIVE%\*.TAG) DO CALL :%%~n#

GOTO :EOF

Then I'd also suggest you change the executable lines at the bottom to:

START /WAIT %CDROM%\SOFTWARE\ADOBE\Flash\install_flash_player_10_active_x.msi /q
START /WAIT %CDROM%\SOFTWARE\ADOBE\Shockwave\sw_lic_full_installer.msi /qn
CALL %CDROM%\SOFTWARE\OEMLOGO.CMD
CALL %CDROM%\SOFTWARE\REGISTRY.CMD
CALL %CDROM%\SOFTWARE\CLEANUP.CMD

Link to comment
Share on other sites

I would suggest you start by replacing your first 39 lines with these!
@ECHO OFF&SETLOCAL ENABLEEXTENSIONS

FOR %%# IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (
IF EXIST %%#:\SOFTWARE SET "CDROM=%%#:")

REM CHECKS FOR A TAG FILE AND GOES TO THE CORRESPONDING SECTION
FOR %%# IN (%SYSTEMDRIVE%\*.TAG) DO CALL :%%~n#

GOTO :EOF

Then I'd also suggest you change the executable lines at the bottom to:

START /WAIT %CDROM%\SOFTWARE\ADOBE\Flash\install_flash_player_10_active_x.msi /q
START /WAIT %CDROM%\SOFTWARE\ADOBE\Shockwave\sw_lic_full_installer.msi /qn
CALL %CDROM%\SOFTWARE\OEMLOGO.CMD
CALL %CDROM%\SOFTWARE\REGISTRY.CMD
CALL %CDROM%\SOFTWARE\CLEANUP.CMD

roger will try thankyou

Link to comment
Share on other sites

ok the calls work great but it still give me an error when it trys to find the tag. i even removed all the tag info so to test out the code be errors still appear.

@ECHO OFF&SETLOCAL ENABLEEXTENSIONS

FOR %%# IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (
IF EXIST %%#:\SOFTWARE SET "CDROM=%%#:")

REM CHECKS FOR A TAG FILE AND GOES TO THE CORRESPONDING SECTION
FOR %%# IN (%SYSTEMDRIVE%\*.TAG) DO CALL :%%~n#

GOTO :end

:end
REM Here we'll add the options for every OS.
CALL %SystemDrive%\DPsFnshr.exe
START /WAIT %CDROM%\SOFTWARE\ADOBE\Flash\install_flash_player_10_active_x.msi /q
START /WAIT %CDROM%\SOFTWARE\ADOBE\Shockwave\sw_lic_full_installer.msi /qn
CALL %CDROM%\SOFTWARE\OEMLOGO.CMD
CALL %CDROM%\SOFTWARE\REGISTRY.CMD
CALL "del /f /q %SystemDrive%\*.TAG"
CALL %CDROM%\SOFTWARE\CLEANUP.CMD

exit

here is error:

The system cannot find the batch label specified - XPHR

maybe i am blind and missing an obvious command.

Link to comment
Share on other sites

  • Change your CALL to a GOTO and change your :end label:
    @ECHO OFF&SETLOCAL ENABLEEXTENSIONS

    FOR %%# IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO (
    IF EXIST %%#:\SOFTWARE SET "CDROM=%%#:")

    REM CHECKS FOR A TAG FILE AND GOES TO THE CORRESPONDING SECTION
    FOR %%# IN (%SYSTEMDRIVE%\*.TAG) DO GOTO %%~n#

    GOTO :EOF

    :XPHO
    REM Here we'll add the SOFTWARE to install to the XP Home OEM version.
    REM "%~dp0" refers to the full path the Install.cmd is in, so you don't have to worry about drive letters
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XPHO.TAG
    GOTO OPTS

    :XPHR
    REM Here we'll add the SOFTWARE to install to the XP Home Retail version.
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XPHR.TAG
    GOTO OPTS

    :XPHU
    REM Here we'll add the SOFTWARE to install to the XP Home Upgrade version.
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XPHU.TAG
    GOTO OPTS

    :XPPC
    REM Here we'll add the SOFTWARE to install to the XP Professional Corporate version.
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XPPC.TAG
    GOTO OPTS

    :XPPO
    REM Here we'll add the SOFTWARE to install to the XP Professional OEM version.
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XPPO.TAG
    GOTO OPTS

    :XPPR
    REM Here we'll add the SOFTWARE to install to the XP Professional Retail version.
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XPPR.TAG
    GOTO OPTS

    :XPPU
    REM Here we'll add the SOFTWARE to install to the XP Professional Upgrade version.
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XPPU.TAG
    GOTO OPTS

    :XHOD
    REM Here we'll add the SOFTWARE to install to the XP Home OEM version.
    %SystemDrive%\DPsFnshr.exe
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XHOD.TAG
    GOTO OPTS

    :XHRD
    REM Here we'll add the SOFTWARE to install to the XP Home Retail version.
    %SystemDrive%\DPsFnshr.exe
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XHRD.TAG
    GOTO OPTS

    :XHUD
    REM Here we'll add the SOFTWARE to install to the XP Home Upgrade version.
    %SystemDrive%\DPsFnshr.exe
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XHUD.TAG
    GOTO OPTS

    :XPCD
    REM Here we'll add the SOFTWARE to install to the XP Professional Corporate version.
    %SystemDrive%\DPsFnshr.exe
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XPCD.TAG
    GOTO OPTS

    :XPOD
    REM Here we'll add the SOFTWARE to install to the XP Professional OEM version.
    %SystemDrive%\DPsFnshr.exe
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XPOD.TAG
    GOTO OPTS

    :XPRD
    REM Here we'll add the SOFTWARE to install to the XP Professional Retail version.
    %SystemDrive%\DPsFnshr.exe
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XPRD.TAG
    GOTO OPTS

    :XPUD
    REM Here we'll add the SOFTWARE to install to the XP Professional Upgrade version.
    %SystemDrive%\DPsFnshr.exe
    REM End this section
    REM end of this section :
    DEL/F %SYSTEMDRIVE%\XPUD.TAG

    :OPTS
    REM Here we'll add the options for every OS.
    START /WAIT %CDROM%\SOFTWARE\ADOBE\Flash\install_flash_player_10_active_x.msi /q
    START /WAIT %CDROM%\SOFTWARE\ADOBE\Shockwave\sw_lic_full_installer.msi /qn
    CALL %CDROM%\SOFTWARE\OEMLOGO.CMD
    CALL %CDROM%\SOFTWARE\REGISTRY.CMD
    CALL %CDROM%\SOFTWARE\CLEANUP.CMD


  • Is it possible that you have UNIX line endings as opposed to DOS?
    It may be worth running the file through something like UnixToDos to make sure.
  • Is it at all possible that in your posted code that you have removed a lot of information?
    i.e All of the software you are applying to each edition of Windows.
    If so you may have a problem with the size of the batch file.
    My suggestion in this case would be to call individual batch files instead of labels within the batch file itself.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...