Jump to content

Why My Runonceex Isn't Working?


Recommended Posts

Can someone take a look why my runexoncex no longer executive any of the statements even thought it is imported into the registry? Its have being working for 3 months until I added some applications to it. That's all. The source to the applications is correct.

CLS

@echo off

REM Save this file to the $OEM$ folder.

REM REG.EXE can use the %systemdrive% environment variable.

REM Execute during the GUI-mode of Windows XP Setup at the T-12 Minute stage. After reboot and first logon, RunOnceEx will start.

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

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

REM ------------------------------------------------------------------

REM INSTALLING WINDOW COMPONENTS

REG ADD %KEY%\110 /VE /D ".NET Framework v1.1 SP1" /f

REG ADD %KEY%\110 /V 1 /D "%systemdrive%\install\Applications\netfx1.1sp1.exe" /f

REG ADD %KEY%\115 /VE /D "DirectX 9.0C" /f

REG ADD %KEY%\115 /V 1 /D "%systemdrive%\install\Applications\directx90c\dxsetup.exe /silent" /f

REG ADD %KEY%\120 /VE /D "Notepad2" /f

REG ADD %KEY%\120 /V 1 /D "xcopy /y %systemdrive%\Install\Applications\Notepad.exe %systemroot%" /f

REG ADD %KEY%\120 /V 2 /D "xcopy /y %systemdrive%\Install\Applications\Notepad.exe %systemroot%\system32" /f

REG ADD %KEY%\120 /V 3 /D "REGEDIT /S %systemdrive%\install\Applications\Notepad.reg" /f

REG ADD %KEY%\125 /VE /D "Windows Media Player 10.0" /f

REG ADD %KEY%\125 /V 1 /D "%systemdrive%\install\Applications\MP10Setup.exe /q:A /c:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\"" /f

REG ADD %KEY%\125 /V 2 /D "%systemdrive%\install\applications\wmcsetup.exe /Q:A /R:N" /f

REM ------------------------------------------------------------------

REM INSTALLING APPLICATIONS

REM Edit the registration #

REG ADD %KEY%\300 /VE /D "Acdsee Powerpack 7.0.62" /f

REG ADD %KEY%\300 /V 1 /D "%systemdrive%\install\Applications\ACDSee_PowerPack_v7.0.62.msi /QN USERNAME=ORIGINAL ALLUSERS=1 SLL_LICENSENUMBER=* REBOOT=REALLYSUPPRESS ADDLOCAL=ACDSee,ImageEncodingDecodingPlugIns,ACDPhotoEditor,CommandExtensionPlugIns,FotoSlate,PaneEx

tension,ArchivePlugIns" /f

REG ADD %KEY%\390 /VE /D "WinRAR 4.2" /f

REG ADD %KEY%\390 /V 1 /D "%systemdrive%\install\Applications\winrar\WRAR342.exe /s /W" /f

REG ADD %KEY%\390 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\winrar\wrar342.reg" /f

REG ADD %KEY%\390 /V 3 /D "XCOPY /y %systemdrive%\install\Applications\winrar\*.key %ProgramFiles%\winrar\" /f

REM ------------------------------------------------------------------

REM INSTALLING CODECS, DRIVERS, PLUGINS

REM Repackaged for silent install.

REG ADD %KEY%\505 /VE /D "Adobe Reader 7.0" /f

REG ADD %KEY%\505 /V 1 /D "%systemdrive%\install\Applications\Acrobat_Reader_7.0.exe" /f

REG ADD %KEY%\505 /V 2 /D "REGEDIT /S "%systemdrive%\install\Applications\Acrobat_Reader_7.0.reg" /f

REG ADD %KEY%\510 /VE /D "FlashPlayer 7.0 for Mozilla" /f

REG ADD %KEY%\510 /V 1 /D "%systemdrive%\install\Applications\flashplayer7.0.19Moz.exe /s /v/qn" /f

REM Install without Yahoo Toolbar

REG ADD %KEY%\515 /VE /D "ShockWave 10.1.1.11 and Flash Player 7.0.19 for IE" /f

REG ADD %KEY%\515 /V 1 /D "%systemdrive%\install\Applications\Shockwave_10.1.0.11_Flash_Player_7.0.19_IE.msi /qn" /f

REM Install without mplayer classic.

REG ADD %KEY%\520 /VE /D "QuickTime Alternative 1.39" /f

REG ADD %KEY%\520 /V 1 /D "%systemdrive%\install\Applications\quicktimealt139.exe /VERYSILENT /COMPONENTS=qt,qt\codec,qt\directshow,qt\plugins,qt\browser" /f

REM Install without mplayer classic.

REG ADD %KEY%\530 /VE /D "Real Alternative 1.29" /f

REG ADD %KEY%\530 /V 1 /D "%systemdrive%\install\Applications\realalt129.exe /VERYSILENT /COMPONENTS=real,real\codec,real\directshow,real\browser" /f

REM Prevents the coffeecup in systray.

REG ADD %KEY%\540 /VE /D "Sun Java JRE 1.5.0-01" /f

REG ADD %KEY%\540 /V 1 /D "%systemdrive%\install\Applications\JRE5.0.01.msi /qn REBOOT=ReallySuppress SYSTRAY=0 WEBSTARTICON=0 ADDLOCAL=jrecore IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0" /f

REG ADD %KEY%\540 /V 2 /D "%systemdrive%\install\Applications\JRE.cmd" /f

REM ------------------------------------------------------------------

REM IMPORTING REGISTRY TWEAKS

REG ADD %KEY%\800 /VE /D "Importing Registry Tweaks" /f

REG ADD %KEY%\800 /V 1 /D "REGEDIT /S %systemdrive%\install\scripts\RegTweaks_SP1_HKLM.reg" /f

REM Disable search in zip files

REM Disable show zip files as folders in Windows Explorer

REG ADD %KEY%\810 /VE /D "Disable Zip Search and Display Feature" /f

REG ADD %KEY%\810 /V 1 /D "regsvr32 /u /s %windir%\system32\zipfldr.dll" /f

REG ADD %KEY%\810 /V 2 /D "regsvr32 /u /s %windir%\system32\cabview.dll" /f

REM REG ADD %KEY%\820 /VE /D "Change display resolution" /f

REM REG ADD %KEY%\820 /V 1 /D "1365VidChng.exe 1024x768x32@85 -q" /f

REM ------------------------------------------------------------------

REM CLEANUP AND SHUTDOWN

REG ADD %KEY%\900 /VE /D "CLEANUP AND SHUTDOWN" /f

REG ADD %KEY%\900 /V 1 /D "%systemdrive%\install\scripts\cleanup.cmd" /f

EXIT

Link to comment
Share on other sites


Are you sure that the script is being executed? If it contains code from a script that used to work, as you say, than I suspect something has happend that results in this script never being run.

Try running the script on another PC to see if the registry keys get imported. If that works, then chances are your script is not being run. Look into how you are attempting to call the script to see where the issue lies.

If the script does not import the keys as it is supposed to, the error is likely with the script itself.

Hope this helps.

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