chon_ Posted September 16, 2003 Share Posted September 16, 2003 I've tried the inf and the cmd method and worked ok, now I want to try the registry (runonce) method, but I don't get it!How to launch the setup.reg? where to put it? what to put on winnt.sif (if needed)? what else do I have to do? what's directory structure? can c:\ be replaced with %systemdrive%?.Please enlight me you techie-boys!I'm lost!!! Link to comment Share on other sites More sharing options...
DaveXP Posted September 16, 2003 Share Posted September 16, 2003 If you already have made the setup.reg file with the applications you want then place the name of the batch file under [GuiRunOnce] in the winnt.sif and then make sure that the batch file has this in it.CLS@echo offECHO.REGEDIT /S %systemdrive%\install\Setup.regAnd make sure it only has that in it.and then place the setup.reg in the install folder under $OEM$\$1\install, %systemdrive% cannot be use as it does not work. Here as than exmaple of a working setup.regWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz110]"1"="regedit.exe /s C:\\Install\\regtweaks.reg"@="Registry Tweaks"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz120]"1"="C:\\Install\\remove.cmd"@="Removing Windows Files and Folders"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz130]"1"="C:\\Install\\install.cmd"@="Wallpapers, Screensavers, Fonts, etc"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz140]"1"="C:\\Install\\DirectX9b\\dxsetup.exe /opk"@="DirectX 9b"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz150]"1"="C:\\Install\\netframework\\netfx.msi /QB"@="Dot NET Framework v1.1"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz160]"1"="C:\\Install\\MSN\\MsnMsgs.msi /QB"@="MSN Messenger 6"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz170]"1"="C:\\Install\\kazaa\\k-lite.exe /VERYSILENT"@="Kazaa Lite 2.41e"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz180]"1"="C:\\Install\\WMP9\\wmp9.exe /Q:A /R:N"@="Windows Media Player 9"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz190]"1"="C:\\Install\\Sygate\\Setup.cmd"@="Sygate Personal Firewall"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz200]"1"="C:\\Install\\hotfixes.cmd"@="Hotfixes"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz210]"1"="C:\\Install\\drivers.cmd"@="NVIDIA Video Card Drivers 45.23"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz220]"1"="C:\\Install\\removesetup.cmd"@="Removing Setup Files"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz230]"1"="C:\\Windows\\Restart.cmd"@="Restarting The Computer"Any other problems just ask?EDIT: after Windows has setup and run the batch file with the registry setup information fr the windows update method to work you need to restart your computer for the registry infromation you just entered to run this can be done by putting this is the batch file with the registry setup information to first run after windows as finshed setuping upshutdown.exe -r -f -t 120that way then the first batch run the registry file it will also tell your computer to shutdown and restart in 2 mintues from then the batch file ran as it restarts automatlicy and is unfully unattended. or you just have to restart your self which would mean being there. Link to comment Share on other sites More sharing options...
chon_ Posted September 16, 2003 Author Share Posted September 16, 2003 Thank you, actually i had everything right, the only thing I did wrong was adding a commented line in setup.reg at the very beggining of it, so regedit couldn't import it Now it works ok besides the fact that I haven't figured out how to do a 2 disc install within this methodThanx again Link to comment Share on other sites More sharing options...
DaveXP Posted September 16, 2003 Share Posted September 16, 2003 Thank you, actually i had everything right, the only thing I did wrong was adding a commented line in setup.reg at the very beggining of it, so regedit couldn't import it Now it works ok besides the fact that I haven't figured out how to do a 2 disc install within this methodThanx againto do a two disk install method you could set the path of the CD-ROM Drive e.g X:\install (X being the CD-ROM drive letter) or you could make some changes to webmedic script for a 2 CD Install and add that to a batch file at the end of your extras on the XPCD its self. Link to comment Share on other sites More sharing options...
devil270975 Posted September 16, 2003 Share Posted September 16, 2003 i add my setup.reg in my cmdlines.txt batch file, that way it works on first log on Link to comment Share on other sites More sharing options...
chon_ Posted September 17, 2003 Author Share Posted September 17, 2003 i add my setup.reg in my cmdlines.txt batch file, that way it works on first log onwould you mind sharing your cmdlines.txt please?thx Link to comment Share on other sites More sharing options...
kenneth11zz Posted September 17, 2003 Share Posted September 17, 2003 I would like to try the registry method. But I'm a bit confuse of the directory structure and where to place various files at. Can someone write a mini guide on this? Thanks in advance.-Kenneth Link to comment Share on other sites More sharing options...
creopard Posted September 17, 2003 Share Posted September 17, 2003 would this work as well:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz110]"1"="regedit.exe /s C:\\Install\\regtweaks.reg"@="Registry Tweaks"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz120]"1"="RD /S /Q %systemdrive%\\install"@="Removing Setup Files and Folders"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz130]"1"="shutdown.exe -r -f -t 20"@="Restart" Link to comment Share on other sites More sharing options...
DaveXP Posted September 17, 2003 Share Posted September 17, 2003 would this work as well:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz110]"1"="regedit.exe /s C:\\Install\\regtweaks.reg"@="Registry Tweaks"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz120]"1"="RD /S /Q %systemdrive%\\install"@="Removing Setup Files and Folders"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz130]"1"="shutdown.exe -r -f -t 20"@="Restart" top two would be not shaw on the last one. Link to comment Share on other sites More sharing options...
DaveXP Posted September 17, 2003 Share Posted September 17, 2003 I would like to try the registry method. But I'm a bit confuse of the directory structure and where to place various files at. Can someone write a mini guide on this? Thanks in advance.-KennethI am wrieting a guide now i will place a link when done for you. Link to comment Share on other sites More sharing options...
kenneth11zz Posted September 17, 2003 Share Posted September 17, 2003 Sweet, I'll look forward for it. Thanks for alot. -Kenneth 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