presov2003 Posted November 5, 2007 Posted November 5, 2007 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 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.EXEDirectory 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.SP2SLIPXP\$OEM$\ cleanup.cmd cmdlines.txt RunOnceEx.cmd useraccounts.cmdSLIPXP\$OEM$\$$\SLIPXP\$OEM$\$$\System32\ cmdow.exe Oeminfo.iniSLIPXP\$OEM$\$1\SLIPXP\$OEM$\$1\Drivers\SLIPXP\$OEM$\$1\Install\SLIPXP\$OEM$\$1\Install\dotnet\ dotnetaio.exeSLIPXP\$OEM$\$1\Install\Flash\ FirefoxFlashPlugin.exe install_flash_player.exe operaflashplugin.exeSLIPXP\$OEM$\$1\Install\Java\ jre-6u3-windows-i586-p-s.exeSLIPXP\$OEM$\$1\Install\Office2003SP3\ <files>SLIPXP\$OEM$\$1\Install\Registry\ other-software.reg services.reg tweaks_en.regSLIPXP\$OEM$\$1\Install\Shockwave\ firefoxshockwaveplugin.exe operashockwaveplugin.exe swInstaller.exeSLIPXP\$OEM$\$Docs\SLIPXP\$OEM$\$Progs\SLIPXP\I386\ <files>cmdlines.txt[COMMANDS]"RunOnceEx.cmd""useraccounts.cmd"RunOnceEx.cmdcmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%05 /VE /D "Shockwave" /fREG ADD %KEY%05 /V 1 /D "%systemdrive%\Install\shockwave\swinstaller.exe" /fREG ADD %KEY%06 /VE /D "Shockwave Plugins" /fREG ADD %KEY%06 /V 1 /D "%systemdrive%\Install\shockwave\firefoxshockwaveplugin.exe" /fREG ADD %KEY%06 /V 2 /D "%systemdrive%\Install\shockwave\operashockwaveplugin.exe" /fREG ADD %KEY%10 /VE /D "Flash" /fREG ADD %KEY%10 /V 1 /D "%systemdrive%\Install\flash\install_flash_player.exe" /fREG ADD %KEY%10 /V 2 /D "%systemdrive%\Install\flash\firefoxflashplugin.exe" /fREG ADD %KEY%10 /V 3 /D "%systemdrive%\Install\flash\operaflashplugin.exe" /fREG ADD %KEY%15 /VE /D "Sun Java Virtual Machine" /fREG 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" /fREG ADD %KEY%20 /VE /D ".NET 1.0, 2.0 and 3.0" /fREG ADD %KEY%20 /V 1 /D "%systemdrive%\Install\dotnet\donetaio.exe" /fREG ADD %KEY%25 /VE /D "Office 2003 SP3" /fREG ADD %KEY%25 /V 1 /D "%systemdrive%\Install\Office2003SP3\setup.exe TRANSFORMS=Unattended.MST /qb-" /fREG ADD %KEY%80 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%80 /V 1 /D "REGEDIT /S %systemdrive%\Install\registry\tweaks_en.reg" /fREG ADD %KEY%80 /V 2 /D "REGEDIT /S %systemdrive%\Install\registry\services.reg" /fREG ADD %KEY%80 /V 3 /D "REGEDIT /S %systemdrive%\Install\registry\other-software.reg" /fREG ADD %KEY%90 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%90 /V 1 /D "%systemdrive%\cleanup.cmd" /fEXITcleanup.cmdcmdow @ /HIDshutdown.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"EXITuseraccounts.cmdnet accounts /maxpwage:unlimitednet user aspnet /deleteEXITwinnt.sif; Generated by nLite 1.4 RC2[Data]AutomaticUpdates="Yes"Autopartition=0MsDosInitiated=0UnattendedInstall="Yes"[Unattended]UnattendMode=FullUnattendedUnattendSwitch="No"OemPreinstall="Yes"OemSkipEula="Yes"FileSystem=*WaitForReboot="No"NoWaitAfterTextMode=1NoWaitAfterGUIMode=1DriverSigningPolicy=IgnoreNonDriverSigningPolicy=Ignore[Display]Xresolution=1024Yresolution=768BitsPerPel=32[SystemRestore][GuiUnattended]AdminPassword="xxxxx"TimeZone=110OEMSkipRegional=1OemSkipWelcome=1[Components][UserData]ProductKey="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"ComputerName=TESTXPFullName="Home User"[RegionalSettings]LanguageGroup=1SystemLocale="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 2Target = Windows XP Professional SP2 - 5.1.2600.2180 - English (United States)[Tasks]Unattended SetupCreate a Bootable ISO[Components];# Compatibility #[KeepFiles]msconfig.exe[RemoveFiles]clock.aviyahoo.bmpswtchbrd.bmp[Options]ProfilesDir = "%SystemDrive%\Documents and Settings"TargetPath = "WINDOWS"temp_dir = %SystemDrive%\TempAdvTweaks[Patches]TcpIp = 100DoUxTheme[Services2][Tweaks][Unattended]UnattendMode = 1ComputerType = DefaultCustomLocalesResolution = 1024x768BitsPerPel = 32 bit (True Color)MaximumDataStorePercentOfDisk = 12RestorePointLife = 30DesktopTheme = Default||AutoUpdates = 2AutoUDay = 5AutoUHour = 15ProgFilesPath = "\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]
Kelsenellenelvian Posted November 5, 2007 Posted November 5, 2007 I have no clue what your problem is.BUT!!!Can I congratulate you one the most informative first post I have ever seen? You covered everything!
presov2003 Posted November 5, 2007 Author Posted November 5, 2007 (edited) I have no clue what your problem is. 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 November 5, 2007 by presov2003
IcemanND Posted November 5, 2007 Posted November 5, 2007 do your cleanup.cmd and useraccounts.cmd commands run?
presov2003 Posted November 5, 2007 Author Posted November 5, 2007 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 )
IcemanND Posted November 5, 2007 Posted November 5, 2007 try removing:cmdow @ /HID@echo offfrom 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.
jbm Posted November 5, 2007 Posted November 5, 2007 (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 forumYou could also run the command manually and then check the regestry to seewhat the problem is Edited November 5, 2007 by jbm
IcemanND Posted November 5, 2007 Posted November 5, 2007 Good catch jbm.in your runonceex.cmdSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExShould beSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\
presov2003 Posted November 5, 2007 Author Posted November 5, 2007 Good catch jbm.in your runonceex.cmdSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExShould beSET 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 )
presov2003 Posted November 6, 2007 Author Posted November 6, 2007 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.
IcemanND Posted November 6, 2007 Posted November 6, 2007 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" /fREG ADD %KEY%05 /VE /D "Shockwave" /fREG ADD %KEY%05 /V 1 /D "%systemdrive%\Install\shockwave\swinstaller.exe" /f or SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\05 /VE /D "Shockwave" /fREG ADD %KEY%\05 /V 1 /D "%systemdrive%\Install\shockwave\swinstaller.exe" /f
presov2003 Posted November 7, 2007 Author Posted November 7, 2007 @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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now