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

Reply via email to