What about using the ComputerName property?
e.g.
<CustomAction Id='MyCA' FileKey='my.exe' ExeCommand='[ComputerName]'
Return='check' />
or I use this for a deferred action, you could easily adapt this for your
needs with the [ComputerName] property:
<CustomAction Id="SetAspNet20_Cmd" Property="SetAspNet20"
Value='"[FRAMEWORKROOT20]aspnet_regiis.exe" -ir -enable' />
<CustomAction Id="SetAspNet20" BinaryKey="WixCA"
DllEntry="CAQuietExec" Execute="deferred" Return="check"/>
Cheers
Richard
2009/8/6 Jiang, Chunyan (GE Healthcare) <[email protected]>
> Hi Wix-user,
>
> I want to define one Custom Action like this:
>
> <CustomAction Id='MyCA' FileKey='my.exe' ExeCommand='do something
> xxx_COMPUTERNAME' Return='check' />
>
> How can I get the computer name in wix and put it into the ExeCommand?
>
>
>
> Regards,
>
>
>
> Chunyan
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users