Jump to content

RunOnceEx only runs after a reboot


Recommended Posts


I reread your question... You say you get a blank screen after the Windows installation. Not even a start menu?

Normally, the computer should reboot after the Windows installation finished. Then while booting into Windows for the first time it will perform the RunOnceEx stuff. From what I understand, that works correctly on your unattended but somehow Windows doesn't automatically reboot after the Windows installation finished (you do it manually, but RunOnceEx gets executed at the correct moment). You should try to figure out why it doesn't reboot automatically (I wouldn't know)...

Link to comment
Share on other sites

Were you able to resolve this? My latest CD is also hanging when setup finished, just a blank blue screen.

My only suspicion is that since I used a Microsoft Corporation.img from a different CD, and didnt use CDIMAGE for this one. I'll try changing this later.

After I Reset Manually it loads XP for the first time to setup Updates/Accounts/Etc and continues fine.

Link to comment
Share on other sites

RunOnceEx.cmd

cmdow @ /HID
@echo off

IF EXIST D:\CD.txt set CDROM=D:
IF EXIST E:\CD.txt set CDROM=E:
IF EXIST F:\CD.txt set CDROM=F:
IF EXIST G:\CD.txt set CDROM=G:
IF EXIST H:\CD.txt set CDROM=H:
IF EXIST I:\CD.txt set CDROM=I:
IF EXIST J:\CD.txt set CDROM=J:

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

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

REG ADD %KEY%\005 /VE /D "UNPACKING Office 2003 Professional with SP1" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\OEM\Software\Office2003\Office2003.exe" /f

REG ADD %KEY%\010 /VE /D "INSTALLING Office 2003 Professional with SP1" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\OfficeTEMP\setup.exe TRANSFORMS=Unattended.MST /qb-" /f

REG ADD %KEY%\020 /VE /D "Adobe Reader 6.02" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\OEM\Software\Adobe\acroread602.exe" /f

REG ADD %KEY%\025 /VE /D "Microsoft .NET Framework 1.1 SP1 Integrated" /f
REG ADD %KEY%\025 /V 1 /D "%CDROM%\OEM\Software\NetFramework\netfxsp1.exe" /f

REG ADD %KEY%\030 /VE /D "SpywareBlaster 3.2" /f
REG ADD %KEY%\030 /V 1 /D "%CDROM%\OEM\Software\SpywareBlaster\spywareblastersetup.exe /verysilent" /f
REG ADD %KEY%\030 /V 2 /D "pskill.exe spywareblaster.exe" /f

REG ADD %KEY%\040 /VE /D "Winrar 3.40 FINAL" /f
REG ADD %KEY%\040 /V 1 /D "%CDROM%\OEM\Software\Winrar\Winrar340.exe /s /W" /f

REG ADD %KEY%\045 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\045 /V 1 /D "REGEDIT /S %CDROM%\OEM\Software\regtweaks.reg" /f

REG ADD %KEY%\050 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\050 /V 1 /D "%CDROM%\OEM\Software\cleanup.cmd" /f

EXIT

Link to comment
Share on other sites

That looks ok to me. but i am not the expert. :)

make sure in all of your .cmd's you have the EXIT at the bottom.

what is in your cmdlines.txt?

mine looks like this

cmdlines.txt

[COMMANDS]
"konten.cmd"
"RunOnceEx.cmd"

konten.cmd

net user BritishBulldog /add
net localgroup Administratoren BritishBulldog /add
net accounts /maxpwage:unlimited
REGEDIT /S autologin.reg
EXIT

autologin.reg

[
Windows Registry Editor Version 5.00

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="BritishBulldog"
"DefaultPassword"=""
"AutoAdminLogon"="1"

will rack my brain to try and remember what i did to get things going again....

I now use the XPlode method and things look even better :thumbup

Link to comment
Share on other sites

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