Thanks for reply Blair.

My shortcut points to a managed exe instead of a native exe. Can I use a
native resource dll for DisplayResourceDll in this way:

<Component ... Directory="InstallDir">
<File Source="ManagedCode.exe"/>
<Shortcut Id="MainEntry" Target="[#ManagedCodeExeFileId]"
WorkingDirectory="InstallDir" Name="Product" DisplayResourceId="102"
DisplayResourceDll="[#NativeResourceDLLFileID]"/>
</Component>
<Component ... Directory="InstallDir">
<File Id="NativeResourceDLLFileID" Source="NativeResource.dll"/>
</Component>

<Component ... Directory="InstallDir-en-US">
<File Source="en-US\NativeResource.dll.mui"/>
</Component>

<Component ... Directory="InstallDir-es-ES">
<File Source="es-ES\NativeResource.dll.mui"/>
</Component>
Thanks.

Regards
Leon




On Mon, Jan 18, 2010 at 5:55 PM, Blair <os...@live.com> wrote:

> Sample code. Take it for what it is worth. This assumes three things:
> 1. The resources are "declared" in Product.exe and are localized into two
> cultures: en-US and es-ES using the MUI Win32 resource localization scheme
> released to the world with Vista. The actual Spanish string will actually
> be
> found in the Product.exe.mui file in the es-ES directory and the English
> string will be found in the Product.exe.mui file in the en-US directory.
> 2. The desired "name" for the shortcut is the string #102 in Product.exe.
> 3. The relative placement of the shortcut and its target (even when
> considered relative to the component list) don't matter for the purposes of
> this example, but I had to put them somewhere. This is NOT a guide to where
> to place shortcuts relative to their targets nor is it a guide to use
> non-advertised (or even advertised) shortcuts. That doesn't matter for the
> purposes of this example either.
>
> ...
> <Directory...>
>  <Directory Id="InstallDir" ...>
>    <Directory Id="InstallDir-en-US" Name="en-US"/>
>    <Directory Id="InstallDir-es-ES" Name="es-ES"/>
>  </Directory>
>  <Directory...>
>    <Directory Id="ProductStartMenu" Name="$(var.ProductName)"/>
>  </Directory>
> </Directory>
> ...
> <Component ... Directory="InstallDir">
> <File Source="Product.exe"/>
> <Shortcut Id="MainEntry" Target="[#Product.exe]"
> WorkingDirectory="InstallDir" Name="Product" DisplayResourceId="102"
> DisplayResourceDll="Product.exe"/>
> </Component>
>
> <Component ... Directory="InstallDir-en-US">
> <File Source="en-US\Product.exe.mui"/>
> </Component>
>
> <Component ... Directory="InstallDir-es-ES">
> <File Source="es-ES\Product.exe.mui"/>
> </Component>
>
> -----Original Message-----
> From: Lian Jiang [mailto:jiangok2...@gmail.com]
> Sent: Monday, January 18, 2010 5:04 PM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] how to create a DisplayResourceDll for ShortCut
> element
>
> Hi,
>
> Could anybody provide a sample/reference about how to author a resource DLL
> used by ShortCut element? I don't quitely understand this descript from WIX
> document:
>
> "The Formatted string providing the full path to the language neutral file
> containing the MUI Manifest. Generally authored using [#filekey] form."
>
> Thanks
> Leon
>
> ----------------------------------------------------------------------------
>  --
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for
> Conference
> attendees to learn about information security's most important issues
> through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to