XKnoppix Posted March 28, 2004 Author Posted March 28, 2004 How's this looking?REG ADD %KEY%\170 /VE /D "Registering CDRWIN" /fREG ADD %KEY%\170 /V 1 /D "cmd.exe /C\"XCOPY \"%CDROM%\$OEM$\$1\install\Applications\CDRWIN\cdrwin.dat" \"%SystemDrive%\CDRWIN3\" /E /I /Q /H /R /Y\"\"" /fWill it work?Thanks
Alanoll Posted March 28, 2004 Posted March 28, 2004 it should, but god forbid you from testing it yourself.
XKnoppix Posted March 28, 2004 Author Posted March 28, 2004 Okay but what about the %CDROM% thing?Do you use %CDROM% in your RunOneEx or do you use %SystemDrive%?
XKnoppix Posted March 28, 2004 Author Posted March 28, 2004 By the way, i just tried those lines i posted earlier and they didn't work What's the problem?
Alanoll Posted March 28, 2004 Posted March 28, 2004 in your runonce file, do you have CDROM defined? if not that's a very good indication of why it didn't work.You need to change the source path to what You actually have. It's not rocket science. And even then i bet you could get the right mixture of Oxygen and Helium to make your propellant and a nice aerodynamic design should be fairly simple after that.
XKnoppix Posted March 28, 2004 Author Posted March 28, 2004 Here's my RunOnceEx.cmdcmdow @ /HID@echo offIF EXIST C:\WIN51IP.SP1 set CDROM=C:IF EXIST D:\WIN51IP.SP1 set CDROM=D:IF EXIST E:\WIN51IP.SP1 set CDROM=E:IF EXIST F:\WIN51IP.SP1 set CDROM=F:IF EXIST G:\WIN51IP.SP1 set CDROM=G:IF EXIST H:\WIN51IP.SP1 set CDROM=H:IF EXIST I:\WIN51IP.SP1 set CDROM=I:IF EXIST J:\WIN51IP.SP1 set CDROM=J:IF EXIST K:\WIN51IP.SP1 set CDROM=K:IF EXIST L:\WIN51IP.SP1 set CDROM=L:IF EXIST M:\WIN51IP.SP1 set CDROM=M:IF EXIST N:\WIN51IP.SP1 set CDROM=N:IF EXIST O:\WIN51IP.SP1 set CDROM=O:IF EXIST P:\WIN51IP.SP1 set CDROM=P:IF EXIST Q:\WIN51IP.SP1 set CDROM=Q:IF EXIST R:\WIN51IP.SP1 set CDROM=R:IF EXIST S:\WIN51IP.SP1 set CDROM=S:IF EXIST T:\WIN51IP.SP1 set CDROM=T:IF EXIST U:\WIN51IP.SP1 set CDROM=U:IF EXIST V:\WIN51IP.SP1 set CDROM=V:IF EXIST W:\WIN51IP.SP1 set CDROM=W:IF EXIST X:\WIN51IP.SP1 set CDROM=X:IF EXIST Y:\WIN51IP.SP1 set CDROM=Y:IF EXIST Z:\WIN51IP.SP1 set CDROM=Z:REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" /v RunOnceEx /f >NULSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\010 /VE /D "ATI Drivers" /fREG ADD %KEY%\010 /V 1 /D "%CDROM%\Applications\ATI\Driver\Setup.exe -s -f1%CDROM%\Applications\ATI\Driver\setup.iss" /fREG ADD %KEY%\020 /VE /D "ATI Control Panel" /fREG ADD %KEY%\020 /V 1 /D "%CDROM%\Applications\ATI\Control\Setup.exe -s -f1%CDROM%\Applications\ATI\Control\setup.iss" /fREG ADD %KEY%\030 /VE /D "Adobe Acrobat Reader" /fREG ADD %KEY%\030 /V 1 /D "%CDROM%\Applications\AdobeReader6\AR6.msi /QN" /fREG ADD %KEY%\040 /VE /D "Microsoft .Net Framework" /fREG ADD %KEY%\040 /V 1 /D "%CDROM%\Applications\NetFramework\netfx.msi /QN" /fREG ADD %KEY%\050 /VE /D "Nero Burning Rom" /fREG ADD %KEY%\050 /V 1 /D "REGEDIT /S %CDROM%\Registry\nero.reg" /fREG ADD %KEY%\050 /V 2 /D "%CDROM%\Applications\Nero\Nero6009.exe /no_ui /silent /noreboot" /fREG ADD %KEY%\060 /VE /D "Windows Media Player 9" /fREG ADD %KEY%\060 /V 1 /D "%CDROM%\Applications\WMP9\MPSetupXP.exe /Q:A /R:N" /fREG ADD %KEY%\070 /VE /D "Registering Video Codecs" /fREG ADD %KEY%\070 /V 1 /D "regsvr32.exe %systemroot%\system32\xvid.ax /s" /fREG ADD %KEY%\070 /V 2 /D "regsvr32.exe %systemroot%\system32\divxdec.ax /s" /fREG ADD %KEY%\070 /V 3 /D "regsvr32.exe %systemroot%\system32\ac3filter.ax /s" /fREG ADD %KEY%\080 /VE /D "Registering mIRC" /fREG ADD %KEY%\080 /V 1 /D "REGEDIT /S %CDROM%\Registry\mirc.reg" /fREG ADD %KEY%\090 /VE /D "MSN Messenger 6.1" /fREG ADD %KEY%\090 /V 1 /D "%CDROM%\Applications\MSN\MsnMsgs.msi /QN" /fREG ADD %KEY%\100 /VE /D "WinRAR 3.30" /fREG ADD %KEY%\100 /V 1 /D "%CDROM%\Applications\WinRAR\wrar330.exe /s" /fREG ADD %KEY%\110 /VE /D "Hauppauge WinTV Drivers" /fREG ADD %KEY%\110 /V 1 /D "%CDROM%\Applications\WinTV\whql.exe /s" /fREG ADD %KEY%\110 /V 2 /D "taskkill.exe /F /IM whql.exe" /fREG ADD %KEY%\120 /VE /D "CDRWIN 3.9f" /fREG ADD %KEY%\120 /V 1 /D "%CDROM%\Applications\CDRWIN\cdrwin.exe /s" /fREG ADD %KEY%\120 /V 2 /D "cmd.exe /c xcopy /y %CDROM%\Applications\CDRWIN\Cdrwin.dat \"%systemdrive%\CDRWIN3\\"" /fREG ADD %KEY%\130 /VE /D "**** NFO Viewer" /fREG ADD %KEY%\130 /V 1 /D "%CDROM%\Applications\****\****.msi /QN" /fREG ADD %KEY%\140 /VE /D "Warez P2P Client" /fREG ADD %KEY%\140 /V 1 /D "%CDROM%\Applications\Warez\warez.exe /S" /fREG ADD %KEY%\150 /VE /D "Longhorn Transformation Pack" /fREG ADD %KEY%\150 /V 1 /D "%CDROM%\Applications\Longhorn\LTP.exe /s" /fREG ADD %KEY%\150 /V 2 /D "taskkill.exe /F /IM LTP.exe" /fREG ADD %KEY%\160 /VE /D "Applying Registry Tweaks" /fREG ADD %KEY%\160 /V 1 /D "REGEDIT /S %CDROM%\Registry\tweaks.reg" /fREG ADD %KEY%\170 /VE /D "Enabling Windows File Protection" /fREG ADD %KEY%\170 /V 1 /D "REGEDIT /S %CDROM%\Registry\wfp.reg" /fREG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Run /V Cleanup /D "%CDROM%\Batch\cleanup.cmd"EXITEDIT:Is that correct %CDROM% Variable code?For some reason it is not copying Cdrwin.datCan i install drivers off the CD too?Thanks
XKnoppix Posted March 29, 2004 Author Posted March 29, 2004 XCOPY%CDROM%\Applications\CDRWIN\Cdrwin.datto%systemdrive%\CDRWIN3\Could someone please post the code for RunOnceEx.cmd?Whatever i have isn't working?Thanks
Alanoll Posted March 29, 2004 Posted March 29, 2004 REG ADD %KEY%\120 /V 2 /D "cmd.exe /c\"xcopy /y %CDROM%\Applications\CDRWIN\Cdrwin.dat %systemdrive%\CDRWIN3\" /f
XKnoppix Posted March 29, 2004 Author Posted March 29, 2004 Okay let's say i want to install mIRC this way?What would be some code for copying an entire directory including subfolders (and keeping file attribs) I'm sure i could figure this out if i knew the switches. Or even where they went? Do they go before /y?ThanksBy the way, Thanks for the code Alanoll
Alanoll Posted March 29, 2004 Posted March 29, 2004 get the switches yourself....most DOS commands have a /? switchtype the command in a dos windows followed with the /?it will tell you ALL
XKnoppix Posted March 29, 2004 Author Posted March 29, 2004 This is my best shot in a batch file:XCOPY "%CDROM%\Applications\mIRC" "%systemdrive%\Program Files\mIRC" /E /I /Q /H /R /YWill this copy the whole directory?Thanks
Alanoll Posted March 29, 2004 Posted March 29, 2004 test the darn thing on your own system!!!put mIRC in one folder, and set a destination somewhere you know to check for it.then change the paths to suit your CD.
XtremeMaC Posted March 29, 2004 Posted March 29, 2004 ok now alanoll calm down start breathing, nice and easy breathe in, breathe out. wuuusaaaah
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