MSFN Forum: Windows Update Method For An Unattended Cd - MSFN Forum

Jump to content


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Windows Update Method For An Unattended Cd Guide Rate Topic: -----

#41 User is offline   Gism0 

  • Huh?
  • PipPipPip
  • Group: Members
  • Posts: 473
  • Joined: 11-November 03

Posted 28 November 2003 - 07:12 PM

Ah, sorry man a little sleepy here!


#42 User is offline   X-Ecutioner 

  • eXPerience my ass.
  • PipPipPip
  • Group: Members
  • Posts: 304
  • Joined: 21-October 03

Posted 28 November 2003 - 07:14 PM

lol noprob. Just want to verify that this idea is not mine. As gosh posted, he came up with this before I did so I don't want to steal what may have been his original idea.

#43 User is offline   Gism0 

  • Huh?
  • PipPipPip
  • Group: Members
  • Posts: 473
  • Joined: 11-November 03

Posted 28 November 2003 - 07:25 PM

Just Noticed, you can also add the dword Flags to RunOnceEx

0x00000000 - All functions are disabled
0x00000004 - Check Shell Status - Verifies the shell is ready to accept OLE commands
0x00000008 - No Error Dialogs - Error dialog boxes are not displayed
0x00000010 - Create Error Log File - Create C:\Windows\RunOnceEx.err file if errors occur
0x00000020 - Create Execution Log File - Create a C:\Windows\RunOnceEx.log file with status of commands
0x00000040 - No Exception Trapping - Does not trap exceptions that occur when registering DLLs
0x00000080 - No Status Dialog - Status dialog box is not displayed while RunOnceEx runs

To use more than one at once just add them up, ie: No Status Dialog + create error log file = 90

#44 User is offline   gosh 

  • gosh 2.0
  • Group: Patrons
  • Posts: 2,347
  • Joined: 03-October 03
  • OS:none specified
  • Country: Country Flag

Posted 28 November 2003 - 07:26 PM

I don't care about credit, although i did want to point out i mentioned something similiar just for the record. I just posted an idea though, it would be nice if someone could take the idea and put it into something we can add to our unattended installs. Maybe MSTest or someone will do it.

-gosh

#45 User is offline   cydine 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 23-November 03

Posted 29 November 2003 - 11:35 AM

Alrighty, let me see if I get this right :)

You want a way to use the 'windows update' inf installation method once the user has logged fully on and the desktop is showing?

After trying a few different things this is what I came up with:

Firstly you need to add a key to the registry during setup. The method I use for this is a modified moviemk.inf but you could use cmdlines.txt or guirunonce I would imagine.

Here's my current moviemk.inf
[Version]
Signature="$Windows NT$"

[DefaultInstall]
AddReg=PreLogon

[PreLogon]
HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Runonce","runonce",,"rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 %10%\runonce.inf"

HKCU,"Software\Microsoft\CTF","Disable Thread Input Manager",0x00010001,1

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Tour","RunCount",0x00010001,0

HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\Streams","Settings",0x00000001,\
  09,00,00,00,01,00,00,00,01,00,00,00,e0,d0,57,00,73,35,cf,11,ae,69,08,00,2b,\
  2e,12,62,04,00,00,00,08,00,00,00,43,00,00,00

HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults","{20D04FE0-3AEA-1069-A2D8-08002B30309D}",0x00000001,\
  1c,00,00,00,01,00,00,00,00,00,00,00,00,00,9a,00,00,00,00,00,01,00,00,00,ff,\
  ff,ff,ff,f0,f0,f0,f0,14,00,03,00,9a,00,00,00,00,00,00,00,30,00,00,00,fd,df,\
  df,fd,0f,00,05,00,24,00,10,00,2e,00,46,00,00,00,00,00,01,00,00,00,02,00,00,\
  00,03,00,00,00,04,00,00,00,78,00,96,00,60,00,60,00,78,00,00,00,00,00,01,00,\
  00,00,02,00,00,00,03,00,00,00,05,00,00,00,ff,ff,ff,ff,cf,f3,a8,b0,33,43,ab,\
  4b,88,73,1c,cb,1c,ad,a4,8b,30,f1,25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,\
  04,00,00,00
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults","{F3364BA0-65B9-11CE-A9BA-00AA004AE837}",0x00000001,\
  1c,00,00,00,01,00,00,00,00,00,00,00,00,00,90,00,02,00,00,00,01,00,00,00,00,\
  00,00,00,f0,f0,f0,f0,14,00,03,00,90,00,00,00,00,00,00,00,30,00,00,00,fd,df,\
  df,fd,0f,00,04,00,20,00,10,00,28,00,3c,00,00,00,00,00,01,00,00,00,02,00,00,\
  00,03,00,00,00,d2,00,70,00,8c,00,8c,00,00,00,00,00,01,00,00,00,02,00,00,00,\
  03,00,00,00,ff,ff,ff,ff,22,3e,37,3e,99,da,b7,4c,a8,86,75,4e,ae,98,4c,b4,30,\
  f1,25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,04,00,00,00

HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop","TaskbarWinXP",0x00000001,\
  0c,00,00,00,08,00,00,00,02,00,00,00,00,00,00,00,b0,e2,2b,d8,64,57,d0,11,a9,\
  6e,00,c0,4f,d7,05,a2,22,00,1c,00,0a,10,00,00,1a,00,00,00,01,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,4c,00,00,00,01,14,02,00,00,00,00,00,c0,00,00,\
  00,00,00,00,46,81,00,00,00,10,00,00,00,e0,ce,55,ee,fe,ee,c2,01,00,c0,d5,bc,\
  54,b1,c3,01,00,8b,14,ef,fe,ee,c2,01,00,00,00,00,00,00,00,00,01,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,15,02,14,00,1f,50,e0,4f,d0,20,ea,3a,69,10,\
  a2,d8,08,00,2b,30,30,9d,19,00,2f,43,3a,5c,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,5c,00,31,00,00,00,00,00,74,2e,12,7a,10,00,44,4f,43,\
  55,4d,45,7e,31,00,00,44,00,03,00,04,00,ef,be,74,2e,12,7a,79,2f,00,00,14,00,\
  00,00,44,00,6f,00,63,00,75,00,6d,00,65,00,6e,00,74,00,73,00,20,00,61,00,6e,\
  00,64,00,20,00,53,00,65,00,74,00,74,00,69,00,6e,00,67,00,73,00,00,00,18,00,\
  4a,00,31,00,00,00,00,00,74,2e,9c,84,10,00,41,44,4d,49,4e,49,7e,31,00,00,32,\
  00,03,00,04,00,ef,be,74,2e,9c,84,7b,2f,00,00,14,00,00,00,41,00,64,00,6d,00,\
  69,00,6e,00,69,00,73,00,74,00,72,00,61,00,74,00,6f,00,72,00,00,00,18,00,64,\
  00,31,00,00,00,00,00,74,2e,23,7a,13,00,41,50,50,4c,49,43,7e,31,00,00,4c,00,\
  03,00,04,00,ef,be,74,2e,9c,84,77,2f,00,00,14,00,36,00,41,00,70,00,70,00,6c,\
  00,69,00,63,00,61,00,74,00,69,00,6f,00,6e,00,20,00,44,00,61,00,74,00,61,00,\
  00,00,40,73,68,65,6c,6c,33,32,2e,64,6c,6c,2c,2d,32,31,37,36,35,00,18,00,42,\
  00,31,00,00,00,00,00,74,2e,18,72,14,00,4d,49,43,52,4f,53,7e,31,00,00,2a,00,\
  03,00,04,00,ef,be,74,2e,9c,7c,9a,2e,00,b8,14,00,00,00,4d,00,69,00,63,00,72,\
  00,6f,00,73,00,6f,00,66,00,74,00,00,00,18,00,52,00,31,00,00,00,00,00,74,2e,\
  ea,73,10,00,49,4e,54,45,52,4e,7e,31,00,00,3a,00,03,00,04,00,ef,be,74,2e,9c,\
  7c,9a,2e,00,b8,14,00,00,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,74,00,\
  20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,00,00,18,00,48,00,31,\
  00,00,00,00,00,74,2e,a1,7c,10,00,51,55,49,43,4b,4c,7e,31,00,00,30,00,03,00,\
  04,00,ef,be,74,2e,a1,7c,9a,2e,00,b8,14,00,00,00,51,00,75,00,69,00,63,00,6b,\
  00,20,00,4c,00,61,00,75,00,6e,00,63,00,68,00,00,00,18,00,00,00,10,00,00,00,\
  05,00,00,a0,1a,00,00,00,37,01,00,00,00,00,00,00,26,00,00,00,61,07,00,00,00,\
  00,00,00,19,00,00,00,00,00,00,00,00,00,00,00,19,00,00,00,00,00,00,00,01,00,\
  00,00,01,00,00,00,aa,4f,28,68,48,6a,d0,11,8c,78,00,c0,4f,d9,18,b4,04,04,00,\
  00,60,0d,00,00,00,00,00,00,19,00,00,00,00,00,00,00,00,00,00,00,19,00,00,00,\
  00,00,00,00,01,00,00,00


Note the first line of the addreg section. It adds an entry in the HKEY_CURRENT_USER RunOnce registry key.
This key is that last to be processed during the startup sequence, being run even after the startup folder. The entry tells the system to run another inf, runonce.inf.

Here's runonce.inf
[Version]
Signature="$Windows NT$"

[DefaultInstall]
AddReg=Setup

[Setup]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\Setup","Windows Registry",,"%10%\regedit.exe guiset.reg"


