Repro is simple. From a default wixproj created in VS2008, I added the
following
<PropertyGroup>
<WixToolPath>$(MSBuildProjectDirectory)\..\..\..\Installations\WiX\Windows
Installer XML v3\bin\</WixToolPath>
<WixTargetsPath>$(WixToolPath)Wix.targets</WixTargetsPath>
<WixTasksPath>$(WixToolPath)wixtasks.dll</WixTasksPath>
<IncludeSearchPaths>
</IncludeSearchPaths>
</PropertyGroup>
and
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants> WiXProductName=&quot;BeamGage Standard&quot;;
WiXProductVersion=$(WiXVersion);</DefineConstants>
</PropertyGroup>
I am using WiX v3.0. When I run this wixproj under msbuild the DefineConstants
are NOT included on the command line to candle. I have verified that the
IntermediateOutputPath is processed.
That was it. I was building our solution including a similar, previous wixproj
that did not require the DefineConstants.
I am at a dead end. I do not know what to do. Where else can I go for help?
-----Original Message-----
From: Castro, Edwin G. (Hillsboro) [mailto:[email protected]]
Sent: Wednesday, May 19, 2010 9:39 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] msbuild command line parameters
I've successfully used DefineConstants before. I used it to provide external
paths to locations I was harvesting. Of course, a repo would be nice.
Edwin G. Castro
Software Developer - Staff
Electronic Banking Services
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail
> -----Original Message-----
> From: Kurt Jensen [mailto:[email protected]]
> Sent: Wednesday, May 19, 2010 7:30 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] msbuild command line parameters
>
> I'm having trouble getting the build to behave right now...
>
>
> In the mean time, this was the source I was following
>
> http://www.ageektrapped.com/blog/setting-properties-for-wix-in-msbuild/
>
> I am assuming that this worked at the time it was written. But now it
> does not work?
>
>
>
> -----Original Message-----
> From: Kurt Jensen
> Sent: Tuesday, May 18, 2010 2:41 PM
> To: 'General discussion for Windows Installer XML toolset.'
> Subject: RE: [WiX-users] msbuild command line parameters
>
> I'll try. It is being built under VS2008 and TFS2008.
>
>
> -----Original Message-----
> From: Castro, Edwin G. (Hillsboro) [mailto:[email protected]]
> Sent: Tuesday, May 18, 2010 2:25 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] msbuild command line parameters
>
> Can you make a minimal *.wixproj that reproduces the problem?
> I don't see anything obvious in the information you've already shared.
> I just looked through the wix.targets and wix2010.targets files in case
> something is happening there that would account for what you are seeing
> but didn't find anything obvious either.
>
> Edwin G. Castro
> Software Developer - Staff
> Electronic Banking Services
> Fiserv
> Office: 503-746-0643
> Fax: 503-617-0291
> www.fiserv.com
> Please consider the environment before printing this e-mail
>
>
> > -----Original Message-----
> > From: Kurt Jensen [mailto:[email protected]]
> > Sent: Tuesday, May 18, 2010 1:08 PM
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] msbuild command line parameters
> >
> > Good idea but still not appearing in the build log.
> >
> > Any more ideas out there?
> >
> > -----Original Message-----
> > From: Blair [mailto:[email protected]]
> > Sent: Monday, May 17, 2010 10:14 PM
> > To: 'General discussion for Windows Installer XML toolset.'
> > Subject: Re: [WiX-users] msbuild command line parameters
> >
> > I haven't tested it, but I wonder if the whitespace is causing
> > problems.
> >
> > What happens if you try:
> > <DefineConstants>WiXProductName="BeamGage
> > Professional";WiXProductVersion=$(WiXVersion)</DefineConstants>
> > Or:
> > <DefineConstants>"WiXProductName=BeamGage
> > Professional";WiXProductVersion=$(WiXVersion)</DefineConstants>
> > ?
> >
> > -----Original Message-----
> > From: Kurt Jensen [mailto:[email protected]]
> > Sent: Monday, May 17, 2010 3:48 PM
> > To: General discussion for Windows Installer XML toolset.
> > Subject: Re: [WiX-users] msbuild command line parameters
> >
> > The PropertyGroup code is as follows:
> >
> > <PropertyGroup Condition=" '$(Configuration)|$(Platform)' ==
> > 'Release|x86' ">
> > <OutputPath>bin\$(Configuration)\</OutputPath>
> >
> >
> <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
> > <DefineConstants>WiXProductName=BeamGage
> > Professional;WiXProductVersion=$(WiXVersion);</DefineConstants>
> > </PropertyGroup>
> >
> > I changed <IntermediateOutputPath> to "obj\IntermediateOutputPath".
> > The
> > command line in the build log now specifies "-out
> > obj\IntermediateOutputPath\module.wixobj". That proves that the
> > PropertyGroup containing DefineConstants is being executed.
> >
> > I should be seeing "-dWixProductName=" and "-dWixProductVersion=" on
> > the
> > command line.
> >
> > Any idea why the DefineConstants is not being passed to candle?
> >
> >
> > -----Original Message-----
> > From: Kurt Jensen [mailto:[email protected]]
> > Sent: Monday, May 17, 2010 3:05 PM
> > To: [email protected]
> > Subject: [WiX-users] msbuild command line parameters
> >
> > I'm trying to build my wixproj in msbuild. The solution
> > ConfigurationToBuild is "Release|Any CPU". Inside of my
> configuration
> > the wixproj is built as "Release|x86".
> >
> >
> >
> > In my wixproj I have a 'Release|x86' PropertyGroup that includes
> > <DefineConstants>. But none of the DefineConstants are being
> included
> > on the command line to candle during the build. The PropertyGroup
> and
> > DefineConstants work fine in the IDE. In the build log I verified
> that
> > the command line contains -dConfiguration=Release and -
> dPlatform=x86.
> >
> >
> >
> > Any idea how to get the wixproj DefineConstants passed to candle in
> > msbuild?
> >
> >
> >
> > Kurt Jensen
> >
> >
> >
> **********************************************************************
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom they
> > are addressed. If you have received this email in error please notify
> > the system manager.
> >
> > This footnote also confirms that this email message has been swept by
> > MIMEsweeper for the presence of computer viruses.
> >
> > www.clearswift.com
> >
> **********************************************************************
> >
> >
> > ---------------------------------------------------------------------
> --
> > -
> > ------
> >
> > _______________________________________________
> > WiX-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> > ---------------------------------------------------------------------
> --
> > -
> > ----
> > --
> >
> > _______________________________________________
> > WiX-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> > ---------------------------------------------------------------------
> --
> > -
> > ------
> >
> > _______________________________________________
> > WiX-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> > ---------------------------------------------------------------------
> --
> > -------
> >
> > _______________________________________________
> > WiX-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> -----------------------------------------------------------------------
> -------
>
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
> -----------------------------------------------------------------------
> -------
>
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users