thanks. you have the good point here.

And you are right, maybe i will just try to call a batch file under the
installation dir then call it in ExeCommand?.
and, how do i make sure the directory can be correctly set to and pointed to
the installation dir?

Shao

On Thu, Sep 9, 2010 at 5:04 PM, Hoyt, David <ho...@llnl.gov> wrote:

> I think the underlying question here isn't related to Java at all -- it's
> more "how do I call an external executable as a custom action and why isn't
> [TARGETDIR] expanding to the full installation path I expect?"
>
> Just from examining your example, though -- your last argument which I
> assume is supposed to be the full class name (package + class name) of the
> main method seems odd since you have "[TARGETDIR]\PatchWrapperMain" which
> would expand to something like "C:\Program Files\Impact360\PatchWrapperMain"
> which as far as I know isn't a valid Java class name. (c: It should be
> something like "com.impact360.PatchWrapperMain".
>
> -----Original Message-----
> From: Rob Mensching [mailto:r...@robmensching.com]
> Sent: Thursday, September 09, 2010 4:35 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] how to call java from wix
>
> I don't think that the Windows Installer supports calling into Java. Did
> you
> see something new in the MSI SDK that says they added support for custom
> actions written in Java?
>
> On Thu, Sep 9, 2010 at 3:08 PM, Major shao <majors...@gmail.com> wrote:
>
> > Hi
> > i want to call java from wix using customaction like the following. i
> think
> > at least TARGETDIR is wrong here, anything else?
> > <CustomAction Id="PatchWrapper" Directory="TARGETDIR"
> > ExeCommand="c:\Impact360\Software\JDK\bin\java -classpath
> >
> >
> [TARGETDIR];[TARGETDIR]\emtEncrypt.jar;[TARGETDIR]\log4j-1.2.15.jar;[TARGETDIR]\commons-logging.jar;[TARGETDIR]\commonEjbTierUtils.jar
> > [TARGETDIR]\PatchWrapperMain" />
> >
> >
> ------------------------------------------------------------------------------
> > Automate Storage Tiering Simply
> > Optimize IT performance and efficiency through flexible, powerful,
> > automated storage tiering capabilities. View this brief to learn how
> > you can reduce costs and improve performance.
> > http://*p.sf.net/sfu/dell-sfdev2dev
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://*lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
>
>
> --
> virtually, Rob Mensching - http://*RobMensching.com LLC
>
> ------------------------------------------------------------------------------
> Automate Storage Tiering Simply
> Optimize IT performance and efficiency through flexible, powerful,
> automated storage tiering capabilities. View this brief to learn how
> you can reduce costs and improve performance.
> http://*p.sf.net/sfu/dell-sfdev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://*lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> Automate Storage Tiering Simply
> Optimize IT performance and efficiency through flexible, powerful,
> automated storage tiering capabilities. View this brief to learn how
> you can reduce costs and improve performance.
> http://p.sf.net/sfu/dell-sfdev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful, 
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance. 
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to