Jump to content

WindowsUpdate method not working


chon_

Recommended Posts

webmedic

would ya know why i don't get IE OE or network when i use your script do.cmd. the hotfixes i use are the one in the pinned topic and only the ...this is on vp and clean install....seem that it does not load the workgroup service and no tweak file being used no updates installed ...just the hot fixes listed in the pinned tread.

Thanks

Tbone2

Link to comment
Share on other sites


really try this it will work better and is easier I had isues also for some reason the reg file would not apply.

try this.

http://board.MSFN.org/index.php?showtopic=8632

I've tried and liked this method, but i cant get the cd swap thingy to work yet :)

I only got it to work on the cmd and on the windows update methods, although i'm having some troubles on windows update

Link to comment
Share on other sites

Chon the problem with your reg file is that you did not increment by 10s..... As explained previously by Terminator 2.... You went from 110 to 150. You need to go 110, 120, 130

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz110]"1"="C:\\Install\\copy.cmd"

@="Copying Files Needed For Setup"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz120]

"1"="C:\\Microsoft\\DirectX9\\dxsetup.exe /opk"

@="DirectX 9.0b"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz130]

"1"="C:\\Microsoft\\Msjava\msjava.cmd"

@="Microsoft Java VM 3810"

Anyway I do think that the reg way is much simpler to use. Less syntax in general. Its easy to script though but the reg way has alot less what do we say? Cut and Paste. However the inf way does have an advantage of being able to place a message at the top which I might wanna do to say my Best Friend is an id***... :)

Link to comment
Share on other sites

for the people who are interested in the windows update method you do not have to have 10 per key it works as one per key to.

EDIT:webmedic dont dismiss other peoples work just becasue a poll says so let people choose there own method and work problems out instead of say this ways better and this ways s*** it dont help anyone. And your work is good to but a little more complite to follow thats my people people do it different ways. :)

Link to comment
Share on other sites

hi, i'm using (at the moment) an automated generated windows-setup...

First my older in $OEM$\$1\INSTALL:

17.09.2003  09:14    <DIR>          100DirectX9b
17.09.2003  09:14    <DIR>          110JavaVM
17.09.2003  09:14    <DIR>          111JavaVM
17.09.2003  09:14    <DIR>          120NetFramework
17.09.2003  09:14    <DIR>          130WMP
17.09.2003  09:14    <DIR>          150PowerToys
17.09.2003  09:14    <DIR>          151PowerToys
17.09.2003  09:15    <DIR>          500AdobeAcrobat
17.09.2003  09:15    <DIR>          510NeroBurningROM
17.09.2003  09:15    <DIR>          600NortonAntivirus
17.09.2003  09:30    <DIR>          700Codec
17.09.2003  09:16    <DIR>          800HotFix
17.09.2003  09:30    <DIR>          900RegHack
17.09.2003  09:16    <DIR>          999Clean
11.09.2003  11:29             1.558 infSetup.cmd

In every subfolder i use two batches:

infData.bat
infSetup.bat

For example we look into the subfolder with the files for DirectX (100DirectX9b) - the content of infData.bat:

set infCommand=c:\\install\\100DirectX9b\\infSetup.bat
set infDescription=MS DirectX 9.0b

the content of infSetup.bat:

@echo off
cls
echo DIRECTX: Please wait...
start /wait %systemdrive%\install\100DirectX9B\dxsetup.exe /opk
exit

That means, infData.bat will set two variables - one with the command to run infSetup.bat, one with the description shown in windows setup... Now to the main-batch infSetup.cmd in the "root":

@ECHO OFF
if "%1"==":" goto %2

:Clear Screan
CLS

:Displays Message
ECHO infSetup: Starting (version 1.0)
ECHO.

:Check for automated installation
ECHO infSetup: Check if automated installation is needed...
set infFound=No
for /r %%i in (infData.bat) do if exist %%i set infFound=Yes
if "%infFound%"=="No" goto :_donothing
set infFound=

:Generates Header of .inf-File
ECHO infSetup: Generating .inf-Setup
ECHO Windows Registry Editor Version 5.00 > %tmp%\_infSetup
ECHO. >> %tmp%\_infSetup
ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx] >> %tmp%\_infSetup

:Startvalue of RunOnceEx\"xxx"-Value
SET infNumber=100

:_loop
ECHO infSetup: Collecting information...
for /r %%i in (infData.bat) do if exist %%i call %0 : _addInf %%i

ECHO infSetp: Applying generated .inf-File
:REGEDIT /S %tmp%\_infSetup
goto _end

:_addInf
ECHO infSetup: Trying to get data (%3)
call %3
if "infCommand"=="" goto _noCommand

ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz%infNumber%] >> %tmp%\_infSetup
ECHO "1"="%infCommand%" >> %tmp%\_infSetup
ECHO @="%infDescription%" >> %tmp%\_infSetup
ECHO. >> %tmp%\_infSetup
SET /A infNumber=%infNumber% + 1
SET infCommand=
SET infDescription=
goto _eof

:_donothing
ECHO infSetup: No .inf-Setup found...
goto _eof

:_noDescription
set /a infDescription=%infNumber% - 99
set infDescription=Task %infDescription%
goto _eof

:_noCommand
goto _eof

:_end
regedit /s %tmp%\_infSetup
del %tmp%\_infSetup

:_eof

(btw. any questions to the code?! i'll explain it, if this is needed)

and to be completed in the winnt.sif you need folowing code:

[GuiRunOnce]
   Command1="%systemdrive%\install\infSetup.cmd"
   Command2="shutdown -r -t 0 -f -d p:0:0"

And you should set to Admint-Autologin-Count to 2 times...

This i want to change and do my infSetup.cmd in the textmode... I'll try it soon... That would save me a reboot.... and mek it tidier and nicer...

The Advantages of this method is - through folder-renaming you change the installation order.

The add, you just make an new folder, copy neede files into it and make the two batches.

What do you mean?

Link to comment
Share on other sites

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