GurliGebis Posted October 14, 2003 Posted October 14, 2003 I'm making a DVD with WinXP/OfficeXP and some other stuff on.I want it to install the programs from the CD/DVD instead of copying the files to the harddrive, and then launch the installers there.How can I do that?
gosh Posted October 14, 2003 Posted October 14, 2003 I made a script to do this. All you do is get the cdrom drive letter, then you can install the programs directly from cd if you want.-gosh
scankurban Posted October 16, 2003 Posted October 16, 2003 I made my own gui setup for this.If you think about that I'm sure you can find different ways.For example my setup wise installation setup
pulpfixtion Posted October 17, 2003 Posted October 17, 2003 I made a script to do this. All you do is get the cdrom drive letter, then you can install the programs directly from cd if you want.-goshCan you add a link to this script please gosh?cheers
gosh Posted October 17, 2003 Posted October 17, 2003 This installs recovery console and a flat silently, but you could easily modify it to do other things such as saved the cdrom drive letter as a variable.source.bat@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:ECHO Please wait, Recovery Console is being installed locally.%CDROM%\i386\winnt32.exe /dudisable /cmdcons /unattendmd %systemroot%\Source\i386ECHO Please wait, source files are being copied. This may take several minutes.xcopy /Y /e %CDROM%\WinXPPro\i386\*.* %systemroot%\Source\i386\ECHO Adding registry entries.regedit.exe /s Source.regECHO Done.exit-gosh
tymque Posted October 28, 2003 Posted October 28, 2003 Thank you so much gosh! It worked like a charm. I had to modify it a little but everything seems to be working!!Your the best!
thundernetbr Posted November 9, 2003 Posted November 9, 2003 gosh, it seems to be very good, haven't tested yet. Where do I put the source.bat file and, also, how do I make it run ? Using Winnt.sif, for instance ?Does this .bat make the installation in 'DOS-like' mode (the previous process before the installation goes under GUI) be skipped at all ? It will save about 10-15 minutes, it's that correct ?Thanks for the great job !
TMaYaD Posted February 10, 2004 Posted February 10, 2004 hi gosh,Your batch file is gr8. but I have a dvd combo drive and cd drive.when I use one of them, the script fails to read from the other and it flagsan error msg saying "not ready reading drive (x:)". Though I can keep a cd just for the sake of it, the situations gets worse as the dvd combo includes a sony memory stick drive and I don't have any memory sticks to engage it. i have to press f to continue. It wouldn't really be a unattended install, would it? plz help.Is there a way to suppress errors ?something like fail on all errors.thanku
neo_3333 Posted July 1, 2004 Posted July 1, 2004 I was just wondering how you would introduce the %cdrom% variable into RunOnceEx in a inf format to install apps from cd?
Alanoll Posted July 1, 2004 Posted July 1, 2004 in the INF format, you have a couple of options....one is using the SourceDisk entries in an INF, do a search, I never got it working but some have....find a creative way of using the %1% variable so that %1% is the root path to your files on your CD.
Acheron Posted October 31, 2004 Posted October 31, 2004 I had also problems with the simple script from msfn.org. So I'm also using setx to make an extra system variable:cmdlines.txt[COMMANDS]"Prepare.cmd""setx cdrom -k HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\SourcePath -m""RUNonceEx.cmd""REGEDIT /S tweaks.reg""bootcfg /timeout 0"setx is placed in $oem$\$$\System32Here's a part out of my RunOnceEx.cmd script:cmdow @ /HID@echo offIF EXIST C:\win51ip.SP2 set CDDRIVE=C:\IF EXIST D:\win51ip.SP2 set CDDRIVE=D:\IF EXIST E:\win51ip.SP2 set CDDRIVE=E:\IF EXIST F:\win51ip.SP2 set CDDRIVE=F:\IF EXIST G:\win51ip.SP2 set CDDRIVE=G:\IF EXIST H:\win51ip.SP2 set CDDRIVE=H:\IF EXIST I:\win51ip.SP2 set CDDRIVE=I:\IF EXIST J:\win51ip.SP2 set CDDRIVE=J:\IF EXIST K:\win51ip.SP2 set CDDRIVE=K:\IF EXIST L:\win51ip.SP2 set CDDRIVE=L:\IF EXIST M:\win51ip.SP2 set CDDRIVE=M:\IF EXIST N:\win51ip.SP2 set CDDRIVE=N:\IF EXIST O:\win51ip.SP2 set CDDRIVE=O:\IF EXIST P:\win51ip.SP2 set CDDRIVE=P:\IF EXIST Q:\win51ip.SP2 set CDDRIVE=Q:\IF EXIST R:\win51ip.SP2 set CDDRIVE=R:\IF EXIST S:\win51ip.SP2 set CDDRIVE=S:\IF EXIST T:\win51ip.SP2 set CDDRIVE=T:\IF EXIST U:\win51ip.SP2 set CDDRIVE=U:\IF EXIST V:\win51ip.SP2 set CDDRIVE=V:\IF EXIST W:\win51ip.SP2 set CDDRIVE=W:\IF EXIST X:\win51ip.SP2 set CDDRIVE=X:\IF EXIST Y:\win51ip.SP2 set CDDRIVE=Y:\IF EXIST Z:\win51ip.SP2 set CDDRIVE=Z:\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installatie van software" /fREG ADD %KEY%\001 /VE /D "Microsoft .Net Framework 1.1 SP1" /fREG ADD %KEY%\001 /V 1 /D "%CDDRIVE%install\dotNetFramework\install.cmd" /fREG ADD %KEY%\002 /VE /D "Sun Java VM 5.0" /fREG ADD %KEY%\002 /V 1 /D "%CDDRIVE%install\SunJava\jre50.msi /qb Reboot=ReallySuppress /quiet /passive /norestart ADDLOCAL=jrecore,extra IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 WEBSTARTICON=0 SYSTRAY=0" /fREG ADD %KEY%\003 /VE /D "AutoDesk Architectural Desktop 2005" /fREG ADD %KEY%\003 /V 1 /D "%CDDRIVE%install\autocad\install.cmd" /fREG ADD %KEY%\004 /VE /D "Jasc Paint Shop Pro 9" /fNow in batchfiles which are being hailed I can use %cdrom%:dotnetframework.cmdcmdow @ /HID7za x -y -o%temp% %cdrom%install\dotnetframework\netfxsp1nl.7z%temp%\netfx.msi /qb%cdrom%install\dotnetframework\langpack.exe /C:"inst.exe /qb /n" /q:adel /F /Q "%allusersprofile%\Menu Start\Programma's\Systeembeheer\Microsoft .NET Framework 1.1 Configuration.lnk"del /F /Q "%allusersprofile%\Menu Start\Programma's\Systeembeheer\Microsoft .NET Framework 1.1 Wizards.lnk"RD /S /Q %temp%exitIt works!
CoffeeFiend Posted October 31, 2004 Posted October 31, 2004 BTW, you can change those 23 lines of "if exist" for this signle one:for %%a in (C 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 %%a:\win51ip.SP2 set CDROM=%%a:A bit neatier, isn't it?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now