WiX project has a pre-build event as such (this is also set in my build
script prior to executing MSBuild on the WiX project):

set Install_Environment=local

I then try to reference this in my WiX code:

        <?if $(env.Install_Environment) = local ?>
        <Component Id="C__SPDeploy.kctools.local.config"
Guid="{0A710C3D-A798-465f-9724-045774E9CDC7}" DiskId="1">
          <File Id="F__SPDeploy.kctools.local.config"
              Name="kcTools.local.config"

Source="$(var.kCTools.SPDeploy.ProjectDir)kcTools.local.config"
              DiskId="1"
              KeyPath="no" />
        </Component>
        <?endif ?>

I get the following error message:

error CNDL0150: Undefined preprocessor variable
'$(env.Install_Environment)'.

Any ideas what I may be doing wrong?

Thanks,
- Troy
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to