Thanks for your reply!

I try it and I get an error:

error LGHT0204 : ICE03: Invalid format string; Table: ControlEvent, Column:
Argument, Key(s): ExitDialog.Finish.[WixShellExecTarget].[\[#a.exe\]].1


Thanks!


2010/12/27 Sean Farrow <sean.far...@seanfarrow.co.uk>

> Hi:
> You should be able to get around this by escaping the brackets i.e:
> <Publish Dialog="ExitDialog" Control="Finish" Property="WixShellExecTarget"
> Value="[\[#a.exe\]]" Order="1">1</Publish>
> Hth.
> Sean.
>
> -----Original Message-----
> From: lxy.su...@gmail.com [mailto:lxy.su...@gmail.com]
> Sent: 27 December 2010 02:57
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] [Wix-users] Square brackets issue in localfile URL
>
> Hi Wix-users:
>
> I am struggling in an issue that I try to launch the installed application
> but if the application name contains "[]", for example "[a].exe" the
> executable file cannot be launched when I use the custom action.
> If the application doesn't contains "[]", it's OK.
>
>
> Some samples are as follows:
>
> MyAppName=..\App\[a].exe
>
> [code]
> <Fragment>
> <DirectoryRef Id="INSTALLDIR">
>      <Component Id="a.exe" Guid="{aae5bb70-9a9b-43bc-b2ed-155912b5e4f6}">
>        <File Id="a.exe" KeyPath="yes"
> Source="$(var.MyDir)\$(var.MyAppName)" />
>      </Component>
>    </DirectoryRef>
> </Fragment>
> [/code]
>
> [code]
> ...
>  <CustomAction Id="LaunchApplication" BinaryKey="WixCA"
> DllEntry="WixShellExec" Impersonate="yes" />
> ...
> <Publish Dialog="ExitDialog" Control="Finish" Property="WixShellExecTarget"
> Value="[#a.exe]" Order="1">1</Publish>
> <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction"
> Value="LaunchApplication" Order="2">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1
> and
> NOT Installed</Publish>
>
> Thanks a lot!
> ....
> [/code]
>
> --
> 天行健,君子以自强不息
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
天行健,君子以自强不息
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to