Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


errors in RunOnceEx

- - - - -

  • Please log in to reply
6 replies to this topic


  • Member
  • 4 posts
  • Joined 05-June 04
This is my runonceex file

cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "Deleting unwanted stuff " /f

DEL "%systemroot%\*.bmp"
DEL "%systemroot%\Web\Wallpaper\*.jpg"
DEL "%systemroot%\system32\dllcache\*.scr"
DEL "%systemroot%\system32\*.scr"

DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"

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

REG ADD %KEY%\004 /VE /D "Daemon Tools 3.46" /f
REG ADD %KEY%\004 /V 1 /D "%systemdrive%\install\DaemonTools\Daemon.msi /qn Reboot=Suppress" /f

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\Adobe_Reader_6\AR6.msi /qn" /f

REG ADD %KEY%\006 /VE /D "Win Rar CE v3.3" /f
REG ADD %KEY%\006 /V 1 /D "%systemdrive%\install\WinRar.v3.3\WinRAR.exe /s" /f

REG ADD %KEY%\015 /VE /D "Diskeeper 8.0" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\Diskeeper.Pro.v.8.0\setup.exe /s /v/qn" /f

REG ADD %KEY%\040 /VE /D "MSN Messenger 6.2" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\MSN.Messenger.v6.2\MsnMsgs.Msi /qn" /f

REG ADD %KEY%\045 /VE /D "Zone Alarm Suite" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\ZoneAlarm.Security.Suite.v5.0\setup.exe /s /noreboot" /f

REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

REG ADD %KEY%\051 /VE /D "Alcohol 120%" /f
REG ADD %KEY%\051 /V 1 /D "REGEDIT /S %systemdrive%\install\alcohol\alcohol1.reg" /f
REG ADD %KEY%\051 /V 2 /D "REGEDIT /S %systemdrive%\install\alcohol\alcohol2.reg" /f
REG ADD %KEY%\051 /V 3 /D "%systemdrive%\install\Alcohol\setup.exe /qn Reboot=Suppress" /f

REG ADD %KEY%\052 /VE /D "MDAC 2.7 SP1 Hotfix" /f
REG ADD %KEY%\052 /V 1 /D "%systemdrive%\install\hotfixes\mdac.cmd" /f

REG ADD %KEY%\055 /VE /D "Rebooting" /f
Rshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."

REG ADD %KEY%\060 /VE /D "Deleteing unwanted links" /f

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 6.0.lnk"
DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"

RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"
RD /S /Q "%systemroot%\Cache\Adobe Reader 6\"
RD /S /Q %systemdrive%\drivers\
RD /S /Q %systemdrive%\apps\


Right after all the entries have been processed,
I get this error message.

"Unable to install java packages."

The window is titled Java package manager. I click ok, and the error comes back 4 more times. Then it goes into windows.

I don't know whats generating this error. I don't see any java related stuff in my runonceex file.

another problem i'm getting is that after the install, It asks me for the admin password. I read somewhere that I can set it to auto login somewhere, but can't seem to find that info.


How to remove advertisement from MSFN



    MSFN SuperB

  • Member
  • PipPipPipPipPipPipPipPipPipPip
  • 5,070 posts
  • Joined 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag
i dunno whats wrong with it but
"Rshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..." u have a "R" at the beginning that's wrong...
what do u have in your svcpack.inf? or in_?


  • Member
  • 4 posts
  • Joined 05-June 04
Just the regular stuff

[Version]Signature="$Windows NT$"




KB823182.exe /Q /O /N /Z
KB824105.exe /Q /O /N /Z
KB824141.exe /Q /O /N /Z
KB825119.exe /Q /O /N /Z
KB826939.exe /Q /O /N /Z
KB828035.exe /Q /O /N /Z
KB828741.EXE /Q /O /N /Z
KB835732.EXE /Q /O /N /Z
KB837001.EXE /Q /O /N /Z
KB837009.exe /Q:A /R:N
KB840374.EXE /Q /O /N /Z
Q816093.exe /Q:A /R:N
Q832894.exe /Q:A /R:N
Q831167.exe /Q:A /R:N
Q828026.exe /Q /O /N /Z
KB839643.EXE /Q /O /N /Z
js56nen.exe /Q:A /R:N

I'll test it without the R, and update ..

Joe User 99

Joe User 99


  • Member
  • PipPip
  • 168 posts
  • Joined 24-September 03
Well..I can't say for sure, but Q816093.exe is a java package.
Is this a SP1 or SP1a CD? Because if it's a SP1a CD, you have to install the full JVM prior to this update.
Also, some patches/hotfixes will add their own entries to the runonce key.
Maybe the error is from this update? Try removing it and trying again, or check the SP1 vs SP1a thing.

Hope your are testing on VMWare or Virtual PC to save CDs! :)


  • Member
  • 4 posts
  • Joined 05-June 04
yeah ... usign VMware // i'll get back to you on this


  • Member
  • 4 posts
  • Joined 05-June 04
i cleaned up the runonceex file, and its all good.

i still have the administrator login issue. i need it to autologin 1 more time ... not sure how i would do that




  • Member
  • 41 posts
  • Joined 30-March 04
Modify this in your WINNT.SIF file
    AutoLogon = Yes
    AutoLogonCount = 1
to this
    AutoLogon = Yes
    AutoLogonCount = 2

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users