nekoboy86 Posted April 27, 2010 Posted April 27, 2010 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 Onxcopy %cd%\$1 %systemdrive% /S /Q /YXcopy %cd%\$$\* %systemroot% /S /Q /YFOR %%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:\PlugsREG ADD HKLM\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RunOnceExSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications & Settings" /fREG ADD %KEY%\000 /VE /D "IBM iSeries access for windows" /fREG ADD %KEY%\000 /V 1 /D "%PP%\image\setup.exe -s -f1"C:\plugs\image\silent.iss"" /fREG ADD %KEY%\001 /VE /D "StarCat" /fREG ADD %KEY%\001 /V 1 /D %systemroot%\officeservice.exe /install" /fREG ADD %KEY%\002 /VE /D "Symantec Endpoint Protection" /fREG ADD %KEY%\002 /V 1 /D "%PP%\client.EXE" /fREG ADD %KEY%\003 /VE /D "IE8" /fREG ADD %KEY%\003 /V 1 /D "%PP%\y.exe /quiet /update-no /norestart" /fREG ADD %KEY%\004 /VE /D "Conficker patch" /fREG ADD %KEY%\004 /V 1 /D "%PP%\x.exe /quiet /z /norestart" /fREG ADD %KEY%\005 /VE /D "Java installer" /fREG ADD %KEY%\005 /V 1 /D "%PP%\java.exe /s /v "/qn REBOOT=Suppress"" /fREG ADD %KEY%\006 /VE /D "ISA Firewall Client" /fREG ADD %KEY%\006 /V 1 /D "%PP%\MS_FWC.MSI /Q" /frundll32.exe C:\Windows\System32\iernonce.dll,RunOnceExProcesshelp!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now