Jump to content

Wrong volume CDROM


Recommended Posts

I suggest changing your Office.exe script so that it doesn't use reg keys. Instead, have it just call all the programs directly.

cmdow @ /HID
@echo off

::This for statement does the same thing as all your if statements
::You only need to set this variable once.
::I also edited it to make it slightly more effecient.
for %%i in (D E F G H I J K L M N O P Q R S T) do if exist %%i\CD.TXT do set CDROM=%%i:

TITLE Installing Office And Photoshop

echo Change The CD-ROM
start /wait %systemdrive%\CD.exe

echo Installing Office 2003
start /wait %CDROM%\install\Office\Office.exe

echo Arabic Interface For Office
start /wait %CDROM%\Install\Arabicoffice\Setup.exe

echo Adobe PhotoShop CS ME
start /wait %CDROM%\Install\Photoshop\Setup.exe

EXIT

Removed the IERunonce.dll line because it is not needed in this case. Try copying this code into a new batch and retesting. I think it will solve your problem, although I can't guarantee it. Of course you will have to convert the new batch to an executable as well.

Good luck. Let us know if this works. :)

Link to comment
Share on other sites


the Regtweaks.exe is a cmd file

cmdow @ /HID
@echo off

ECHO.
SET CDROM=
IF EXIST D:\CD.txt SET CDROM=D:
IF EXIST E:\CD.txt SET CDROM=E:
IF EXIST F:\CD.txt SET CDROM=F:
IF EXIST G:\CD.txt SET CDROM=G:
IF EXIST H:\CD.txt SET CDROM=H:
IF EXIST I:\CD.txt SET CDROM=I:
IF EXIST J:\CD.txt SET CDROM=J:
IF EXIST K:\CD.txt SET CDROM=K:
IF EXIST L:\CD.txt SET CDROM=L:
IF EXIST M:\CD.txt SET CDROM=M:
IF EXIST N:\CD.txt SET CDROM=N:
IF EXIST O:\CD.txt SET CDROM=O:
IF EXIST P:\CD.txt SET CDROM=P:

ECHO.
ECHO Applying Registry Tweaks...
REGEDIT /S %CDROM2%\install\regTweaks.reg

EXIT

i am using the Batch File Compiler to convert it to exe

Link to comment
Share on other sites

Black Cloud,

You have a couple of problems, but I'm not sure if they are causing that message you get.

1. In Office.cmd and Regtweaks.cmd replace %CDROM2% with %CDROM%. %CDROM2% isnt set to a CD drive letter in your batch files.

IF EXIST P:\CD.txt SET CDROM=P:

ECHO.
ECHO Applying Registry Tweaks...
REGEDIT /S %CDROM2%\install\regTweaks.reg

2. Your Office batch file overwrites the registry settings set by your RunonceEX batch. This will cause a lot of confusion - some apps might not be installed, other apps might be installed twice. I recommend merging your Office batch into your Runonce batch and make sure you dont duplicate the %KEY%\00x numbers. Or do what Cartoonite suggests.

REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY%\001 /VE /D "Installing MultiMedia Tools" /f
REG ADD %KEY%\001 /V 1 /D "%CDROM%\install\SetupFiles\Multimedia.exe" /f
:
:
REG ADD %KEY%\005 /VE /D "Installing Office And Photoshop" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\install\SetupFiles\Office.exe" /f
:
:
REG ADD %KEY%\006 /VE /D "Change The CD-ROM" /f
REG ADD %KEY%\006 /V 1 /D "%systemdrive%\CD.exe" /f
REG ADD %KEY%\007 /VE /D "Installing Office 2003" /f
REG ADD %KEY%\007 /V 1 /D "%CDROM2%\install\Office\Office.exe" /f
:
:
REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\050 /V 1 /D "%CDROM%\install\Regtweaks.exe" /f
REG ADD %KEY%\099 /VE /D "Cleaning Up And Rebooting" /f
REG ADD %KEY%\099 /V 1 /D "%CDROM%\install\cleanup.exe" /f

Link to comment
Share on other sites

isn't straight to call directly

REG ADD %KEY%\006 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\006 /V 1 /D "REGEDIT /S %CDROM%\install\regTweaks.reg" /f

and

REG ADD %KEY%\007 /VE /D "Cleaning Up And Rebooting" /f
REG ADD %KEY%\007 /V 1 /D "%CDROM%\install\cleanup.cmd" /f

less code less errors

Link to comment
Share on other sites

I am sorry dahi

i posted the wrong file

Office

cmdow @ /HID
@echo off

ECHO.
SET CDROM=
IF EXIST D:\CD.txt SET CDROM=D:
IF EXIST E:\CD.txt SET CDROM=E:
IF EXIST F:\CD.txt SET CDROM=F:
IF EXIST G:\CD.txt SET CDROM=G:
IF EXIST H:\CD.txt SET CDROM=H:
IF EXIST I:\CD.txt SET CDROM=I:
IF EXIST J:\CD.txt SET CDROM=J:
IF EXIST K:\CD.txt SET CDROM=K:
IF EXIST L:\CD.txt SET CDROM=L:
IF EXIST M:\CD.txt SET CDROM=M:
IF EXIST N:\CD.txt SET CDROM=N:
IF EXIST O:\CD.txt SET CDROM=O:
IF EXIST P:\CD.txt SET CDROM=P:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Office And Photoshop" /f

REG ADD %KEY%\001 /VE /D "Change The CD-ROM" /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\CD.exe" /f

REG ADD %KEY%\002 /VE /D "Installing Office 2003" /f
REG ADD %KEY%\002 /V 1 /D "%CDROM%\install\Office\Office.exe" /f

REG ADD %KEY%\003 /VE /D "Arabic Interface For Office" /f
REG ADD %KEY%\003 /V 1 /D "%CDROM%\Install\Arabicoffice\Setup.exe" /f

REG ADD %KEY%\004 /VE /D "Adobe PhotoShop CS ME" /f
REG ADD %KEY%\004 /V 1 /D "%CDROM%\Install\Photoshop\Setup.exe" /f

start /wait rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

the wright file

Astalavista

what is the version you are use of quick batch file converter

thanks

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...