Jump to content

Recommended Posts

Posted

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!!!:rolleyes:


Posted

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 off
ECHO.

REGEDIT /S %systemdrive%\install\Setup.reg

And 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.reg

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"="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 up

shutdown.exe -r -f -t 120

that 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.

Posted

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 method

Thanx again

Posted
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 method

Thanx again

to 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.

Posted
i add my setup.reg in my cmdlines.txt batch file, that way it works on first log on

would you mind sharing your cmdlines.txt please?

thx

Posted

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

Posted

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"

Posted
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.

Posted
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

I am wrieting a guide now i will place a link when done for you.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...