Hi Richard, Thanks! [ComputerName] sounds good. It passed the compile.
Cheers, Chunyan -----Ursprüngliche Nachricht----- Von: Richard Hollis [mailto:richhol...@gmail.com] Gesendet: Donnerstag, 6. August 2009 15:45 An: General discussion for Windows Installer XML toolset. Betreff: Re: [WiX-users] How to put computer name in CustomAction ExeCommand? 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) <chunyan.ji...@ge.com> > 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 > WiX-users@lists.sourceforge.net > 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 WiX-users@lists.sourceforge.net 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users