Just switched from Main Batch to RunOnceEx. All is hunky dorie except Sun Java. This is what i have:
REG ADD %KEY%\050 /VE /D "Sun Java VM 1.4.2" /f
REG ADD %KEY%\050 /V 1 /D "\"%SYSTEM%\Software\SunJava\j2re-1_4_2_03-windows-i586-p.exe\" /s /v "/qn ADDLOCAL=jrecore IEXPLORER=1"
Can someone tell me why it isn't working?
Page 1 of 1
Sun Java Reg Add for RunOnceEX
#2
Posted 22 March 2004 - 03:31 PM
here is mine and it works just fine:
REG ADD %KEY%\065 /VE /D "Sun Java 1.4.2" /f
REG ADD %KEY%\065 /V 1 /D "%CDROM%\applications\SunJava\j2re-1_4_2_03-windows-i586-p.exe /s /v/qn" /f
you also don't have that /f at the end
REG ADD %KEY%\065 /VE /D "Sun Java 1.4.2" /f
REG ADD %KEY%\065 /V 1 /D "%CDROM%\applications\SunJava\j2re-1_4_2_03-windows-i586-p.exe /s /v/qn" /f
you also don't have that /f at the end
#3
Posted 22 March 2004 - 03:39 PM
The /f just allows the reg entry to overwrite entries all ready thier. Put it in but it still didn't work.
#4
Posted 22 March 2004 - 03:39 PM
if %System% doesn't have any spaces in it, then you don't need quotes around
%SYSTEM%\Software\SunJava\j2re-1_4_2_03-windows-i586-p.exe
you also forgot to escape the embedded quotes by /qn and end it with a quote.
Fix line:
%SYSTEM%\Software\SunJava\j2re-1_4_2_03-windows-i586-p.exe
you also forgot to escape the embedded quotes by /qn and end it with a quote.
Fix line:
REG ADD %KEY%\050 /V 1 /D "\"%SYSTEM%\Software\SunJava\j2re-1_4_2_03-windows-i586-p.exe\" /s /v \"/qn ADDLOCAL=jrecore IEXPLORER=1\""
Share this topic:
Page 1 of 1



Help

Back to top








