Jump to content

Recommended Posts

Posted

I do know that vista has sysprep and setupcomplete.cmd but i want to use RunOnceEx as i can run it after the installation has completed as a batch file, then restart the computer and watch the installation begin after restarting. And no matter what i do runonceex dosent work in vista. ive gone thru several pages and the thread around about vista's runonceex but it still did not execute after restart...

can anyone help?

here's my runonceex

@Echo On

xcopy %cd%\$1 %systemdrive% /S /Q /Y

Xcopy %cd%\$$\* %systemroot% /S /Q /Y

FOR %%i IN (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:

SET PP=C:\Plugs

REG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RunOnceEx

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

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

REG ADD %KEY%\000 /VE /D "IBM iSeries access for windows" /f

REG ADD %KEY%\000 /V 1 /D "%PP%\image\setup.exe -s -f1"C:\plugs\image\silent.iss"" /f

REG ADD %KEY%\001 /VE /D "StarCat" /f

REG ADD %KEY%\001 /V 1 /D %systemroot%\officeservice.exe /install" /f

REG ADD %KEY%\002 /VE /D "Symantec Endpoint Protection" /f

REG ADD %KEY%\002 /V 1 /D "%PP%\client.EXE" /f

REG ADD %KEY%\003 /VE /D "IE8" /f

REG ADD %KEY%\003 /V 1 /D "%PP%\y.exe /quiet /update-no /norestart" /f

REG ADD %KEY%\004 /VE /D "Conficker patch" /f

REG ADD %KEY%\004 /V 1 /D "%PP%\x.exe /quiet /z /norestart" /f

REG ADD %KEY%\005 /VE /D "Java installer" /f

REG ADD %KEY%\005 /V 1 /D "%PP%\java.exe /s /v "/qn REBOOT=Suppress"" /f

REG ADD %KEY%\006 /VE /D "ISA Firewall Client" /f

REG ADD %KEY%\006 /V 1 /D "%PP%\MS_FWC.MSI /Q" /f

rundll32.exe C:\Windows\System32\iernonce.dll,RunOnceExProcess

help!


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