
Ящик для предложений: sales@blogslov.ru
Send Wix-commits mailing list submissions to
wix-commits@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/wix-commits
or, via email, send a message with subject or body 'help' to
wix-commits-request@lists.sourceforge.net
You can reach the person managing the list at
wix-commits-owner@lists.sourceforge.net
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Wix-commits digest..."
Today's Topics:
1. wix/src/WixTasks CreateProjectReferenceDefineConstants.cs,
NONE, 1.1 WixCommandLineBuilder.cs, NONE, 1.1 Candle.cs, 1.8, 1.9
Light.cs, 1.9, 1.10 Lit.cs, 1.7, 1.8 WixTasks.csproj, 1.5, 1.6
wix.targets, 1.10, 1.11 CommandLineBuilder.cs, 1.5, NONE
WixTasks.csproj.vspscc, 1.1, NONE (Rob Mensching)
----------------------------------------------------------------------
Message: 1
Date: Wed, 27 Jun 2007 05:35:49 +0000
From: Rob Mensching
Subject: [WiX-commits] wix/src/WixTasks
CreateProjectReferenceDefineConstants.cs, NONE, 1.1
WixCommandLineBuilder.cs, NONE, 1.1 Candle.cs, 1.8, 1.9 Light.cs, 1.9,
1.10 Lit.cs, 1.7, 1.8 WixTasks.csproj, 1.5, 1.6 wix.targets, 1.10,
1.11 CommandLineBuilder.cs, 1.5, NONE WixTasks.csproj.vspscc, 1.1,
NONE
To: wix-commits@lists.sourceforge.net
Message-ID:
Update of /cvsroot/wix/wix/src/WixTasks
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv1332/src/WixTasks
Modified Files:
Candle.cs Light.cs Lit.cs WixTasks.csproj wix.targets
Added Files:
CreateProjectReferenceDefineConstants.cs
WixCommandLineBuilder.cs
Removed Files:
CommandLineBuilder.cs WixTasks.csproj.vspscc
Log Message:
Benxing: Number of patch related bug fix
*Update FeatureComponent table when ComponentRef in the selected PatchFamily
*File Sequence problem
PMarcu: Allowing extension attributes on DirectoryRef and PropertyRef
Adding extension attributes to the VSExtension Refs
PMarcu: Adding UIRef and DirectoryRef to possible PatchFamily Children
Allowing extension attributes on CustomAction elements.
JRock: Added support for setting pre- and post-build event command lines via a
property page in Votive. This gets me one step closer to restoring the
inter-project variables that we had in V2 but had to pull in V3 to get
it out the door (e.g. $(var.MyProject.TargetPath)).
JRock: Added support for SolutionX variables in the wix.targets file. So, you
can now use $(var.SolutionDir) in your .wxs files and have the variables
automatically added to the preprocessor definitions when building with
wix.targets and MSBuild.
Benxing: Regardless of differences in the MST, we will compare underlying files before
copying data into the patch. Extensions can override CompareFiles to provide
custom file diffing behavior.
AaronSte: Updating Heat to use HKCU instead of HKLM when harvesting registry
information on Windows Vista to avoid UAC issues
PMarcu: Making XsdStitch only output a single prefix for each extension namespace.
Benxing: Fixing null reference exception in the binder when the file table is empty.
RobMen: Default File/@Name to File/@Id.
MikeHo: Fix bug with Setup.exe when trying to install and TEMP and AppData
folders are not on same drive, setup fails
MikeHo: Add fallback to Caching the MSI.
RobMen: SFBUG:1680666 - Correctly modularize RemoveIniFile.DirProperites.
PMarcu: Removing FragmentRef's
AaronSte: SFBUG:1675664 - Marking ComboBox value attribute as localizable.
PMarcu: Adding BinaryRef as a child of PatchFamily.
Benxing: Give warning when removing component from feature during the patch build.
PMarcu: Changing namespace keys in the VSExtension help tables to not be modularized.
PMarcu: Adding some targeted checks to patch transforms to catch possible error
conditions as early as possible.
AaronSte: Adding Visual Studio Codename Orcas detection properties.
AaronSte: SFBUG:1687207 - Update Heat so DllRegisterServer captures will work
on Windows Vista from an elevated cmd prompt.
PMarcu: Fix for DocCompiler to handle ref attributes in attribute definitions under
elements.
BobArnso: Resize and combine some controls to better fit localized strings
(affects all UI sets, dialogs UserExit, OutOfRbDiskDlg, OutOfDiskDlg)
Benxing: Skipping unreal tables when binding transforms to improve patch build
perfomance.
Adding active substorage into binder extension to give the ability to
access corresponding transform information.
JRock: SFBUG:1673425 - Cannot access the VS menu using the alt key
SFBUG:1576283 - Unable to enter 'c' or 'm' in proj properties screen fields
SFBUG:1570392 - Project Designer - Index was outside the bounds of the array
SFBUG:1566296 - Setting 'Cultures' field in project properties has no effect
SFBUG:1576287 - Modifying project properties does not force rebuild
Benxing: Ignore rows without section id in ReduceTransform.
MikeHo: Allow for multiple files to be extracted from chainer.
AaronSte: Adding Visual Studio Team Test project system detection properties.
FGrohn: Support for PubCA in WiX v3.
HeathS: Added extension support to the Validator.
Exposed extension support for the Validator through light.exe.
Exposed extension support for the Validator through smoke.exe.
Exposed multiple .cub file support through smoke.exe.
HeathS: Exposed multiple .cub file support through light.exe.
Added a test for the Validator and multiple .cub support in light.exe.
MikeHo: Add error messages for Windows Installer service can't start or Install
blocked by system policy
BobArnso: Add WixQueryOsInfo CA to detect system suite info and "special
folders" as properties over and above the MSI set
BobArnso: Default to removing library rows from decompiled output in
WixUtilExtension
PMarcu: Refactoring patch buld system to use Pyro instead of Light for filtering
and binding. Other target patch specific bug fixes are in the mix as well.
PMarcu: Adding more command line options to Pyro, specifically the ones that
provide settings for the binder.
PMarcu: Adding error and warning preprocessor instructions.
PMarcu: Fixing an exception thrown when Dark is run and no extensions are defined
in the config file or the config file is absent.
Also, bug where Customtable columns that are not foreign keys have the
keytable attribute defined on the column as keytable="". This results in
an invalid table reference to "".
PMarcu: Switching order on Pyro commandline.
Jordanf: Adding support to WixUnit for Pyro. Fixing the qtest patch.minorupgrade
to use Pyro.
BrianRe: Added code to detect a namespace prefix that is already in use and if
so it will append it with its' position within the "duplicates" for
that specific prefix; eg. sql, sql2, sql3, and so on.
RobMen: Add support for PerformanceCounters (including managed code).
FGrohn: Added COM+ and MSMQ extensions to the zip file.
FGrohn: Move to Windows Vista SDK.
JRock: SFBUG:1566807 - Display full version in about dialog.
SFBUG:1697089 - MSBuild WiX taskscannot resolve WiX tool paths automatically
SFBUG:1689830 - Error when using Wix3 when not installed on C drive
Benxing: Handle Sequence tables when building the patch.
Don't allow empty patch.
HeathS: Added an extension for installing PowerShell snap-ins.
PMarcu: Adding Melt as a tool to decompile MSM's to ComponentGroups.
PMarcu: Adding warning for when a non keypath file is updated and the keypath file
of that component is not.
Benxing: Adding information into _SummaryInformation table for patch build.
PMarcu: Adding a check to assure no duplicate fragment Id's exist.
JKuhne: Fixing a GC issue with the Validator. (Locals are rooted until last reference, not
end of scope.)
BobArnso: Add DiskId attribute to Directory and DirectoryRef to provide default
DiskId for contained components and files.
MikeHo: Fix language matching in Setup.exe
PMarcu: Making sdut and tsa defaults when passing xo to light.exe
AaronSte: Adding more CSIDL values to WixQueryOsDirs custom action
RobMen: Reverse integrate WiX v2 CustomAction fixes.
BobArnso: Add element-extensibility points to Directory and DirectoryRef.
Jordanf: Add a new test for preprocessor .
Mikeho: Add NewFolder UIText element.
AaronSte: Adding custom actions to run devenv.exe /InstallVSTemplates to the
WixVSExtension
BobArnso: Pass directory ID to Directory and DirectoryRef extension elements.
RobMen: Introducing smart-cabbing.
RobMen: SFBUG:1707259 - fix nasty memory violation
HeathS: Added patch-specific property to identify client patches and
if they can be removed.
Mikeho: Fix manifests for setupbld.exe/setup.exe
JordanF: Add the -update option to automatically update a test. Make MSI/MSI
validation explicit in the tests.
JRock: Adding back project references to Votive V3! Actually, I'm adding them
to the wix.targets MSBuild file to be exact. Votive uses it, but you get
the goodness without using Votive also. Basically, this is the feature
where if you reference other projects in your Visual Studio solution,
you can reference the output of those projects from within your wixproj
project. For example, $(var.MyCSharpApp.TargetPath). This will work for
any managed project in Visual Studio (at least it does for VC#, VB, and
VC++ managed). You have to build from within Visual Studio or from the
command line. If you build just the .wixproj, then you won't get the
project variables defined.
SFBUG:1585281 - Add solution and project variables back to Votive v3
MikeHo: Fix support for more than 10 MSIs/MSTs
JRock: SFBUG:1588291 - Support response files for MSBuild candle/light/lit
tasks
BobArnso: Have heat generate a default ComponentGroup when harvesting
directories in a fragment.
JRock: SFBUG:1717966 - Solution Build Issues (build 2911)
When a wixproj is the only thing in the solution, the SolutionX
variables aren't defined when building within Visual Studio. This
is because normally C#/VB define these variables for us. The fix
is to define them ourself.
HeathS: SFBUG:1716160 - ICE03 string overflow error, xmlFile
RobMen: SFBUG:1716160 - fix string overflow error for XmlConfig
BrianRe: Fixing wix.xsd to use W3C recognized regular expressions.
PMarcu: Defaulting Media\@Source to a form of the patchId if not specified
when Media is a child of a patch.
RobMen: SFBUG:1724535 - correctly integrate a few more fixes from WiX v2 to
WiX v3.
JordanF: WixUnit now compares the transforms inside a patch when it is diffing
two patches. Previously, only the tables in the patch were compared.
AaronSte: Added documentation for properties and custom actions in the
WixVSExtension.
PMarcu: Fix for ServiceConfig CA's to call correct rollback entrypoint.
BMurri: Add support for bound wixouts/wixmsts to torch and pyro.
PMarcu: Fix for ServiceConfig CA's to call correct rollback entrypoint.
RobMen: Schema tweaks to enable simple references on FeatureRef and
FeatureGroupRef plus tweaks to enable floating Components.
AaronSte: Added documentation for Votive functionality.
AaronSte: Fixing variable resolution problem in WiX Product item template
in Votive.
PMarcu: Updating flags in XmlConfig to match with CA after the 2.0 to
3.0 integration.
JRock: Integrated the VS SDK 4.0 into Votive.
AaronSte: Merged WiX 2.0 documentation changes into 3.0. Updated instances
of deprecated src attributes in examples in the docs.
MikeHo: Add reinstall support & logging to Chainer + fix bug when using
transforms other than Chinese.
HeathS: SFBUG:1739868 - Pyro does not find .AllowRemoval property
PMarcu: Removing primary key from EnsureTable to support patching.
Fixing documentation for XmlConfig.
RobMen: SFBUG:1739194 - Preserve whitespace when using XmlFile or XmlConfig
JKuhne: Fix a GC related bug in the cab enumeration callback. (Cab.WixEnumerateCab.Enumerate)
Index: Lit.cs
===================================================================
RCS file: /cvsroot/wix/wix/src/WixTasks/Lit.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Lit.cs 2 Mar 2007 12:22:15 -0000 1.7
--- Lit.cs 27 Jun 2007 05:35:47 -0000 1.8
***************
*** 28,33 ****
using Microsoft.Build.Utilities;
- using ThisNamespace = Microsoft.Tools.WindowsInstallerXml.Build.Tasks;
-
///
/// An MSBuild task to run the WiX lib tool.
--- 28,31 ----
***************
*** 145,154 ****
///
! /// Generate the command line from the properties.
///
/// Command line string.
! protected override string GenerateCommandLineCommands()
{
! ThisNamespace.CommandLineBuilder commandLineBuilder = new ThisNamespace.CommandLineBuilder();
commandLineBuilder.AppendIfTrue("-nologo", this.NoLogo);
--- 143,152 ----
///
! /// Generate the command line arguments to write to the response file from the properties.
///
/// Command line string.
! protected override string GenerateResponseFileCommands()
{
! WixCommandLineBuilder commandLineBuilder = new WixCommandLineBuilder();
commandLineBuilder.AppendIfTrue("-nologo", this.NoLogo);
Index: wix.targets
===================================================================
RCS file: /cvsroot/wix/wix/src/WixTasks/wix.targets,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** wix.targets 2 Mar 2007 12:22:15 -0000 1.10
--- wix.targets 27 Jun 2007 05:35:47 -0000 1.11
***************
*** 59,66 ****
--- 59,68 ----
$(MSBuildExtensionsPath)\Microsoft\WiX\v3.0\Wix.targets
$(MSBuildExtensionsPath)\Microsoft\WiX\v3.0\WixTasks.dll
+ $(ProgramFiles)\Windows Installer XML v3\bin\
+ $(MSBuildAllProjects);$(MSBuildProjectFullPath)
$(MSBuildAllProjects);$(WixTargetsPath)
$(MSBuildAllProjects);$(UserTargetsPath)
***************
*** 77,84 ****
--- 79,93 ----
-->
+
+
+
+
+
+
+
! *Undefined*
! *Undefined*
! *Undefined*
! *Undefined*
! *Undefined*
! *Undefined*
--- 189,208 ----
-->
! *Undefined if not building from within Visual Studio*
! *Undefined if not building a solution or within Visual Studio*
! *Undefined if not building a solution or within Visual Studio*
! *Undefined if not building a solution or within Visual Studio*
! *Undefined if not building a solution or within Visual Studio*
! *Undefined if not building a solution or within Visual Studio*
***************
*** 346,350 ****
--- 355,361 ----
PreBuildEvent;
ResolveReferences;
+ AddCompilerDefineConstants;
CompileAndLink;
+ GetTargetPath;
IncrementalClean;
PostBuildEvent
***************
*** 473,481 ****
--- 484,492 ----
***************
*** 488,491 ****
--- 499,505 ----
BeforeResolveReferences;
+ SplitProjectReferencesByType;
+ ResolveProjectReferences;
+ ResolveVCProjectReferences;
ResolveWixLibraryReferences;
AfterResolveReferences
***************
*** 515,518 ****
--- 529,774 ----
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
! PrepareForBuild
!
! PrepareForBuild
!
+
+
+
+
+ ResolveReferences;
+ AddSolutionDefineConstants;
+ AddProjectReferenceDefineConstants;
+
+
+
+
+
+
+
+
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- $(BuildDependsOn);CopyTargetsFiles
-
-
-
-
-
--- 52,55 ----
--- NEW FILE: WixCommandLineBuilder.cs ---
//-------------------------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are covered by the
// Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
// which can be found in the file CPL.TXT at the root of this distribution.
// By using this software in any fashion, you are agreeing to be bound by
// the terms of this license.
//
// You must not remove this notice, or any other, from this software.
//
//
//
// Improved CommandLineBuilder with additional calls.
//
//-------------------------------------------------------------------------------------------------
namespace Microsoft.Tools.WindowsInstallerXml.Build.Tasks
{
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Text;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
///
/// Helper class for appending the command line arguments.
///
internal class WixCommandLineBuilder : CommandLineBuilder
{
internal const int Unspecified = -1;
///
/// Append a switch to the command line if the value has been specified.
///
/// Switch to append.
/// Value specified by the user.
public void AppendIfSpecified(string switchName, int value)
{
if (value != Unspecified)
{
this.AppendSwitchIfNotNull(switchName, value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Append a switch to the command line if the condition is true.
///
/// Switch to append.
/// Condition specified by the user.
public void AppendIfTrue(string switchName, bool condition)
{
if (condition)
{
this.AppendSwitch(switchName);
}
}
///
/// Append a switch to the command line if any values in the array have been specified.
///
/// Switch to append.
/// Values specified by the user.
public void AppendArrayIfNotNull(string switchName, ITaskItem[] values)
{
if (values != null)
{
foreach (ITaskItem value in values)
{
this.AppendSwitchIfNotNull(switchName, value);
}
}
}
///
/// Append a switch to the command line if any values in the array have been specified.
///
/// Switch to append.
/// Values specified by the user.
public void AppendArrayIfNotNull(string switchName, string[] values)
{
if (values != null)
{
foreach (string value in values)
{
this.AppendSwitchIfNotNull(switchName, value);
}
}
}
///
/// Build the extensions argument.
///
/// The list of extensions to include.
/// The logger to use.
public void AppendExtensions(ITaskItem[] extensions, TaskLoggingHelper log)
{
if (extensions == null)
{
return;
}
foreach (ITaskItem extension in extensions)
{
string className = extension.GetMetadata("Class");
if (String.IsNullOrEmpty(className))
{
this.AppendSwitchIfNotNull("-ext ", extension);
}
else
{
this.AppendSwitchIfNotNull("-ext ", className + ", " + extension.ItemSpec);
}
}
}
}
}
--- NEW FILE: CreateProjectReferenceDefineConstants.cs ---
//-------------------------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are covered by the
// Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
// which can be found in the file CPL.TXT at the root of this distribution.
// By using this software in any fashion, you are agreeing to be bound by
// the terms of this license.
//
// You must not remove this notice, or any other, from this software.
//
//
//
// Build task to execute the compiler of the Windows Installer Xml toolset.
//
//-------------------------------------------------------------------------------------------------
namespace Microsoft.Tools.WindowsInstallerXml.Build.Tasks
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Globalization;
using System.Text;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
///
/// An MSBuild task to create a list of preprocessor defines to be passed to candle from the
/// list of referenced projects.
///
public sealed class CreateProjectReferenceDefineConstants : Task
{
private ITaskItem[] defineConstants;
private ITaskItem[] projectReferencePaths;
[Output]
public ITaskItem[] DefineConstants
{
get { return this.defineConstants; }
}
[Required]
public ITaskItem[] ProjectReferencePaths
{
get { return this.projectReferencePaths; }
set { this.projectReferencePaths = value; }
}
public override bool Execute()
{
List outputItems = new List();
foreach (ITaskItem item in this.ProjectReferencePaths)
{
string configuration = item.GetMetadata("Configuration");
string fullConfiguration = item.GetMetadata("FullConfiguration");
string platform = item.GetMetadata("Platform");
string projectPath = item.GetMetadata("MSBuildSourceProjectFileFullPath");
string projectDir = Path.GetDirectoryName(projectPath) + Path.DirectorySeparatorChar;
string projectExt = Path.GetExtension(projectPath);
string projectFileName = Path.GetFileName(projectPath);
string projectName = Path.GetFileNameWithoutExtension(projectPath);
string targetPath = item.GetMetadata("FullPath");
string targetDir = Path.GetDirectoryName(targetPath) + Path.DirectorySeparatorChar;
string targetExt = Path.GetExtension(targetPath);
string targetFileName = Path.GetFileName(targetPath);
string targetName = Path.GetFileNameWithoutExtension(targetPath);
// write out the platform/configuration defines
outputItems.Add(new TaskItem(String.Format(CultureInfo.InvariantCulture, "{0}.Configuration={1}", projectName, configuration)));
outputItems.Add(new TaskItem(String.Format(CultureInfo.InvariantCulture, "{0}.FullConfiguration={1}", projectName, fullConfiguration)));
outputItems.Add(new TaskItem(String.Format(CultureInfo.InvariantCulture, "{0}.Platform={1}", projectName, platform)));
// write out the ProjectX defines
outputItems.Add(new TaskItem(String.Format(CultureInfo.InvariantCulture, "{0}.ProjectDir={1}", projectName, projectDir)));
outputItems.Add(new TaskItem(String.Format(CultureInfo.InvariantCulture, "{0}.ProjectExt={1}", projectName, projectExt)));
outputItems.Add(new TaskItem(String.Format(CultureInfo.InvariantCulture, "{0}.ProjectFileName={1}", projectName, projectFileName)));
outputItems.Add(new TaskItem(String.Format(CultureInfo.InvariantCulture, "{0}.ProjectName={1}", projectName, projectName)));
outputItems.Add(new TaskItem(String.Format(CultureInfo.InvariantCulture, "{0}.ProjectPath={1}", projectName, projectPath)));
// write out the TargetX defines
outputItems.Add(new TaskItem(String.Format(CultureInfo.InvariantCulture, "{0}.TargetDir={1}", projectName, targetDir)));
outputItems.Add(new TaskItem(String.Format(CultureInfo.InvariantCulture, "{0}.TargetExt={1}", projectName, targetExt)));
outputItems.Add(new TaskItem(String.Format(CultureInfo.InvariantCulture, "{0}.TargetFileName={1}", projectName, targetFileName)));
outputItems.Add(new TaskItem(String.Format(CultureInfo.InvariantCulture, "{0}.TargetName={1}", projectName, targetName)));
outputItems.Add(new TaskItem(String.Format(CultureInfo.InvariantCulture, "{0}.TargetPath={1}", projectName, targetPath)));
}
this.defineConstants = outputItems.ToArray();
return true;
}
}
}
------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
------------------------------
_______________________________________________
Wix-commits mailing list
Wix-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-commits
End of Wix-commits Digest, Vol 11, Issue 35
*******************************************
P.S. И не забудьте послать роботу вашу рекламу :)
Обработано объявлений: 11776
Стас Давыдов & Outcorp © 2007