Jump to content

Recommended Posts

Posted

Hallo,

i got some problems with runonceex i can't resolve , if u can help me i'll be glad :)

first problem - taskkill is not killing the tasks i set to kill!

2nd problem - for some reason, after installing ad aware and adobe reader, i see in the installation window

"Cleaning up and rebooting" , which delets the `Install` folder, and i can't cuntinue the other apps installation,

al though its not rebooting, and its last task on the runonceexe file..

heres my RunOnceEx cmd file :

EDIT : found the problem with taskkill - forgot to put /D before the taskkill :)

cmdow @ /HID
@echo off

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

REG ADD %KEY% /V TITLE /D "Applications Install By Adiel" /f

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

REG ADD %KEY%\005 /VE /D "Ad-aware SE Pro Build 1.05 Retail"
REG ADD %KEY%\005 /V 1 /D "\"%systemdrive%\install\Applications\Ad-Aware SE Pro v1.05 Retail\aawsepro.exe\" /s" /f >> %windir%\apps.log
REG ADD %KEY%\005 /V 2 "taskkill /IM Ad-Aware.exe"
REG ADD %KEY%\005 /V 3 "taskkill /IM hh.exe"

REG ADD %KEY%\010 /VE /D "Adobe Reader 6.0"
RED ADD %KEY%\010 /V 1 /D "\"%systemdrive%\Install\Applications\Adobe Reader 6\AdbeRdr60_enu_full.exe\" -p"-s /v\"/qn\""

REG ADD %KEY%\015 /VE /D "BSplayer Pro v1.02.812" /f
REG ADD %KEY%\015 /V 1 /D "\"%systemdrive%\Install\Applications\BSplayer Pro v1.02.812\bsplayerpro100.812.exe\" /S" /f >> %windir%\apps.log
REG ADD %KEY%\015 /V 2 /D "cmd.exe /c cmdow /run /hid \xcopy /y \"%systemdrive%\Install\Applications\BSplayer Pro v1.02.812\key.reg \""%ProgramFiles%\Webteh\BSplayerPro\\"" /f

REG ADD %KEY%\030 /VE /D "Nero Burning Rom v6.6.0.0" /f
REG ADD %KEY%\030 /V 1 /D "REGEDIT /S \"%systemdrive%\Install\Applications\Nero v6.6.0.0\reg.reg\""
REG ADD %KEY%\030 /V 2 /D "\"%systemdrive%\Install\Applications\Nero v6.6.0.0\Nero 6\Setup.exe\" /silent=1 /silent /no_ui /qn /noreboot" /f >> %windir%\apps.log

REG ADD %KEY%\040 /VE /D "Spybot Search n Destroy 1.3" /f
REG ADD %KEY%\040 /V 1 /D "\"%systemdrive%\Install\Applications\Spybot S&D v1.3\spybot.exe\" /VERYSILENT /SP-" /f >> %windir%\apps.log

REG ADD %KEY%\045 /VE /D "SpySweeper v3.2.0 build 146" /f
REG ADD %KEY%\045 /V 1 /D "\"%systemdrive%\Install\Applications\SpySweeper v3.2.0 build 146\sspsetup1_80164.exe\" /VERYSILENT /SP-" /f >> %windir%\apps.log
REG ADD %KEY%\045 /V 2 /D "cmd.exe /c cmdow /run /hid \xcopy /y \"%systemdrive%\install\Applications\SpySweeper v3.2.0 build 146\install.dat \"%ProgramFiles%\Webroot\Spy Sweeper\\"" /f

REG ADD %KEY%\050 /VE /D "SUn Java 5.0 (1.5.0) "
REG ADD %KEY%\050 /V 1 /D "\"%systemdrive%\Install\Applications\SunJava 5.0\jre-1_5_0-windows-i586.exe\" /s /qn ADDLOCAL=ADD IEXPLORER=1 MOZILLA=1 REBOOT=Suppress JAVAUPDATE=0" /f >> %windir%\apps.log

REG ADD %KEY%\055 /VE /D "Winamp Pro v5.05" /f
REG ADD %KEY%\055 /V 1 /D "\"%systemdrive%\Install\Applications\Winamp Pro v5.05\Winamp.msi\" /qn Xname="WiNAMP" Xkey="xxxxxxxxxxxxxxxxxxxxxx" XMODERNSKIN=1 XSkinsetting-MMD3 Xaudio=1 \" /f >> %windir%\apps.log

REG ADD %KEY%\060 /VE /D "Windows Media Player 10 Final" /f
REG ADD %KEY%\060 /V 1 /D "\"%systemdrive%\Install\Applications\Windows Media Player 10\MP10Setup.exe\" /q:A /c:\"setup_wm.exe /Q /R:N /DisallowSystemRestore\"" /f >> %windir%\apps.log

REG ADD %KEY%\065 /VE /D "Winrar 3.40 Final" /f
REG ADD %KEY%\065 /V 1 /D "\"%systemdrive%\Install\Applications\Winrar v3.40 Final\wrar340.exe\" /s" /f >> %windir%\apps.log
REG ADD %KEY%\065 /V 2 /D "cmd.exe /c cmdow /run /hid \xcopy /y \"%systemdrive%\install\Applications\Winrar 3.40 Final\rarreg.reg" \"%ProgramFiles%\Winrar\\"" /f

REG ADD %KEY%\070 /VE /D "Cleaning Up and Rebooting Computer.." /f
REG ADD %KEY%\070 /V 1 /D "%systemdrive%\Install\cleanup.cmd" /f >> %windir%\apps.log

EXIT


Posted

On ad-aware, i use a pause so that the windows will open before killing them. You may be trying to kill to early.

Also notice that you don't tell it where taskill actually is, your lettig it assume it should know, as not path is used.

Posted

@oioldman

look at the EDIT i made yesterday :

"EDIT : found the problem with taskkill - forgot to put /D before the taskkill"

But tnx anyway :)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...