Sorry, meant to say that the the comment is referring to how there is no condition against TargetDir's value when setting the TargetDir property -- not TargetName.
-----Original Message----- From: Tony Paloma Sent: Wednesday, March 17, 2010 12:30 PM To: 'General discussion for Windows Installer XML toolset.' Subject: RE: [WiX-users] Strange MSI output directory using WiX 3.5.1512.0 on Win2003 R2 SP2 Cruise Control server I think the comment is referring to how there is no condition against TargetName's value (notice how most others only set the property if it doesn't yet exist, but this one doesn't do that). I'm unsure of what you mean by "the code snippet in the condition" because all of the GetFullPath and Combine stuff is (or should be) outside of the condition: <TargetDir Condition=" '$(OutDir)' != '' "> $([System.IO.Path]::GetFullPath(`$([System.IO.Path]::Combine(`$(MSBuildProjectDirectory)`, `$(OutDir)`))`)) </TargetDir> This is unrelated to powershell. What are the values for MSBuildProjectDirectory, OutDir, and TargetDir on the build machine during the build? You can get these by turning on diagnostic output (Tools->Options->Projects and Solutions->Build and Run) and searching for them after the "Initial Properties:" line (which is near the beginning of the output). -----Original Message----- From: Brad Cunningham [mailto:b...@bradcunningham.net] Sent: Wednesday, March 17, 2010 10:57 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Strange MSI output directory using WiX 3.5.1512.0 on Win2003 R2 SP2 Cruise Control server I just installed WiX 3.5.1512.0 onto my build server and added a new project that is using WiX to the build. I am getting strange behavior when compiling my installer. I don't see any build errors, and the MSI does get built but it is put in the wrong path. When building my release configuration the MSI is output into the following directory: MyProject\`, `bin\Release\`))`))MyProject.msi\ *NOTE*: the backticks, commas, and extra parens. This project is developed in VS2010 but targeting .NET 3.5. I narrowed the problem down to the WiX2010.targets file on the build server (C:\Program Files\MSBuild\Microsoft\WiX\v3.5\wix2010.targets) In that file I found the following property group <PropertyGroup> <!-- Example, c:\MyProjects\MySetup\bin\debug\ --> <!-- Condition intentionally omitted on this one, because it causes problems when we pick up the value of an environment variable named TargetDir --> * <TargetDir Condition="'$(OutDir)' != ''">$([System.IO.Path]::GetFullPath(`$([System.IO.Path]::Combine(`$(MSBuildProjectDirectory)`, `$(OutDir)`))`))</TargetDir> * <!-- Example, C:\MyProjects\MySetup\bin\debug\MySetup.msi --> <TargetPath Condition=" '$(TargetPath)' == '' ">$(TargetDir)$(TargetFileName)</TargetPath> <TargetPdbPath Condition=" '$(TargetPdbPath)' == '' ">$(TargetDir)$(TargetPdbName)</TargetPdbPath> </PropertyGroup> *NOTE:* the escape sequence in the $(OutDir) condition. Also note the comment above stating the condition is intentionally omitted, However it isn't actually commented out. Either the comment is out of date or this condition should actually be commented out? The code snippet in the condition looks like powershell to me so I thought maybe it was a version issue with powershell on my build server causing the problem? I upgraded to powershell 2.0 on the server and it didn't fix the problem. Builds work correctly on my dev box (Win 7 x86 Enterprise). I am stumped at this point what is causing the issue? Any ideas? Thanks Brad Cunningham Microsoft MVP: C# http://blog.bradcunningham.net ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users