Cartoonite Posted January 25, 2005 Share Posted January 25, 2005 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 Photoshopecho Change The CD-ROMstart /wait %systemdrive%\CD.exeecho Installing Office 2003start /wait %CDROM%\install\Office\Office.exeecho Arabic Interface For Officestart /wait %CDROM%\Install\Arabicoffice\Setup.exeecho Adobe PhotoShop CS MEstart /wait %CDROM%\Install\Photoshop\Setup.exeEXITRemoved 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 More sharing options...
Astalavista Posted January 25, 2005 Share Posted January 25, 2005 he is reading the MST / 7zip guide i made I think that will solve his problem. Link to comment Share on other sites More sharing options...
The Black Cloud Posted January 25, 2005 Author Share Posted January 25, 2005 sorry Cartoonitebut if i remove the IERunonce.dll the installing well not run immediately Link to comment Share on other sites More sharing options...
asbsamsf Posted January 25, 2005 Share Posted January 25, 2005 REG ADD %KEY%\006 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\006 /V 1 /D "%CDROM%\install\Regtweaks.exe" /fare you importing Registry Tweaks from converted "Regtweaks.cmd" ? Link to comment Share on other sites More sharing options...
The Black Cloud Posted January 25, 2005 Author Share Posted January 25, 2005 the Regtweaks.exe is a cmd file cmdow @ /HID@echo offECHO.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.regEXITi am using the Batch File Compiler to convert it to exe Link to comment Share on other sites More sharing options...
Astalavista Posted January 25, 2005 Share Posted January 25, 2005 what version are u using? 1.0.6.3dont u want something like this instead of batch?http://img2.imagevenue.com/loc278/c06_f42_Snap1.gif Link to comment Share on other sites More sharing options...
The Black Cloud Posted January 25, 2005 Author Share Posted January 25, 2005 i am using Batch File Compiler PE v2.0 Link to comment Share on other sites More sharing options...
Dahi Posted January 25, 2005 Share Posted January 25, 2005 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.reg2. 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" /fREG ADD %KEY%\001 /VE /D "Installing MultiMedia Tools" /fREG ADD %KEY%\001 /V 1 /D "%CDROM%\install\SetupFiles\Multimedia.exe" /f::REG ADD %KEY%\005 /VE /D "Installing Office And Photoshop" /fREG ADD %KEY%\005 /V 1 /D "%CDROM%\install\SetupFiles\Office.exe" /f::REG ADD %KEY%\006 /VE /D "Change The CD-ROM" /fREG ADD %KEY%\006 /V 1 /D "%systemdrive%\CD.exe" /fREG ADD %KEY%\007 /VE /D "Installing Office 2003" /fREG ADD %KEY%\007 /V 1 /D "%CDROM2%\install\Office\Office.exe" /f::REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\050 /V 1 /D "%CDROM%\install\Regtweaks.exe" /fREG ADD %KEY%\099 /VE /D "Cleaning Up And Rebooting" /fREG ADD %KEY%\099 /V 1 /D "%CDROM%\install\cleanup.exe" /f Link to comment Share on other sites More sharing options...
Astalavista Posted January 25, 2005 Share Posted January 25, 2005 your compiler shows the cmd windows when it is launchedquick batch file converter is superior bec. it is totally silent and doesnot show anything. even without cmdowactually if he uses nlite he can integrate everything with 7z on a single cd. Link to comment Share on other sites More sharing options...
asbsamsf Posted January 25, 2005 Share Posted January 25, 2005 isn't straight to call directlyREG ADD %KEY%\006 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\006 /V 1 /D "REGEDIT /S %CDROM%\install\regTweaks.reg" /fandREG ADD %KEY%\007 /VE /D "Cleaning Up And Rebooting" /fREG ADD %KEY%\007 /V 1 /D "%CDROM%\install\cleanup.cmd" /fless code less errors Link to comment Share on other sites More sharing options...
asbsamsf Posted January 25, 2005 Share Posted January 25, 2005 @Dahi good work you're right about this Link to comment Share on other sites More sharing options...
The Black Cloud Posted January 25, 2005 Author Share Posted January 25, 2005 I am sorry dahi i posted the wrong file Office cmdow @ /HID@echo offECHO.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\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Office And Photoshop" /fREG ADD %KEY%\001 /VE /D "Change The CD-ROM" /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\CD.exe" /fREG ADD %KEY%\002 /VE /D "Installing Office 2003" /fREG ADD %KEY%\002 /V 1 /D "%CDROM%\install\Office\Office.exe" /fREG ADD %KEY%\003 /VE /D "Arabic Interface For Office" /fREG ADD %KEY%\003 /V 1 /D "%CDROM%\Install\Arabicoffice\Setup.exe" /fREG ADD %KEY%\004 /VE /D "Adobe PhotoShop CS ME" /fREG ADD %KEY%\004 /V 1 /D "%CDROM%\Install\Photoshop\Setup.exe" /fstart /wait rundll32.exe iernonce.dll,RunOnceExProcessEXITthe wright fileAstalavistawhat is the version you are use of quick batch file converterthanks Link to comment Share on other sites More sharing options...
Astalavista Posted January 25, 2005 Share Posted January 25, 2005 I am using the lastest version. but i am in communication with the programmer.the next version will hv a password protected decompiler.and few other tricks Link to comment Share on other sites More sharing options...
The Black Cloud Posted January 25, 2005 Author Share Posted January 25, 2005 the lastest version is 1.0.6.3 Link to comment Share on other sites More sharing options...
Astalavista Posted January 25, 2005 Share Posted January 25, 2005 yup that is what i have. the new version will be release soon. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now