Jump to content

Having problems with RunOnceEx - programs craching


Recommended Posts

Hi all

Hope somebody got some insights in to this, cus i've been staring at it for hours now.

When I run my RunOnceEx.cmd file, and then run this from the Run menu - rundll32.exe iernonce.dll,RunOnceExProcess, it all works out perfect, but if I run RunOnceEx.cmd then reboots, things start to go wrong (I do this to have the RunOnceEx environment run as it would during an unattended install - and I do get the following problems during an unattended install as well).

In particular, IE, DirectX and QuickTime seem to fail. QuickTime tells me that QTPluginInstall.exe has generated errors and must be restarted.

When DirectX and IE are installed via the RunOnceEx windows bitches about 6-8 .sys files that cant do something with another file, mostly hal.dll (these files include: mskssrv.sys, STREAM.sys, MPE.sys, steamip.sys, slip.sys, ccdecode.sys, nabtsfec.sys, wstcodec.sys) .

If I install via a normal .cmd file, that just calles the installers as RunOnceEx does, it also works out just fine.

So is there anything special about the RunOnceEx section when its being run just after logon?

EDIT: This is for a Windows 2000 Pro unattended installation, being delivered from a RIS server. Everything else works out as it should.

Heres my RunOnceEx.cmd:

cmdow @ /HID
@echo off

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

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

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /f

REG ADD %KEY%\005 /VE /D "Adobe Reader 6" /f
REG ADD %KEY%\005 /V 1 /D "%systemdrive%\install\CommonApplications\AcrobatReader6\AdbeRdr60_enu_full.exe -p"""-s /v\"""/qn\""" /f

REG ADD %KEY%\010 /VE /D "WinZip 9" /f
REG ADD %KEY%\010 /V 1 /D "msiexec /i \"%systemdrive%\install\CommonApplications\WinZip9\winzip9.msi\" /qb-!" /f

REG ADD %KEY%\015 /VE /D ".NET Framework v1.1" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\CommonApplications\.netFramework\netfx.msi /qb-!" /f

REG ADD %KEY%\020 /VE /D "Sun Java VM 1.4.2" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\CommonApplications\SunJavaVM\j2re-1_4_2_05-windows-i586-p.exe /s /v/qn" /f

REG ADD %KEY%\025 /VE /D "Windows Media Player 9 (2000)" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\CommonApplications\WMP9\MPSetup.exe /Q:A /R:N" /f

REG ADD %KEY%\030 /VE /D "Real Player 10 Gold" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\CommonApplications\RealPlayer10Gold\RealPlayer10GOLD.exe -s" /f

REG ADD %KEY%\035 /VE /D "QuickTime 6.5" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\CommonApplications\QuickTime\QuickTimeFullInstaller.exe" /f

REG ADD %KEY%\040 /VE /D "DivX 5.2" /f
REG ADD %KEY%\040 /V 1 /D "regsvr32.exe divxdec.ax /s" /f

REG ADD %KEY%\045 /VE /D "XviD 1.0.1 video codec" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\CommonApplications\XviD\XviD-1.0.1.exe /sp- /silent /norestart" /f

REG ADD %KEY%\050 /VE /D "Lotus Notes 6.0.3" /f
REG ADD %KEY%\050 /V 1 /D "msiexec /i \"%systemdrive%\install\CommonApplications\LotusNotes\Lotus Notes 6.0.3.msi\" TRANSFORMS=\"%systemdrive%\install\CommonApplications\LotusNotes\UnattendedNotes.mst\" /qb-!" /f

REG ADD %KEY%\055 /VE /D "Macromedia Shockwave Player 10" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\CommonApplications\Shockwave\Shockwave_Installer_Full.exe /S" /f

REG ADD %KEY%\060 /VE /D "Macromedia Flash 7" /f
REG ADD %KEY%\060 /V 1 /D "%systemdrive%\install\CommonApplications\flash\flashplayer7_winax.exe /Q" /f

REG ADD %KEY%\065 /VE /D "Microsoft DirectX 9c" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\CommonApplications\DirectX_9c\dxsetup.exe /silent" /f

REG ADD %KEY%\070 /VE /D "PDF Creator 0.8.0" /f
REG ADD %KEY%\070 /V 1 /D "%systemdrive%\install\CommonApplications\PDFCreator0.8.0\PDFCreator-0_8_0_AFPLGhostscript.exe /VERYSILENT /SP- /NORESTART" /f

REG ADD %KEY%\075 /VE /D "Internet Explorer 6 SP1 + updates" /f
REG ADD %KEY%\075 /V 1 /D "%systemdrive%\install\CommonApplications\IE6\ie.exe /Q:A /R:N" /f

REG ADD %KEY%\080 /VE /D "Cleaning up - post installation" /f
REG ADD %KEY%\080 /V 1 /D "net user aspnet /delete" /f

EXIT

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