bibio Posted September 19, 2004 Posted September 19, 2004 (edited) Hi all, this might be of some use to ppl, i have found a way of installing from different CD's e.g.cd1-cd2 ect ect, its verrrrry easy no complicated stuff.Here we go, you have to use the RunOnceEx.cmd type of install for it to work!!!(i havent tried the runonce.)You will need to get 3 files sleep.exe CDR.exe and cmdow.exeyou can get them here http://www.unattended.msfn.org/xp/downloads.htmyou have to create 4 files1.RunOnceEx.cmd2.InsertCD2.vbs3.Finish.vbs4.CD.txtthe RunOnceEx.cmd codecmdow @ /HID@Echo OffIF 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:SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Unattended instalation..." /fREG ADD %KEY%\000 /V 1 /D "%sleep.exe 20"REG ADD %KEY%\000 /V 2 /D "CDR.exe open %CDROM%" /fREG ADD %KEY%\000 /V 3 /D "%systemdrive%\Install\InsertCD2.vbs" /fREG ADD %KEY%\070 /V 1 /D "CDR.exe open %CDROM%" /fREG ADD %KEY%\070 /V 2 /D "%systemdrive%\Install\Finish.vbs" /fEXITYou just need to edit the InsertCD2.vbs (below) to whatever CD you need and include it in the RunOnceEx.cmd file.the InsertCD2.vbs codeOption ExplicitMsgBox "Please Insert Instalation Disc 2, Then Close The CD-ROM Tray And Press OK.", 64, "Insert Instalation Disc 2"the Finish.vbs codeOption ExplicitMsgBox "Instalation Has Completed, Please Keep Your Instalation Discs In A Safe Place.", 64, "Instalation Complete"the CD.txt code (there is not any you just create a text file called CD.txt)All of the above code in red is all on 1 lineto test this out create a folder in the root of your HDD called Install then place the InsertCD.vbs and the Finish.vbs files in a folder named Install in the root of your HDD C:\Installplace the files sleep.exe and CDR.exe in C:\WINDOWS\system32place the cd.txt in the root of your HDD C:once done insert a CD in Your CDROM (any will do you are only testing it out)double click the RunOnceEx.cmd to start the process.reboot your computer and you will see the result.Tip: place the sleep.exe and the CDR.exe in the $OEM$\$$\System32 folder on your install CD when you go to create your unattended instaltion CD.also place the InsertCD2.vbs and the Finish.vbs files in the $OEM$\$1\Install folder on your unattended instaltion CDalso place the CD.txt in the root of your unattended instaltion CD.Hope this helps someone ... it has me... Edited September 19, 2004 by prathapml
prathapml Posted September 19, 2004 Posted September 19, 2004 Well, it does look nice.Please use the [code ] blocks when you want to indicate code, otherwise, its difficult to read such a lot of code.
DisabledTrucker Posted September 19, 2004 Posted September 19, 2004 I have a question, in a batch file, can you use for/next switches? I was thinking I could do the lookup for cd's by using this:For %drive% = "D" to "Z" step 1IF EXIST %drive%:\WIN51 set CDROM="%drive%:" GOTO STEPnext %drive%STEP....I want to use this in a batch file, but I also want to assure that the Windows CD is in the drive.
CoffeeFiend Posted September 19, 2004 Posted September 19, 2004 That doesn't work. For/Next doesn't work with letters, nor you can increase letters by a number.Lots of people seem to add the same bunch of lines liek that for nothing really...I've posted this a while back and it always work fine, at any stage, no mater what: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:\i386\winnt.exe set CDROM=%%a:(of course, do change the filename and path accordingly)
SiMoNsAyS Posted September 19, 2004 Posted September 19, 2004 mmm... i think this method it's very similar to mine and exactly the same as Alanoll's. for more information visit the thread at my sign
CoffeeFiend Posted September 20, 2004 Posted September 20, 2004 mmm... i think this method it's very similar to mine and exactly the same as Alanoll's. for more information visit the thread at my signThat wouldn't surprise me. I bet lots more people thought of it, it's nothing new (dating from the "real" dos days) and it's not like it's copyrighted either
SiMoNsAyS Posted September 20, 2004 Posted September 20, 2004 ... and it's not like it's copyrighted either of course, i only wanted to mean that there are similar alternatives and you can find some useful tips and tricks that people can use
bibio Posted September 20, 2004 Author Posted September 20, 2004 Thanks for your replies to my thread, I'm a newbee at this and i have'nt searched threw all of the forum. I just figured it out myself and i thaught it might be of use to other ppl. It works it's basic and it does the job.i'v got a question though if someone wants to answer it ... how do i stop WinRAR 300 from poping up the shortcut folder when it installs?as i said i'm a newbee and any advice would be apriciated.thanks to all.
prathapml Posted September 20, 2004 Posted September 20, 2004 Well, it doesn't pop up the shortcut folder during unattended setup. It seems to know that it should not.....Naah... Since explorer.exe isn't running at T-12, and at GUIrunOnce, the shortcut folder opening won't happen at all.The guide page for winrar.BTW, winrar is now at version 3.40 - it has come far from 3.00, its recommended to upgrade.
SiMoNsAyS Posted September 20, 2004 Posted September 20, 2004 Well, it doesn't pop up the shortcut folder during unattended setup. It seems to know that it should not.....Naah... Since explorer.exe isn't running at T-12, and at GUIrunOnce, the shortcut folder opening won't happen at all.The guide page for winrar.BTW, winrar is now at version 3.40 - it has come far from 3.00, its recommended to upgrade.lol now it has built-in support for 7zip. nice feature
bibio Posted September 20, 2004 Author Posted September 20, 2004 cheers ppl,but i'm using the RunOnceEx.cmd method and my winnt.sif does not have a [GUIRunOnce] so therefor it only loads the RunOnceEx.cmd command at T12 stage it then waits till first login to start instalation of apps, therefore explorer is loaded. and i dont need the extra feture of the new WinRAR this one does me fine as i only use it to unpack. it's not a big issue but it's anoying so i would like a way of closing the folder when it pops up... any ideas?oooo.. i know this is off topic but here is a few regedits i have sused outthis one stops the anoying windows sound at startup and shutdown[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemStart][HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemStart\.Current]@=hex(2):00,00[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemStart\.Default]@=hex(2):00,00[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemExit][HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemExit\.Current]@=hex(2):00,00[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemExit\.Default]@=hex(2):00,00[HKEY_USERS\.DEFAULT\AppEvents\Schemes\Apps\.Default\SystemExit\.Default]@=hex(2):00,00[HKEY_USERS\.DEFAULT\AppEvents\Schemes\Apps\.Default\SystemStart\.Default]@=hex(2):00,00and here is a few for the visual fx[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\AnimateMinMax]"Type"="checkbox""Text"="@shell32.dll,-30534""SPIActionGet"=dword:00000048"SPIActionSet"=dword:00000049"CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000000"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ComboBoxAnimation]"Type"="checkbox""Text"="@shell32.dll,-30539""SPIActionGet"=dword:00001004"SPIActionSet"=dword:00001005"CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000000"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\CursorShadow]"Type"="checkbox""Text"="@shell32.dll,-30531""SPIActionGet"=dword:0000101a"SPIActionSet"=dword:0000101b"CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000000"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DragFullWindows]"Type"="checkbox""Text"="@shell32.dll,-30533""SPIActionGet"=dword:00000026"SPIActionSet"=dword:00000025"CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000001"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DropShadow]"Type"="checkbox""Text"="@shell32.dll,-30532""SPIActionGet"=dword:00001024"SPIActionSet"=dword:00001025"CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000001"DefaultByAlphaTest"=dword:00000001"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing]"Type"="checkbox""Text"="@shell32.dll,-30535""SPIActionGet"=dword:0000004a"SPIActionSet"=dword:0000004b"CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000001"DefaultByFontTest"=dword:00000001"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListBoxSmoothScrolling]"Type"="checkbox""Text"="@shell32.dll,-30544""SPIActionGet"=dword:00001006"SPIActionSet"=dword:00001007"CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000000"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewAlphaSelect]"Type"="checkbox""Text"="@shell32.dll,-30540""RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced""ValueName"="ListviewAlphaSelect""CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000000"DefaultByAlphaTest"=dword:00000000"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewShadow]"Type"="checkbox""Text"="@shell32.dll,-30541""RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced""ValueName"="ListviewShadow""CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000001"DefaultByAlphaTest"=dword:00000001"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewWatermark]"Type"="checkbox""Text"="@shell32.dll,-30543""RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced""ValueName"="ListviewWatermark""CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000000"MinimumMEM"=dword:00000054"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\MenuAnimation]"Type"="checkbox""Text"="@shell32.dll,-30536""SPIActionGet"=dword:00001002"SPIActionSet"=dword:00001003"CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000000"DefaultByAlphaTest"=dword:00000000"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\SelectionFade]"Type"="checkbox""Text"="@shell32.dll,-30546""SPIActionGet"=dword:00001014"SPIActionSet"=dword:00001015"CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000000"DefaultByAlphaTest"=dword:00000000"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TaskbarAnimations]"Type"="checkbox""Text"="@shell32.dll,-30530""HKeyRoot"=dword:80000001"RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced""ValueName"="TaskbarAnimations""CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000000"DefaultByAlphaTest"=dword:00000000"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\Themes]"Type"="checkbox""Text"="@shell32.dll,-30538""CLSID"="{AABE54D4-6E88-4c46-A6B3-1DF790DD6E0D}""CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000001"HelpID"="windows.hlp#51140""NoApplyDefault"=""[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TooltipAnimation]"Type"="checkbox""Text"="@shell32.dll,-30547""SPIActionGet"=dword:00001016"SPIActionSet"=dword:00001017"CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000000"DefaultByAlphaTest"=dword:00000000"HelpID"="windows.hlp#51140"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\WebView]"Type"="checkbox""Text"="@shell32.dll,-30537""CLSID"="{01E2E7C0-2343-407f-B947-7E132E791D3E}""CheckedValue"=dword:00000001"UncheckedValue"=dword:00000000"DefaultValue"=dword:00000001"HelpID"="windows.hlp#51140"[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]"VisualFXSetting"=dword:00000000[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing]"DefaultValue"=dword:0000001"DefaultApplied"=dword:00000001Cheers again
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