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

Reply via email to