Jump to content

Recommended Posts

Posted

Hi,

I have tried a number of times to create an unattended CD and seems to get so far. The files are copied across from the CD but the RunOnceEx dialog is never shown :angry: Hopefully you can help me out and that it is something every simple that I have missed.

I have used nlite to slipstream the latest hotfixes etc. Included in the hotfixes are the following addon packages:

ADOBEREADER811.EXE						
AVG75.EXE
BURRRN114B2.EXE
CCLEANER201.EXE
FIREFOX2.EXE
GOOGLETOOLBARINSTALLER.EXE
KLITECODECPACKBASIC353.EXE
ODYN1982_FOOBAR2000_0.9.4.5B1_REV.2.0.EXE
PIDGIN222.EXE
PSPAD452.EXE
REALALTERNATIVELITE160.EXE
REALVNC412.EXE
SYSINTERNALS.EXE
TSREG.EXE
WRAR370.EXE

Directory Structure (D:\SlipXP is root before burning ISO)

SLIPXP\
AUTORUN.INF
CD.TXT
LAST SESSION.INI
LAST SESSION_U.INI
README.HTM
SETUP.EXE
SETUPXP.HTM
WIN51
WIN51IP
WIN51IP.SP2
SLIPXP\$OEM$\
cleanup.cmd
cmdlines.txt
RunOnceEx.cmd
useraccounts.cmd
SLIPXP\$OEM$\$$\
SLIPXP\$OEM$\$$\System32\
cmdow.exe
Oeminfo.ini
SLIPXP\$OEM$\$1\
SLIPXP\$OEM$\$1\Drivers\
SLIPXP\$OEM$\$1\Install\
SLIPXP\$OEM$\$1\Install\dotnet\
dotnetaio.exe
SLIPXP\$OEM$\$1\Install\Flash\
FirefoxFlashPlugin.exe
install_flash_player.exe
operaflashplugin.exe
SLIPXP\$OEM$\$1\Install\Java\
jre-6u3-windows-i586-p-s.exe

SLIPXP\$OEM$\$1\Install\Office2003SP3\
<files>
SLIPXP\$OEM$\$1\Install\Registry\
other-software.reg
services.reg
tweaks_en.reg
SLIPXP\$OEM$\$1\Install\Shockwave\
firefoxshockwaveplugin.exe
operashockwaveplugin.exe
swInstaller.exe
SLIPXP\$OEM$\$Docs\
SLIPXP\$OEM$\$Progs\

SLIPXP\I386\
<files>

cmdlines.txt

[COMMANDS]
"RunOnceEx.cmd"
"useraccounts.cmd"

RunOnceEx.cmd

cmdow @ /HID
@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%05 /VE /D "Shockwave" /f
REG ADD %KEY%05 /V 1 /D "%systemdrive%\Install\shockwave\swinstaller.exe" /f

REG ADD %KEY%06 /VE /D "Shockwave Plugins" /f
REG ADD %KEY%06 /V 1 /D "%systemdrive%\Install\shockwave\firefoxshockwaveplugin.exe" /f
REG ADD %KEY%06 /V 2 /D "%systemdrive%\Install\shockwave\operashockwaveplugin.exe" /f

REG ADD %KEY%10 /VE /D "Flash" /f
REG ADD %KEY%10 /V 1 /D "%systemdrive%\Install\flash\install_flash_player.exe" /f
REG ADD %KEY%10 /V 2 /D "%systemdrive%\Install\flash\firefoxflashplugin.exe" /f
REG ADD %KEY%10 /V 3 /D "%systemdrive%\Install\flash\operaflashplugin.exe" /f

REG ADD %KEY%15 /VE /D "Sun Java Virtual Machine" /f
REG ADD %KEY%15 /V 1 /D "%systemdrive%\Install\Java\\jre-6u3-windows-i586-p-s.exe /s /v\"/qn ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 REBOOT=Supress JAVAUPDATE=0 WEBSTARTICON=0" /f

REG ADD %KEY%20 /VE /D ".NET 1.0, 2.0 and 3.0" /f
REG ADD %KEY%20 /V 1 /D "%systemdrive%\Install\dotnet\donetaio.exe" /f

REG ADD %KEY%25 /VE /D "Office 2003 SP3" /f
REG ADD %KEY%25 /V 1 /D "%systemdrive%\Install\Office2003SP3\setup.exe TRANSFORMS=Unattended.MST /qb-" /f

REG ADD %KEY%80 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%80 /V 1 /D "REGEDIT /S %systemdrive%\Install\registry\tweaks_en.reg" /f
REG ADD %KEY%80 /V 2 /D "REGEDIT /S %systemdrive%\Install\registry\services.reg" /f
REG ADD %KEY%80 /V 3 /D "REGEDIT /S %systemdrive%\Install\registry\other-software.reg" /f

REG ADD %KEY%90 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%90 /V 1 /D "%systemdrive%\cleanup.cmd" /f

EXIT

cleanup.cmd

cmdow @ /HID
shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."

DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"
DEL "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 8.0.lnk"
DEL "%AllUsersProfile%\Desktop\Java Web Start.lnk"

EXIT

useraccounts.cmd

net accounts /maxpwage:unlimited
net user aspnet /delete
EXIT

