There are two issues here. First of all, value provided for ExeCommand attribute is not a valid XML. Remember that < > ' " characters have to be encoded:
ExeCommand='-d "[INSTALLLOCATION] " -f " [TempFolder]eclipse.zip"' Second, it seems like whatever tool is parsing this XML is using unorthodox XML parser if it is losing just first and last " and understands correctly those in the middle. -----Original Message----- From: Brian Rogers [mailto:rogers.br...@gmail.com] Sent: Thursday, February 26, 2009 2:52 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] custom action ExeCommand attribute Hey Igor, What does the command line value look like inside of the MSI itself? Have you viewed it with Orca ( http://msdn.microsoft.com/en-us/library/aa370557.aspx) yet? Thanks, Brian Rogers "Intelligence removes complexity." - Me http://icumove.spaces.live.com On Tue, Feb 24, 2009 at 8:17 AM, Igor Likhotkin <jingv...@hotmail.com>wrote: > > Hi, > > > > I am sort of new to wix. I am still evaluating it to see if it can be > adapted for what I need. > > > > Here is the issues I ran into. I have a custom action: > > > > <CustomAction Id="CA1" > BinaryKey="EXE1" > ExeCommand='-d "[INSTALLLOCATION]" -f > "[TempFolder]eclipse.zip"' > Execute="deferred" > Return="check" > HideTarget="no" > Impersonate="no" /> > > > > The custom action does get called, but the command line arguments come in > garbled. That is the switch value for -d switch is set to > [INSTALLLOCATION]" -f "[TempFolder]eclipse.zip (the quoting seems to be > acting like a "greedy" regular expression). I tried using ", but that did > not qork either. Is this a bug? What am I doing wrong? Is there some kind > of workaround? > > > > Thanks. > > > > -igor. > > _________________________________________________________________ > Windows Live(tm) Hotmail(r)...more than just e-mail. > > http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_howitworks_022009 > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users