solanjie Posted February 21, 2005 Posted February 21, 2005 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 offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /frem REG ADD %KEY%\001 /VE /D "Microsoft DirectX 9c" /frem REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\DX9C\dxsetup.exe /silent" /frem REG ADD %KEY%\016 /VE /D "Windows Media Player 9" /frem REG ADD %KEY%\016 /V 1 /D "%systemdrive%\install\WMP9\MPSetup.exe /Q:A /R:N" /frem REG ADD %KEY%\900 /VE /D "Installing Post SP4 Hotfixes" /frem REG ADD %KEY%\900 /V 1 /D "%systemdrive%\install\UpdateXP.exe" /frem REG ADD %KEY%\905 /VE /D "Installing NOD32 but you MUST configure it" /frem REG ADD %KEY%\905 /V 1 /D "%systemdrive%\install\eset\setup.exe /silentmode" /frem REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\eset.reg" /fREG ADD %KEY%\990 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\990 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXITI have reg.exe, shutdown.exe, and cmdow.exe in $OEM$\$$\system32 and I also put them all in i386/system32 just in caseIs there anything I am missing? I tried rem'ming the cmdow, but that didn't fix it either.Extremely frutstrated,angela
gunsmokingman Posted February 21, 2005 Posted February 21, 2005 Try Thatcmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Microsoft DirectX 9c" /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\DX9C\dxsetup.exe /silent" /fREG ADD %KEY%\016 /VE /D "Windows Media Player 9" /fREG ADD %KEY%\016 /V 1 /D "%systemdrive%\install\WMP9\MPSetup.exe /Q:A /R:N" /fREG ADD %KEY%\900 /VE /D "Installing Post SP4 Hotfixes" /fREG ADD %KEY%\900 /V 1 /D "%systemdrive%\install\UpdateXP.exe" /fREG ADD %KEY%\905 /VE /D "Installing NOD32 but you MUST configure it" /fREG ADD %KEY%\905 /V 1 /D "%systemdrive%\install\eset\setup.exe /silentmode" /frem REG ADD %KEY%\010 /V 2 /D "REGEDIT /S %systemdrive%\install\eset.reg" /fREG ADD %KEY%\990 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\990 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXIT
solanjie Posted February 21, 2005 Author Posted February 21, 2005 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!
solanjie Posted February 21, 2005 Author Posted February 21, 2005 cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\990 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\990 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXITdoesn't work either.
IcemanND Posted February 21, 2005 Posted February 21, 2005 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.
`Felix` Posted February 21, 2005 Posted February 21, 2005 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}>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 Offcmdow @ /HIDSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\000 /VE /D "Preparing Installation..." /fREG ADD %KEY%\000 /V 1 /D "%comspec% /C pause" /fok 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 hereThis 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 threadhere is an copy of one of my runonceex.cmd files you can change to suite yourself.@Echo Offcmdow @ /HIDFOR %%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 _nosourceSET PP=%cdrom%\Apps\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\000 /VE /D "Preparing Installation..." /fREG ADD %KEY%\000 /V 1 /D "%PP%prepare.cmd" /fREG ADD %KEY%\001 /VE /D "Installing Hotfixes..." /fREG ADD %KEY%\001 /V 1 /D "%PP%hotfix.cmd" /frem REG ADD %KEY%\002 /VE /D "Ad-Aware SE 6 Pro" /frem REG ADD %KEY%\002 /V 1 /D "%PP%adaware\aase6pro.exe /silent" /frem REG ADD %KEY%\002 /V 2 /D "process -k hh.exe" /frem REG ADD %KEY%\002 /V 3 /D "process -k ad-aware.exe" /fREG ADD %KEY%\003 /VE /D "Symantec Antivirus 9.0 CE" /fREG ADD %KEY%\003 /V 1 /D "%PP%savce\savce.exe" /fREG ADD %KEY%\004 /VE /D "WinRAR 3.42" /fREG ADD %KEY%\004 /V 1 /D "%PP%winrar\wrar342r.exe /s" /fREG ADD %KEY%\005 /VE /D "QuickTime 6.51" /fREG ADD %KEY%\005 /V 1 /D "%PP%quicktime\QuickTimeFullInstaller.exe" /fREG ADD %KEY%\006 /VE /D "Mozilla Firefox 1.0" /fREG ADD %KEY%\006 /V 1 /D "%PP%firefox\FireFox_Unattended.exe /s" /fREG ADD %KEY%\007 /VE /D "PicaView 2.0" /fREG ADD %KEY%\007 /V 1 /D "%PP%picaview\picaview20.exe /s /v\"/QB-! REBOOT=Suppress\"" /fREG ADD %KEY%\007 /V 2 /D "REGEDIT /S %PP%picaview\register.reg" /fREG ADD %KEY%\008 /VE /D "UltraEdit 10.20c" /fREG ADD %KEY%\008 /V 1 /D "%PP%ultaedit\uesetup.exe /s" /fREG ADD %KEY%\008 /V 2 /D "REGEDIT /S %PP%ultaedit\register.reg" /fREG ADD %KEY%\009 /VE /D "Nero Burning ROM 6.6" /fREG ADD %KEY%\009 /V 1 /D "%PP%nero\nero6605.exe" /fREG ADD %KEY%\010 /VE /D "Free Download Manager" /fREG ADD %KEY%\010 /V 1 /D "%PP%fdm\fdminst.exe /verysilent /sp-" /fREG ADD %KEY%\010 /V 2 /D "REGEDIT /S %PP%fdm\fdm.reg" /fREG ADD %KEY%\011 /VE /D "HMTCD Wizard" /fREG ADD %KEY%\011 /V 1 /D "%PP%cdwiz\HMTCDWizard_enu.exe /QB-!" /fREG ADD %KEY%\012 /VE /D ".NET Framework 1.1 SP1" /fREG ADD %KEY%\012 /V 1 /D "%PP%dotnet\netfx.exe" /fREG ADD %KEY%\013 /VE /D "MSN Messenger 6.2" /fREG ADD %KEY%\013 /V 1 /D "%PP%msnmgr\MsnMsgs.msi /QB-!" /fREG ADD %KEY%\013 /V 2 /D "process -k msnmsgr.exe" /fREG ADD %KEY%\014 /VE /D "Messenger Plus 3.25" /fREG ADD %KEY%\014 /V 1 /D "%PP%msnmgr\MsgPlus-325.exe /SilentInstallNoSponsor" /fREG ADD %KEY%\014 /V 2 /D "process -k msnmsgr.exe" /fREG ADD %KEY%\015 /VE /D "Google Toolbar 2.0" /fREG ADD %KEY%\015 /V 1 /D "%PP%google\Toolbar.exe /q /d" /fREG ADD %KEY%\016 /VE /D "Google Gmail Notifier 1.0" /fREG ADD %KEY%\016 /V 1 /D "%PP%google\GmailInstaller.exe /S" /fREG ADD %KEY%\016 /V 2 /D "process -k gnotify.exe" /fREG ADD %KEY%\017 /VE /D "O&&O Defrag Professional 6.5" /fREG ADD %KEY%\017 /V 1 /D "%PP%oodefragpro\oo_defrag_pro.msi /qb-!" /fREG ADD %KEY%\017 /V 2 /D "Regedit /S %PP%oodefragpro\register.reg" /fREG ADD %KEY%\018 /VE /D "Microsoft Anti-Spyware 1.0" /fREG ADD %KEY%\018 /V 1 /D "\"%PP%msantispy\Microsoft AntiSpyware.msi\" /qb-!" /fREG ADD %KEY%\018 /V 2 /D "\"%programfiles%\Microsoft AntiSpyware\gcasDtServ.exe\" /regserver" /fREG ADD %KEY%\019 /VE /D "CuteFTP 6 Professional" /fREG ADD %KEY%\019 /V 1 /D "%PP%cuteftp\cuteftppro.exe -S" /fREG ADD %KEY%\020 /VE /D "Adobe Acrobat Reader 7" /fREG ADD %KEY%\020 /V 1 /D "%PP%acrobat\Adobe_Reader_7.msi /passive /qb-!" /fREG ADD %KEY%\020 /V 2 /D "REGEDIT /S %PP%acrobat\acrobat.reg" /fREG ADD %KEY%\021 /VE /D "Sun Java VM 5.0 update 1" /fREG 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" /fREG ADD %KEY%\022 /VE /D "Office 2003 Installation" /fREG ADD %KEY%\022 /V 1 /D "%PP%office\silent_install.exe" /fREG ADD %KEY%\023 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\023 /V 1 /D "REGEDIT /S %PP%regtweaks.reg" /fREG ADD %KEY%\023 /V 2 /D "REGEDIT /S %PP%blocklist.reg" /fREG ADD %KEY%\024 /VE /D "Setup Default/All User Settings" /fREG ADD %KEY%\024 /V 1 /D "REG LOAD \"HKU\CUSTOM\" \"C:\Documents and Settings\Default User\NTUSER.DAT\"" /fREG ADD %KEY%\024 /V 2 /D "REGEDIT /S %PP%DefaultUser.reg" /fREG ADD %KEY%\024 /V 3 /D "REG UNLOAD \"HKU\CUSTOM\"" /fREG ADD %KEY%\025 /VE /D "Configuring OEM Branding" /fREG ADD %KEY%\025 /V 1 /D "%PP%OEMKrnl.cmd" /fREG ADD %KEY%\026 /VE /D "Cleaning Up and Reboot" /fREG ADD %KEY%\026 /V 1 /D "%PP%cleanup.cmd" /fEXIT:_nosourcepopup /IS /M "No Application Source has been detected. RunOnceEx Task has been terminated." /T "Alert No Source!"EXITIf you need any other help let us know
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now