This inf adds a value to the HKEY_LOCAL_MACHINE RunOnce\Setup key. As the user has already logged on, this command is run immediately. It tells the system to start the installation process and a nice 'windows update' box pops up and runs your setup programs, in this case registry entries.

Here's a screenshot of it in action

Posted Image

#46 User is offline   X-Ecutioner 

  • eXPerience my ass.
  • PipPipPip
  • Group: Members
  • Posts: 304
  • Joined: 21-October 03

Posted 29 November 2003 - 01:14 PM

Yaaaaaa u da man!!!! I will put this method to the test A.S.A.P.

Thanks

#47 User is offline   asasak 

  • Newbie
  • Group: Members
  • Posts: 27
  • Joined: 25-October 03

Posted 04 April 2004 - 04:19 PM

DaveXP,

Just ran across your method for creating an unattended CD. I have an OEM version of Pro with SP1 included. DO I still need the SP1a and rollup incorporated...and where can I get the SP2 (if any) updates. A while back I created an unattended HOME CD and it worked great. Since then I have upgraded several times and wanted to try something a little more challenging. Any help is appreciated.

Thanks

#48 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 04 April 2004 - 04:47 PM

first off, this is a very old post.

second, it's also refered to as RunOnceEX.

http://unattended.ms...p/runonceex.htm


second, you don't HAVE to add the hotfixes, you can if you want. The easiest way to do this is with XPCreate. Check it's forum. I don't know if it works with an OEM version of the disk though. If it doesn't, use svcpack.inf.
http://unattended.ms...xp/hotfixes.htm

#49 User is offline   dv8 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 17-August 04

Posted 18 August 2004 - 10:28 AM

OKay i have followed the first part of these instructions on how to do this....(w2k btw)

I created the Setup.reg, and all the batch files, basically i copied everything that was on the first part of this post.

It will not run on first restart, nor will it grab the files i want to set up, i have to click the install.cmd manually in the c:\install file after windows setup, then reboot, but then i only see the last two things happening..basically the cleanup.. it does not install the adobe, abobe update, and mcafee.
Here is my setup.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx]
"Title"="Installing Applications"


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz110]
"1"="C:\\Install\\Acrobat\\AdbeRdr60_enu_full.exe -p /s /v/qn"
"@="Acrobat Reader 6"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz120]
"1"="C:\\Install\\Acrobat\\AAcro-Reader_6.0.2_Update.exe /s /v/qb"
"@="Acrobat Reader 6 Update to 6.02"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz130]
"1"="C:\\Install\\Virus\\win2k.msi /qn"
"@="Mcafee Virus Scanner"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz140]
"1"="C:\\Install\\Remove2.cmd"
@="Removing Setup Files & Restarting the Computer"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz150]
"1"="regedit.exe /s C:\\Install\\regtweaks.reg"
@="Registry Tweaks"


Here is my cmdlines.txt
[COMMANDS]
".\install.cmd"
".\user.cmd"


And my install.cmd is here
CLS
@echo off
ECHO.
ECHO Adding Windows Update Method
REGEDIT /S %systemdrive%\install\Setup.reg
ECHO.


Any help is apprecaited...

#50 User is offline   dv8 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 17-August 04

Posted 18 August 2004 - 10:30 AM

yes i noticed the typo in AAcro-Reader that was when i pasted.. it is just Acro-Reader on the setup.reg

#51 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 18 August 2004 - 11:40 AM

http://unattended.ms...p/runonceex.htm

that's pretty much the same thing but allows for variables.
But
is install.cmd in C:\install or in %CD%\$OEM$ ? (%CD% being where ever your installing from)

Do you have OEMPreInstall in your Winnt.sif, and if you don't have one of those, then you should copy your programs over manually.

#52 User is offline   jonaand 

  • Group: Members
  • Posts: 6
  • Joined: 07-January 13
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 January 2013 - 10:49 AM

hello!
i've followed your tutorial for xp 64bit sp2
http://www.msfn.org/...__hl__runonceex

and i want to add language pack in spanish, and i did it 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"="C:\\Install\\MUI.Spanish.MSI /quiet /norestart"
"@="Idioma Espaņol"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz120]
"1"="C:\\Install\\dotnetfx35.exe /passive / norestart"
@="Dot NET Framework v3.5"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz130]
"1"="C:\\Install\\dotNetFx40_Full_x86_x64.exe /passive / norestart"
@="Dot NET Framework 4"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz140]
"1"="C:\\Install\\wmp11-windowsxp-x64-enu.exe /Q"
@="Windows Media Player 11"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz150]
"1"="C:\\Install\\wmp11setup-64_muiesn.exe" /Q
@="Idioma Meia Player 11"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\zz160]
"1"="C:\\Install\\remove-setup.cmd"
@="Borrando Archivos Temporales y Reiniciando"

but don't install language pack

what can i do? thanks so much

This post has been edited by jonaand: 07 January 2013 - 10:49 AM


Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy