Robert O'Brien <[EMAIL PROTECTED]> writes:

> is it valid to reference a binary file id using a public property value?
>
> e.g. if I have the following public property and binary files defined
>
> <Property Id="ENVIRONMENTID" Value="Unk" />
> <Binary Id="MyService.exe.dvt.config" 
> SourceFile="$(var.SolutionDir)Configuration\MyService.exe.dvt.config" />
> <Binary Id="MyService.exe.dev.config" 
> SourceFile="$(var.SolutionDir)Configuration\MyService.exe.dev.config" />
> <Binary Id="MyService.exe.test.config" 
> SourceFile="$(var.SolutionDir)Configuration\MyService.exe.test.config" />
> <Binary Id="MyService.exe.perf.config" 
> SourceFile="$(var.SolutionDir)Configuration\MyService.exe.perf.config" />
>
> Then should the following approach for referencing an environmentid public 
> property associated binary file going to work?
> <CustomAction Id="QtExecCmdLineSet5" Property="QtExecCmdLineRun5" 
> Value="&quot;[$(var.SystemFolder)]cmd.exe&quot; /c copy 
> &quot;[#MyService.exe.[ENVIRONMENTID].config]&quot; 
> &quot;[Service1Dir]MyService.exe.config&quot;" />

Firstly, the [#filekey] syntax must refer to File/@Id, not Binary/@Id.
<http://msdn.microsoft.com/library/aa368609.aspx>

Secondly, Windows Installer reportedly does not support indirect
property accesses with extra text, e.g. [[foo].config].  I think this
implies it does not support [#MyService.exe.[ENVIRONMENTID].config]
either.  It does support [[foo]] though.
<news:[EMAIL PROTECTED]>
<http://groups.google.com/[EMAIL PROTECTED]>
(microsoft.public.platformsdk.msi, 2005-11-23)

What you're trying to do might be doable with conditional
components instead.  Alternatively, install all of the files.

Attachment: pgpDfhyML1NmD.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to