kenneth11zz Posted February 26, 2005 Posted February 26, 2005 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 offREM 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\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREM ------------------------------------------------------------------REM INSTALLING WINDOW COMPONENTSREG ADD %KEY%\110 /VE /D ".NET Framework v1.1 SP1" /fREG ADD %KEY%\110 /V 1 /D "%systemdrive%\install\Applications\netfx1.1sp1.exe" /fREG ADD %KEY%\115 /VE /D "DirectX 9.0C" /fREG ADD %KEY%\115 /V 1 /D "%systemdrive%\install\Applications\directx90c\dxsetup.exe /silent" /fREG ADD %KEY%\120 /VE /D "Notepad2" /fREG ADD %KEY%\120 /V 1 /D "xcopy /y %systemdrive%\Install\Applications\Notepad.exe %systemroot%" /fREG ADD %KEY%\120 /V 2 /D "xcopy /y %systemdrive%\Install\Applications\Notepad.exe %systemroot%\system32" /fREG ADD %KEY%\120 /V 3 /D "REGEDIT /S %systemdrive%\install\Applications\Notepad.reg" /fREG ADD %KEY%\125 /VE /D "Windows Media Player 10.0" /fREG ADD %KEY%\125 /V 1 /D "%systemdrive%\install\Applications\MP10Setup.exe /q:A /c:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\"" /fREG ADD %KEY%\125 /V 2 /D "%systemdrive%\install\applications\wmcsetup.exe /Q:A /R:N" /fREM ------------------------------------------------------------------REM INSTALLING APPLICATIONSREM Edit the registration #REG ADD %KEY%\300 /VE /D "Acdsee Powerpack 7.0.62" /fREG 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,PaneExtension,ArchivePlugIns" /fREG ADD %KEY%\390 /VE /D "WinRAR 4.2" /fREG ADD %KEY%\390 /V 1 /D "%systemdrive%\install\Applications\winrar\WRAR342.exe /s /W" /fREG ADD %KEY%\390 /V 2 /D "REGEDIT /S %systemdrive%\install\Applications\winrar\wrar342.reg" /fREG ADD %KEY%\390 /V 3 /D "XCOPY /y %systemdrive%\install\Applications\winrar\*.key %ProgramFiles%\winrar\" /fREM ------------------------------------------------------------------REM INSTALLING CODECS, DRIVERS, PLUGINSREM Repackaged for silent install.REG ADD %KEY%\505 /VE /D "Adobe Reader 7.0" /fREG ADD %KEY%\505 /V 1 /D "%systemdrive%\install\Applications\Acrobat_Reader_7.0.exe" /fREG ADD %KEY%\505 /V 2 /D "REGEDIT /S "%systemdrive%\install\Applications\Acrobat_Reader_7.0.reg" /fREG ADD %KEY%\510 /VE /D "FlashPlayer 7.0 for Mozilla" /fREG ADD %KEY%\510 /V 1 /D "%systemdrive%\install\Applications\flashplayer7.0.19Moz.exe /s /v/qn" /fREM Install without Yahoo ToolbarREG ADD %KEY%\515 /VE /D "ShockWave 10.1.1.11 and Flash Player 7.0.19 for IE" /fREG ADD %KEY%\515 /V 1 /D "%systemdrive%\install\Applications\Shockwave_10.1.0.11_Flash_Player_7.0.19_IE.msi /qn" /fREM Install without mplayer classic.REG ADD %KEY%\520 /VE /D "QuickTime Alternative 1.39" /fREG ADD %KEY%\520 /V 1 /D "%systemdrive%\install\Applications\quicktimealt139.exe /VERYSILENT /COMPONENTS=qt,qt\codec,qt\directshow,qt\plugins,qt\browser" /fREM Install without mplayer classic.REG ADD %KEY%\530 /VE /D "Real Alternative 1.29" /fREG ADD %KEY%\530 /V 1 /D "%systemdrive%\install\Applications\realalt129.exe /VERYSILENT /COMPONENTS=real,real\codec,real\directshow,real\browser" /fREM Prevents the coffeecup in systray.REG ADD %KEY%\540 /VE /D "Sun Java JRE 1.5.0-01" /fREG 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" /fREG ADD %KEY%\540 /V 2 /D "%systemdrive%\install\Applications\JRE.cmd" /fREM ------------------------------------------------------------------REM IMPORTING REGISTRY TWEAKSREG ADD %KEY%\800 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\800 /V 1 /D "REGEDIT /S %systemdrive%\install\scripts\RegTweaks_SP1_HKLM.reg" /fREM Disable search in zip filesREM Disable show zip files as folders in Windows ExplorerREG ADD %KEY%\810 /VE /D "Disable Zip Search and Display Feature" /fREG ADD %KEY%\810 /V 1 /D "regsvr32 /u /s %windir%\system32\zipfldr.dll" /fREG ADD %KEY%\810 /V 2 /D "regsvr32 /u /s %windir%\system32\cabview.dll" /fREM REG ADD %KEY%\820 /VE /D "Change display resolution" /fREM REG ADD %KEY%\820 /V 1 /D "1365VidChng.exe 1024x768x32@85 -q" /fREM ------------------------------------------------------------------REM CLEANUP AND SHUTDOWNREG ADD %KEY%\900 /VE /D "CLEANUP AND SHUTDOWN" /fREG ADD %KEY%\900 /V 1 /D "%systemdrive%\install\scripts\cleanup.cmd" /fEXIT
Mr.Gamer Posted February 26, 2005 Posted February 26, 2005 too loong to be read at all... check the "" <-- that is maybe the primary cause of troubles with runonceex
kenneth11zz Posted February 26, 2005 Author Posted February 26, 2005 too loong to be read at all... check the "" <-- that is maybe the primary cause of troubles with runonceex <{POST_SNAPBACK}>I didn't find any missing "". Even if that's the case, it should at least executes the rest. In my case, it didn't execute or install any of the applications.-Kenneth
Cartoonite Posted February 26, 2005 Posted February 26, 2005 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.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now