I have ie6 in the cmdlines.txt as follows:
[Commands]
"INSTALL_IE6.CMD"
"RunOnceEx.cmd"
IE6 installs wonderfully, but upon reboot my runonceEx.cmd seems to flash for a second, then never executes. I have rem'ed almost everything out trying to see if I could get it to work.. here is what I have:
cmdow @ /HID
@echo off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f
rem REG ADD %KEY%\001 /VE /D "Microsoft DirectX 9c" /f
rem REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\DX9C\dxsetup.exe /silent" /f
rem REG ADD %KEY%\016 /VE /D "Windows Media Player 9" /f
rem REG ADD %KEY%\016 /V 1 /D "%systemdrive%\install\WMP9\MPSetup.exe /Q:A /R:N" /f
rem REG ADD %KEY%\900 /VE /D "Installing Post SP4 Hotfixes" /f
rem REG ADD %KEY%\900 /V 1 /D "%systemdrive%\install\UpdateXP.exe" /f
rem REG ADD %KEY%\905 /VE /D "Installing NOD32 but you MUST configure it" /f
rem REG ADD %KEY%\905 /V 1 /D "%systemdrive%\install\eset\setup.exe /silentmode" /f
rem REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\eset.reg" /f
REG ADD %KEY%\990 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\990 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f
EXIT
I have reg.exe, shutdown.exe, and cmdow.exe in $OEM$\$$\system32 and I also put them all in i386/system32 just in case
Is there anything I am missing? I tried rem'ming the cmdow, but that didn't fix it either.
Extremely frutstrated,
angela
Page 1 of 1
Runonceex.cmd Doesn't Seem To Run RunOnceEx.cmd doesn't seem to run
#2
Posted 21 February 2005 - 05:35 AM
Try That
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 "Microsoft DirectX 9c" /f REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\DX9C\dxsetup.exe /silent" /f REG ADD %KEY%\016 /VE /D "Windows Media Player 9" /f REG ADD %KEY%\016 /V 1 /D "%systemdrive%\install\WMP9\MPSetup.exe /Q:A /R:N" /f REG ADD %KEY%\900 /VE /D "Installing Post SP4 Hotfixes" /f REG ADD %KEY%\900 /V 1 /D "%systemdrive%\install\UpdateXP.exe" /f REG ADD %KEY%\905 /VE /D "Installing NOD32 but you MUST configure it" /f REG ADD %KEY%\905 /V 1 /D "%systemdrive%\install\eset\setup.exe /silentmode" /f rem REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\eset.reg" /f REG ADD %KEY%\990 /VE /D "Cleaning Up and Rebooting" /f REG ADD %KEY%\990 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f EXIT
#3
Posted 21 February 2005 - 05:55 AM
Someone pointed out to me that you can't use REM in runOnceEx and I also have a typo on my numbering. Making these changes and trying it with your suggestion. Will let you know.
Thank you!
Thank you!
#4
Posted 21 February 2005 - 06:11 AM
cmdow @ /HID
@echo off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY%\990 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\990 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f
EXIT
doesn't work either.
@echo off
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REG ADD %KEY% /V TITLE /D "Installing Applications" /f
REG ADD %KEY%\990 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\990 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f
EXIT
doesn't work either.
#5
Posted 21 February 2005 - 07:28 AM
by itself it runs fine on my test machine. REM out CMDOW, @ECHO OFF, and change EXIT to PAUSE then try it and when it runs it will stop at the end and you can look at it for errors.
#6
Posted 21 February 2005 - 07:32 AM
solanjie, on Feb 21 2005, 07:55 PM, said:
Someone pointed out to me that you can't use REM in runOnceEx and I also have a typo on my numbering. Making these changes and trying it with your suggestion. Will let you know.
Thank you!
<{POST_SNAPBACK}>
Thank you!
<{POST_SNAPBACK}>
Hi Angela,
Firstly you can actually us rem statements in your runonceex.cmd file because it is still a cmd - a batch file.
Second, even with typos and incorrect numbering you should be able to see runonceex working. You can actually test it. Try this.
runonceex_test.cmd
@Echo Off cmdow @ /HID SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Applications" /f REG ADD %KEY%\000 /VE /D "Preparing Installation..." /f REG ADD %KEY%\000 /V 1 /D "%comspec% /C pause" /f
ok now you can add this to your live system without causing any damage or changes to any files. Next download the little test file i made from here
This will start the runonceex process in your current session - no need to reboot or install anything.
Now what you should see is simply a command (cmd.exe) window open with "Press any key to continue . . ." in it thats it... if you see this window then your runonceex is working.
Also here is a cool little tool to help create your runonceex.cmd file for you (it is still a work in progress - but it is functional and can produce the basics for you) RunOnceEx Creator thread
here is an copy of one of my runonceex.cmd files you can change to suite yourself.
@Echo Off cmdow @ /HID FOR %%i IN (C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\win51ip.SP2 SET CDROM=%%i: IF %CDROM%!==! goto _nosource SET PP=%cdrom%\Apps\ SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Applications" /f REG ADD %KEY%\000 /VE /D "Preparing Installation..." /f REG ADD %KEY%\000 /V 1 /D "%PP%prepare.cmd" /f REG ADD %KEY%\001 /VE /D "Installing Hotfixes..." /f REG ADD %KEY%\001 /V 1 /D "%PP%hotfix.cmd" /f rem REG ADD %KEY%\002 /VE /D "Ad-Aware SE 6 Pro" /f rem REG ADD %KEY%\002 /V 1 /D "%PP%adaware\aase6pro.exe /silent" /f rem REG ADD %KEY%\002 /V 2 /D "process -k hh.exe" /f rem REG ADD %KEY%\002 /V 3 /D "process -k ad-aware.exe" /f REG ADD %KEY%\003 /VE /D "Symantec Antivirus 9.0 CE" /f REG ADD %KEY%\003 /V 1 /D "%PP%savce\savce.exe" /f REG ADD %KEY%\004 /VE /D "WinRAR 3.42" /f REG ADD %KEY%\004 /V 1 /D "%PP%winrar\wrar342r.exe /s" /f REG ADD %KEY%\005 /VE /D "QuickTime 6.51" /f REG ADD %KEY%\005 /V 1 /D "%PP%quicktime\QuickTimeFullInstaller.exe" /f REG ADD %KEY%\006 /VE /D "Mozilla Firefox 1.0" /f REG ADD %KEY%\006 /V 1 /D "%PP%firefox\FireFox_Unattended.exe /s" /f REG ADD %KEY%\007 /VE /D "PicaView 2.0" /f REG ADD %KEY%\007 /V 1 /D "%PP%picaview\picaview20.exe /s /v\"/QB-! REBOOT=Suppress\"" /f REG ADD %KEY%\007 /V 2 /D "REGEDIT /S %PP%picaview\register.reg" /f REG ADD %KEY%\008 /VE /D "UltraEdit 10.20c" /f REG ADD %KEY%\008 /V 1 /D "%PP%ultaedit\uesetup.exe /s" /f REG ADD %KEY%\008 /V 2 /D "REGEDIT /S %PP%ultaedit\register.reg" /f REG ADD %KEY%\009 /VE /D "Nero Burning ROM 6.6" /f REG ADD %KEY%\009 /V 1 /D "%PP%nero\nero6605.exe" /f REG ADD %KEY%\010 /VE /D "Free Download Manager" /f REG ADD %KEY%\010 /V 1 /D "%PP%fdm\fdminst.exe /verysilent /sp-" /f REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %PP%fdm\fdm.reg" /f REG ADD %KEY%\011 /VE /D "HMTCD Wizard" /f REG ADD %KEY%\011 /V 1 /D "%PP%cdwiz\HMTCDWizard_enu.exe /QB-!" /f REG ADD %KEY%\012 /VE /D ".NET Framework 1.1 SP1" /f REG ADD %KEY%\012 /V 1 /D "%PP%dotnet\netfx.exe" /f REG ADD %KEY%\013 /VE /D "MSN Messenger 6.2" /f REG ADD %KEY%\013 /V 1 /D "%PP%msnmgr\MsnMsgs.msi /QB-!" /f REG ADD %KEY%\013 /V 2 /D "process -k msnmsgr.exe" /f REG ADD %KEY%\014 /VE /D "Messenger Plus 3.25" /f REG ADD %KEY%\014 /V 1 /D "%PP%msnmgr\MsgPlus-325.exe /SilentInstallNoSponsor" /f REG ADD %KEY%\014 /V 2 /D "process -k msnmsgr.exe" /f REG ADD %KEY%\015 /VE /D "Google Toolbar 2.0" /f REG ADD %KEY%\015 /V 1 /D "%PP%google\Toolbar.exe /q /d" /f REG ADD %KEY%\016 /VE /D "Google Gmail Notifier 1.0" /f REG ADD %KEY%\016 /V 1 /D "%PP%google\GmailInstaller.exe /S" /f REG ADD %KEY%\016 /V 2 /D "process -k gnotify.exe" /f REG ADD %KEY%\017 /VE /D "O&&O Defrag Professional 6.5" /f REG ADD %KEY%\017 /V 1 /D "%PP%oodefragpro\oo_defrag_pro.msi /qb-!" /f REG ADD %KEY%\017 /V 2 /D "Regedit /S %PP%oodefragpro\register.reg" /f REG ADD %KEY%\018 /VE /D "Microsoft Anti-Spyware 1.0" /f REG ADD %KEY%\018 /V 1 /D "\"%PP%msantispy\Microsoft AntiSpyware.msi\" /qb-!" /f REG ADD %KEY%\018 /V 2 /D "\"%programfiles%\Microsoft AntiSpyware\gcasDtServ.exe\" /regserver" /f REG ADD %KEY%\019 /VE /D "CuteFTP 6 Professional" /f REG ADD %KEY%\019 /V 1 /D "%PP%cuteftp\cuteftppro.exe -S" /f REG ADD %KEY%\020 /VE /D "Adobe Acrobat Reader 7" /f REG ADD %KEY%\020 /V 1 /D "%PP%acrobat\Adobe_Reader_7.msi /passive /qb-!" /f REG ADD %KEY%\020 /V 2 /D "REGEDIT /S %PP%acrobat\acrobat.reg" /f REG ADD %KEY%\021 /VE /D "Sun Java VM 5.0 update 1" /f REG ADD %KEY%\021 /V 1 /D "%PP%sunjava\jre1.5.0_01.msi Custom=1 IEXPLORER=1 MOZILLA=1 SYSTRAY=0 WEBSTARTICON=0 Reboot=Suppress /q" /f REG ADD %KEY%\022 /VE /D "Office 2003 Installation" /f REG ADD %KEY%\022 /V 1 /D "%PP%office\silent_install.exe" /f REG ADD %KEY%\023 /VE /D "Importing Registry Tweaks" /f REG ADD %KEY%\023 /V 1 /D "REGEDIT /S %PP%regtweaks.reg" /f REG ADD %KEY%\023 /V 2 /D "REGEDIT /S %PP%blocklist.reg" /f REG ADD %KEY%\024 /VE /D "Setup Default/All User Settings" /f REG ADD %KEY%\024 /V 1 /D "REG LOAD \"HKU\CUSTOM\" \"C:\Documents and Settings\Default User\NTUSER.DAT\"" /f REG ADD %KEY%\024 /V 2 /D "REGEDIT /S %PP%DefaultUser.reg" /f REG ADD %KEY%\024 /V 3 /D "REG UNLOAD \"HKU\CUSTOM\"" /f REG ADD %KEY%\025 /VE /D "Configuring OEM Branding" /f REG ADD %KEY%\025 /V 1 /D "%PP%OEMKrnl.cmd" /f REG ADD %KEY%\026 /VE /D "Cleaning Up and Reboot" /f REG ADD %KEY%\026 /V 1 /D "%PP%cleanup.cmd" /f EXIT :_nosource popup /IS /M "No Application Source has been detected. RunOnceEx Task has been terminated." /T "Alert No Source!" EXIT
If you need any other help let us know
Share this topic:
Page 1 of 1



Help
Back to top