winnt.sif

; Generated by nLite 1.4 RC2

[Data]
AutomaticUpdates="Yes"
Autopartition=0
MsDosInitiated=0
UnattendedInstall="Yes"

[Unattended]
UnattendMode=FullUnattended
UnattendSwitch="No"
OemPreinstall="Yes"
OemSkipEula="Yes"
FileSystem=*
WaitForReboot="No"
NoWaitAfterTextMode=1
NoWaitAfterGUIMode=1
DriverSigningPolicy=Ignore
NonDriverSigningPolicy=Ignore

[Display]
Xresolution=1024
Yresolution=768
BitsPerPel=32

[SystemRestore]

[GuiUnattended]
AdminPassword="xxxxx"
TimeZone=110
OEMSkipRegional=1
OemSkipWelcome=1

[Components]

[UserData]
ProductKey="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"
ComputerName=TESTXP
FullName="Home User"

[RegionalSettings]
LanguageGroup=1
SystemLocale="0809"
UserLocale="0809"
UserLocale_DefaultUser="0809"
InputLocale="0809:00000452"
InputLocale_DefaultUser="0809:00000452"

[Networking]
InstallDefaultComponents="Yes"

[Identification]
JoinWorkgroup="WORKGROUP"

lastsession.ini

[Main]
Env = 1.4 RC2 - 2.0.50727.832.Microsoft Windows NT 5.1.2600 Service Pack 2
Target = Windows XP Professional SP2 - 5.1.2600.2180 - English (United States)

[Tasks]
Unattended Setup
Create a Bootable ISO

[Components]
;# Compatibility #

[KeepFiles]
msconfig.exe

[RemoveFiles]
clock.avi
yahoo.bmp
swtchbrd.bmp

[Options]
ProfilesDir = "%SystemDrive%\Documents and Settings"
TargetPath = "WINDOWS"
temp_dir = %SystemDrive%\Temp
AdvTweaks

[Patches]
TcpIp = 100
DoUxTheme

[Services2]

[Tweaks]

[Unattended]
UnattendMode = 1
ComputerType = Default
CustomLocales
Resolution = 1024x768
BitsPerPel = 32 bit (True Color)
MaximumDataStorePercentOfDisk = 12
RestorePointLife = 30
DesktopTheme = Default||
AutoUpdates = 2
AutoUDay = 5
AutoUHour = 15
ProgFilesPath = "\Program Files"

[NetAdapter1]
connname = ""
macaddress = ""
ipaddress = "192.168.0.1"
subnetmask = "255.255.255.0"
defaultgateway = ""
dnsserver1 = ""
dnsserver2 = ""
winsserver = ""
netbiossetting = "0"
ipxnetworknumber = "00000000"
ipxnetworkframetype = "0xFF"

[GuiRunOnce]

[Drivers]

[Hotfixes]


Posted (edited)
I have no clue what your problem is.

:unsure::wacko:

BUT!!!

Can I congratulate you one the most informative first post I have ever seen? You covered everything!

Thank you - I have tried to read a lot of things and one was how to post :)

Edited by presov2003
Posted
do your cleanup.cmd and useraccounts.cmd commands run?

Apologies. I should have mentioned that before - yes they do.

Also should have mentioned that IE7-KB928090.CA_ is slipstreamed into the bundle which is supposed to stop IE7 from stopping running RunOnceEx. There may be other fixes out there for this but I cannot see any (but I am getting blind from search and double checking :) )

Posted

try removing:

cmdow @ /HID
@echo off

from runonceex.cmd and add a pause command to the end and see if any errors come up when it is running. You can also press Shift-f12 after this should have run to open a CMD window and the launch regedit and check to see if anything has been added to the registry.

Posted (edited)

do you have a \ after the %KEY% in your runeonceex.cmd file?

I edited it and tried it on my machine and it showed in the registry ok.

but didn't show correctly when I uploaded ti the forum

You could also run the command manually and then check the regestry to see

what the problem is

Edited by jbm
Posted

Good catch jbm.

in your runonceex.cmd

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

Should be

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\

Posted
Good catch jbm.

in your runonceex.cmd

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

Should be

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\

Many thanks to jbm for this. I will edit and check it out (tomorrow as late here in the UK now :) )

Posted

Latest update.

I have stared from scratch and have not installed IE7 and have put the \ at the end of RunOnceEx and this all works.

Just about to try without the \ at the end (as per the MSFN Unattened doc) to see if this works. I will then try with IE7 and see what happens.

Will kepp you updated.

Posted

You can do it with out the \ at the end of the %key% value but then you need to add a \ between %key% and the number in each of the REG ADD lines as it is shown in the unattended guide. it is a matter of looks and preference.

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%05 /VE /D "Shockwave" /f
REG ADD %KEY%05 /V 1 /D "%systemdrive%\Install\shockwave\swinstaller.exe" /f

or

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\05 /VE /D "Shockwave" /f
REG ADD %KEY%\05 /V 1 /D "%systemdrive%\Install\shockwave\swinstaller.exe" /f

Posted

@IcemanND, thanks for the clarification.

I have built from scratch minus IE7 and all is OK. I am now going to slipstream IE7 and latest fixes and see what happens.

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