Jump to content

Recommended Posts

Posted

Hi all unattended folks,

I have followed the Gosh guide to install apps during an unattended setup..

http://gosh.msfnhosting.com/using_runonceex.htm

The unattended installation works fine, except that the runonce is run after i log on with my admin account. I expected that it would run just before the login windows..

not in an user mode....

So I will be glad if someone can explain or have an ide what it can be :}

/Tjabocom

runonce.inf
[Version]
Signature=$CHICAGO$

[DefaultInstall]
AddReg = RunXP

[XP]
AddReg = RunXP

[RunXP]
;http://support.microsoft.com/?kbid=232509
HKLM,"%RunOnceEx%\",Title,0,"Installing Applications"
HKLM,"%RunOnceEx%\",Flags,0x00010001,20

HKLM,"%RunOnceEx%\install01",,,"Media Player 10"
HKLM,"%RunOnceEx%\install01",1,,"c:\apps\wmp\mpsetupedp.msi /qb-"
HKLM,"%RunOnceEx%\install02",,,"Office 2003 Professional"
HKLM,"%RunOnceEx%\install02",1,,"c:\apps\Office2003pro\PRO11.MSI TRANSFORMS=VEABOffice2003Pro.MST /qb-"



dosnet.inf
[Files]
d1,runonceex.inf
d1,new.inf

new.inf
[Version]
Signature=$CHICAGO$

[newhive]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",,0x00000012
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",Title,0x00000000,"Applying custom settings"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx",Flags,0x00010001,0x00000020
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\Infs",,,"Applying Inf's"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\Infs",1,,"rundll32 setupapi,InstallHinfSection XP 128 ..\Windows\Inf\runonceex.inf"

unattended.txt

;SetupMgrTag
[Data]
   AutoPartition=1
   MsDosInitiated="0"
   UnattendedInstall="Yes"
   AutomaticUpdates=yes

[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
TargetPath=\WINDOWS
DriverSigningPolicy=Ignore
OemPnpDriversPath=\Drivers\Audio;\Drivers\Nic;\Drivers\Video;\Drivers\chipset
UnattendSwitch = Yes

[GuiUnattended]
   AdminPassword="secret"
   EncryptedAdminPassword=NO
   AutoLogon = Yes
   AutoLogonCount = 1
   OEMSkipRegional=1
   TimeZone=110
   OemSkipWelcome=1

[UserData]
   ProductKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
   FullName="Admin"
   OrgName="myorg"
   ComputerName=ws0001

[Display]
   BitsPerPel=24
   Xresolution=1024
   YResolution=768
   Vrefresh=60

[RegionalSettings]
   LanguageGroup=1
   SystemLocale=0000041d
   UserLocale=0000041d
   InputLocale=041d:0000041d

[Identification]
   JoinWorkgroup=WORKGROUP

[Networking]
   InstallDefaultComponents=Yes

[Branding]
BrandIEUsingUnattended = Yes

[URL]
Home_Page = http://intranet.myorg.com

[Components]
msmsgs=Off
msnexplr=Off
OEAccess=Off

[Shell]
DefaultStartPanelOff = Yes
DefaultThemesOff = Yes

[WindowsFirewall]
Profiles = WindowsFirewall.TurnOffFirewall

[WindowsFirewall.TurnOffFirewall]
Mode = 0


Posted

RunOnceEx always runs after user logs on. That's how it's supposed to work :)

As you alread have AutoLogon=Yes, AutoLogonCount=1, then everything should work smoothly without your interaction.

Posted

I dont know but it seems that it is possible to get the RunOnceEx can be run before the first login.. Or am I wrong,?????????????

/Tjabocom

from Gosh site

"How RunOnceEx works

RunOnceEx is a part of the Windows Desktop Update. It is run from this registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{89820200-ECBD-11cf-8B85-00AA005B4340}. Obviously, don't delete this key! The resources for RunOnceEx reside in iernonce.dll. If you wanted to, you could use a resource editor such as Resource Hacker to change the text and icon RunOnceEx uses. During setup the RunOnceEx key is only processed at the 13 min mark because of Outlook Express. The RunOnceEx key is run before cmdlines.txt is run. So if you use cmdlines.txt or svcpack.inf to import the runonceex settings they won't run until first logon."

Posted

All the registry keys are added at T13, but they are not run until logon.

The runonceex keys can be run by commandline too:

  • rundll32.exe iernonce.dll,RunOnceExProcess

You could try this command if you wish to attempt to have the keys run at a different time.

Posted

Thanks Yzöwl,

It getting clearer and clearer, this runonceex.inf where are the apps installed as "default account" or under the Administrator account if it is under the default account I will calm down....

/Tjabocom

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