/build/static/layout/Breadcrumb_cap_w.png

deploying java 8.,45, on startup, java prompts user "do you want to run this program".

After deploying java 8.45, user is prompted "Do you want to run this application?".  How do I prevent this. In the screen shot, I did a java test from the java websiteEzO1WD.png

0 Comments   [ + ] Show comments

Answers (3)

Posted by: Badger 9 years ago
Red Belt
1

That is your security working for you!

If you want java apps to run, you have to configure security settings, and allow the java app to run (or not run) for specific web site URLS.

 

 

 

Posted by: anonymous_9363 9 years ago
Red Belt
0
Gosh! So many people in a day seemingly completely unable to use a search engine...
Posted by: superhl321 9 years ago
Senior Yellow Belt
0

Thanks for the reply. I understand the security part but in my batch file what line do I add to enter the websites? Here is the script i am using..

@ECHO OFF
::http://www.java.com/en/download/manual.jsp


set Java32="\\enc\Appdeploy\Java\jre.8.0_45\jre-8u45-windows-i586.exe"
set Java64="\\NETWORK LOCATION\jre-8u25-windows-x64.exe"

goto uninstall

:uninstall
@ECHO OFF
cls
TITLE Uninstalling Java 5-8 and Java fx. . .

wmic product where "name like 'Java 7%%'" call uninstall /nointeractive
wmic product where "name like 'JavaFX%%'" call uninstall /nointeractive
wmic product where "name like 'Java(TM) 7%%'" call uninstall /nointeractive
wmic product where "name like 'Java(tm) 6%%'" call uninstall /nointeractive
wmic product where "name like 'J2SE Runtime Environment%%'" call uninstall /nointeractive
wmic product where "name like 'Java 8%%'" call uninstall /nointeractive
wmic product where "name like 'Java(TM) 8%%'" call uninstall /nointeractive

if not exist %Java32% set missing=%Java32% & goto ERR1
if not exist %Java64% set missing=%Java64% & goto ERR1

IF NOT DEFINED PROCESSOR_ARCHITEW6432 (
IF %PROCESSOR_ARCHITECTURE% EQU x86 (
goto JA32
) ELSE (
goto JA64
)) ELSE (
goto JA64
)

:JA64
cls
title Installing Java x64
echo Installing Java x64. . .
%Java64% INSTALL_SILENT=1 STATIC=0 REBOOT=0 AUTO_UPDATE=0 EULA=0 WEB_ANALYTICS=0 WEB_JAVA=1

REM Disable Java Update Tab and also Updates and Notifications
reg add "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d 00000000 /f
reg add "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableAutoUpdateCheck /t REG_DWORD /d 00000000 /f
reg add "HKLM\SOFTWARE\Wow6432Node\JavaSoft" /v SPONSORS /t REG_SZ /d DISABLE /f
goto JA32

:JA32
cls
title Installing Java x86
echo Installing Java x86. . .

%Java32% INSTALL_SILENT=1 STATIC=0 REBOOT=0 AUTO_UPDATE=0 EULA=0 WEB_ANALYTICS=0 WEB_JAVA=1

REM Disable Java Update Tab and also Updates and Notifications
reg add "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableJavaUpdate /t REG_DWORD /d 00000000 /f
reg add "HKLM\SOFTWARE\JavaSoft\Java Update\Policy" /v EnableAutoUpdateCheck /t REG_DWORD /d 00000000 /f
reg add "HKLM\SOFTWARE\JavaSoft" /v SPONSORS /t REG_SZ /d DISABLE /f

goto END

:ERR1
cls
echo Unable to locate: %missing%
echo.
goto END

:END
exit

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