Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Sign in to follow this  
Followers 0
nomaan

errors in RunOnceEx

7 posts in this topic

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\

EXIT

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.

thanks

0

Share this post


Link to post
Share on other sites

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_?

0

Share this post


Link to post
Share on other sites

Just the regular stuff

[Version]Signature="$Windows NT$"

MajorVersion=5

MinorVersion=1

BuildNumber=2600

[setupData]

CatalogSubDir="\i386\Update"

[ProductCatalogsToInstall]

[setupHotfixesToRun]

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

DX9NTopk.exe

KB839643.EXE /Q /O /N /Z

js56nen.exe /Q:A /R:N

qchain.exe

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

0

Share this post


Link to post
Share on other sites

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! :)

0

Share this post


Link to post
Share on other sites

yeah ... usign VMware // i'll get back to you on this

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

Modify this in your WINNT.SIF file

[GuiUnattended]
   AutoLogon = Yes
   AutoLogonCount = 1

to this

[GuiUnattended]
   AutoLogon = Yes
   AutoLogonCount = 2

0

Share this post


Link to post
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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.