dqdegvzman Posted April 29, 2013 Share Posted April 29, 2013 (edited) Can someone help me fix the problem in my AutoIt script1) following the java, and do not installit should automatically download the java (silent mode)and install java (silent mode)after installation of java and finishI have to run mom xxx.jar2) it has the Autoit scripts detect the java already installed on the PCI have to run mom xxx.jarI want to change the Detection of java on the computerbyHKEY_LOCAL_MACHINESOFTWAREJavaSoftIf FileExists("C:\Program Files\Java\jre7\bin\java.exe") Or FileExists("C:\Program Files (x86)\Java\jre7\bin\java.exe") Then ShellExecute(@ScriptDir & "\xxx.jar") Else $java = InetGet("http://javadl.sun.com/webapps/download/AutoDL?BundleId=76860", "javainstall.exe") ShellExecute($java) ShellExecute(@ScriptDir & "\xxx.jar") EndIf Edited April 29, 2013 by dqdegvzman Link to comment Share on other sites More sharing options...
water Posted April 29, 2013 Share Posted April 29, 2013 Check Funktion RegRead. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Valuater Posted April 29, 2013 Share Posted April 29, 2013 I would also use "error checking" You find the returns in the help file for each function. 8) Link to comment Share on other sites More sharing options...
water Posted April 29, 2013 Share Posted April 29, 2013 I Love the Term "error checking" Valuater 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts