swain90 Posted May 17, 2011 Posted May 17, 2011 (edited) Hi,I've had a read in this topic but I still can't get RunOnceEx to run.see attached screen shots of my folder structure and also the SetupComplete.cmd file, I can't understand what im not doing right, can anyone help?ThanksSwain90SetupComplete.txtoembat.txt Edited May 17, 2011 by swain90
myselfidem Posted May 17, 2011 Posted May 17, 2011 Write carrefully paths inside SetupComplete.cmdREG ADD %KEY%\005 /VE /D "Adding Windows OEM Information" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\oem.bat" /fCheck also paths for oem.bat!
swain90 Posted May 17, 2011 Author Posted May 17, 2011 Ok thanks for that i Shall try it and see if it makes any difference, the oem.bat file is fine i test that yesterday so i shall check see if %systemdrive% makes any difference.Thanks!!
swain90 Posted May 17, 2011 Author Posted May 17, 2011 Nope still doesn't work, it won't lauch RunOnceEx at all I don't get any errors, it reboots from "Checking System Performance" then gets to the Welcome Screen, then says "Prepairng Your Desktop" then loads into the desktop and doesn't run the RunOnceEx.
myselfidem Posted May 17, 2011 Posted May 17, 2011 Remember:1) folder $1 corresponds to %systemdrive%2) folder $$ corresponds to WINDOWS
myselfidem Posted May 17, 2011 Posted May 17, 2011 Could you attach your files SetupComplete.cmd and oem.bat as text files, please!
swain90 Posted May 17, 2011 Author Posted May 17, 2011 Right ok, I didn't know that.What i had done as move the Install folder to the root of the ISO where Setup.exe and Bootmgr are. So I shall now move the Install folder to the $1 folder.But surely i should still get the RunOnceEx GUI menu thing telling me what its doing, or at least give an error when its looking at the paths to the files?
swain90 Posted May 17, 2011 Author Posted May 17, 2011 (edited) They are attached.....Thanks For Giving Me A hand, I used WPI for my Windows XP unattended images so i thought i'd give RunOnceEx a try proving a little more difficultPlease note the oembat.txt file is named as oembat just for the batch file refference on the actual image its called oem.bat i just renamed it for the purpose of uploading it as a text file so on the actual image it is named correctly, just thought i'd let you know just in case you thought that may have been causing issues. Edited May 17, 2011 by swain90
swain90 Posted May 17, 2011 Author Posted May 17, 2011 (edited) After moving that folder it appears to have worked, there was also a /f missing from the title part which i have fixed, but thanks for the help Edited May 17, 2011 by swain90
myselfidem Posted May 17, 2011 Posted May 17, 2011 (edited) Yes, like this:SetupComplete.cmd@ECHO OFFREG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v Manufacturer /t REG_SZ /d "Test" /fREG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v Model /t REG_SZ /d "Se7en" /fREG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v SupportPhone /t REG_SZ /d "123-456-7890" /fREG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v SupportURL /t REG_SZ /d "http://www.test.com" /fREG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v Logo /t REG_SZ /d "C:\Windows\system32\oemlogo.bmp" /fEXITOr you can use inside Autounattend.xml file:<settings pass="oobeSystem"><OEMInformation> <HelpCustomized>true</HelpCustomized> <Manufacturer>Test</Manufacturer> <Model>Se7en</Model> <Logo>C:\Windows\system32\oemlogo.bmp</Logo> <SupportHours>hours</SupportHours> <SupportPhone>123-456-7890</SupportPhone> <SupportURL>http://www.test.com/support</SupportURL></OEMInformation>Or you can use a reg file:OEM_Information.regWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation]"Logo"="C:\\Windows\\System32\\oemlogo.bmp""Manufacturer"="Se7en""SupportURL"="http://people.consolidated.net/veeger""Model"="Windows Se7en"*Edit: don't forget to set the oemlogo.bmp file inside: %SystemRoot%\system32\oemlogo.bmp Edited May 17, 2011 by myselfidem
Yzöwl Posted May 17, 2011 Posted May 17, 2011 Yes, like this:SetupComplete.cmd@ECHO OFFREG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v Manufacturer /t REG_SZ /d "Test" /fREG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v Model /t REG_SZ /d "Se7en" /fREG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v SupportPhone /t REG_SZ /d "123-456-7890" /fREG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v SupportURL /t REG_SZ /d "http://www.test.com" /fREG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation" /v Logo /t REG_SZ /d "C:\Windows\system32\oemlogo.bmp" /fEXITWell if I was going to use a command script then I'd certainly use variables and wouldn't bother with the non-required /f or /t switches.@ECHO OFFSETLOCALSET "K_=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation"REG ADD "%K_%" /v Manufacturer /d "Test"REG ADD "%K_%" /v Model /d "Se7en"REG ADD "%K_%" /v SupportPhone /d "123-456-7890"REG ADD "%K_%" /v SupportURL /d "http://www.test.com"REG ADD "%K_%" /v Logo /d "%SystemRoot%\system32\oemlogo.bmp"
myselfidem Posted May 17, 2011 Posted May 17, 2011 (edited) Many thanks YzöwlI'm happy to learn every time with your help! Edited May 17, 2011 by myselfidem
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now