Dear All, I have made an installer.
I want to check java version after installation. That I checked using <RegistrySearch>. Now I want to launch my application only if java version is 1.5 or greater, otherwise browser window should get opened with sun.com to all download latest version. What Possible ways are there? Following is my code : *my.wxs* <Property Id="JAVA_VERSION" Value="0.0"> <RegistrySearch Id="JavaVersionSearch" Root="HKLM" Key="SOFTWARE\JavaSoft\Java Development Kit" Name="CurrentVersion" Type="raw" /> </Property> <Binary Id="myjs_bin" SourceFile="myjs.js"/> <CustomAction Id="myjs_ca" BinaryKey="myjs_bin" JScriptCall="main" Execute="deferred" HideTarget="no" Impersonate="no"/> *myjs.js* function main() { var WshShell = new ActiveXObject('WScript.Shell'); var ver = Session.Property("JAVA_VERSION"); if( ver < 1.5 ) { window.open( "www.sun.com" , "sun" ); error here WshShell.Run("ieexplorer","www.sun.com"); error here } WshShell.close(1); } I tried both ways, but got errors. Anyone having idea to get out of it? Thanks in advance. Ron. ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users