Thanks John. I tried you suggestion. And it passed the compile. But how it performs actually, I need to run the .msi.
Cheers, Chunyan -----Ursprüngliche Nachricht----- Von: John Ludlow [mailto:john.ludlow...@gmail.com] Gesendet: Donnerstag, 6. August 2009 15:39 An: General discussion for Windows Installer XML toolset. Betreff: Re: [WiX-users] How to put computer name in CustomAction ExeCommand? There's a ComputerName property: http://msdn.microsoft.com/en-us/library/aa368009(VS.85).aspx So <CustomAction Id='MyCA' FileKey='my.exe' ExeCommand='do something xxx_[ComputerName]' Return='check' /> 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