First I tried following:

<CustomAction Id="MyEXECA" Property="[SourceDir][REDIST_DIR]\my.exe" 
ExeCommand="" Return="ignore" />

And next following:

<Property Id="PROP_MYEXE" Value="[SourceDir][REDIST_DIR]\my.exe" />
<CustomAction Id="MyEXECA" Property="PROP_MYEXE" ExeCommand="" 
Return="ignore" />

In both cases installation passed to the end without error messages but 
also without any mentioning about required custom action. And only in 
log I found info about my CA:

"Info 1721. There is a problem with this Windows Installer package. A 
program required for this install to complete could not be run. Contact 
your support personnel or package vendor. Action: InstDCOM2, location: 
[SourceDir][REDIST_DIR]\my.exe, command:  "

and:
"Property(S): PROP_MYEXE = [SourceDir][REDIST_DIR]\my.exe"

So why MSI installer does not resolve properties [SourceDir] and 
[REDIST_DIR] in to their values?

I finally achieve required CA after using property MYEXEEXISTS that get 
from:

<Property Id="MYEXEEXISTS">
   <DirectorySearch Id="MYREDISTDIR" Path="[SourceDir][REDIST_DIR]" 
Depth="0">
     <FileSearch Id="MYEXEFILESEARCH" Name="my.exe" />
   </DirectorySearch>
</Property>


Best regards,
Peter G. Sakhno
C-MAP RUSSIA Ltd
http://www.c-map.ru/

Bob Arnson wrote:
> Peter G. Sakhno wrote:
>> Hello.
>>
>> I need to run external stand-alone exe-file that is not part of the 
>> installation package and is not included into Binary table.
>> Does anybody can explain how to create such custom action using WiX?
>>
>> I tried following:
>>
>> <CustomAction Id="ExeFile" 
>> ExeCommand="[SourceDir][ExeFilePATH]\Myprogram.exe" Return="ignore" />
>>   
> You need to use Property="[path][to]program.exe" and ExeCommand="command 
> line arguments."
> 

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to