Hey Ron, Have you tried setting the custom action to immediate. It will not be able to launch the window as deferred. You might also want to look at using ShellExecute as well.
http://msdn.microsoft.com/en-us/library/bb774148(VS.85).aspx Thanks, Brian Rogers "Intelligence removes complexity." - Me http://icumove.spaces.live.com On Thu, Mar 19, 2009 at 4:49 AM, ron cooper <roncooper...@gmail.com> wrote: > 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 > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users