mirror of
https://github.com/ckaczor/WixBalExtensionExt.git
synced 2026-03-11 12:01:45 -04:00
Initial commit
This commit is contained in:
100
inc/Version.proj
Normal file
100
inc/Version.proj
Normal file
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="WriteVersionFiles" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
|
||||
<PropertyGroup>
|
||||
<MajorBuildNumber>3</MajorBuildNumber>
|
||||
<MinorBuildNumber>8</MinorBuildNumber>
|
||||
|
||||
<CppVersionFile>.\wixver.h</CppVersionFile>
|
||||
<CSharpVersionFile>.\wixver.cs</CSharpVersionFile>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<Base>$([System.DateTime]::new(2000, 1, 1))</Base>
|
||||
<BuildNumber>$([System.Convert]::ToInt32($([System.DateTime]::Now.ToUniversalTime().Subtract($(Base)).TotalDays)))</BuildNumber>
|
||||
<BuildRevision>$([System.Convert]::ToInt32($([MSBuild]::Divide($([System.Convert]::ToInt32($([System.DateTime]::Now.ToUniversalTime().TimeOfDay.TotalSeconds))), 2))))</BuildRevision>
|
||||
|
||||
<FullBuildVersionString>$(MajorBuildNumber).$(MinorBuildNumber).$(BuildNumber).$(BuildRevision)</FullBuildVersionString>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
================================================================================================
|
||||
VersionPrint
|
||||
|
||||
Displays the versions of this build.
|
||||
================================================================================================
|
||||
-->
|
||||
<Target Name="VersionPrint">
|
||||
<Message Text="FullBuildVersionString = $(FullBuildVersionString)" />
|
||||
</Target>
|
||||
|
||||
<!--
|
||||
================================================================================================
|
||||
WriteCppVersionFile
|
||||
|
||||
Creates the wixver.h version file for C++ code.
|
||||
================================================================================================
|
||||
-->
|
||||
<Target Name="WriteCppVersionFile"
|
||||
Returns="$(CppVersionFile)">
|
||||
<ItemGroup>
|
||||
<CppVersionLines Include="
|
||||
// <auto-generated/>
|
||||
#ifndef _VERSION_FILE_H_
|
||||
#define _VERSION_FILE_H_
|
||||
|
||||
#define szVerMajorMinor "$(MajorBuildNumber).$(MinorBuildNumber)"
|
||||
#define szVerMajorMinorBuildRev "$(FullBuildVersionString)"
|
||||
#define rmj $(MajorBuildNumber)
|
||||
#define rmm $(MinorBuildNumber)
|
||||
#define rbd $(BuildNumber)
|
||||
#define rev $(BuildRevision)
|
||||
#define szVerName "BalExtensionExt Release"
|
||||
|
||||
#endif
|
||||
"/>
|
||||
</ItemGroup>
|
||||
|
||||
<WriteLinesToFile Overwrite="true"
|
||||
File="$(CppVersionFile)"
|
||||
Lines="@(CppVersionLines)" />
|
||||
<ItemGroup>
|
||||
<FileWrites Include="$(CppVersionFile)" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<!--
|
||||
================================================================================================
|
||||
WriteCSharpVersionFile
|
||||
|
||||
Creates the wixver.cs version file for C# code.
|
||||
================================================================================================
|
||||
-->
|
||||
<Target Name="WriteCSharpVersionFile"
|
||||
Returns="$(CSharpVersionFile)">
|
||||
<ItemGroup>
|
||||
<CSharpLines Include="
|
||||
// <auto-generated/>
|
||||
using System.Reflection%3B
|
||||
[assembly:AssemblyVersion("$(MajorBuildNumber).0.0.0")]
|
||||
[assembly:AssemblyFileVersion("$(FullBuildVersionString)")]
|
||||
"/>
|
||||
</ItemGroup>
|
||||
|
||||
<WriteLinesToFile Overwrite="true"
|
||||
File="$(CSharpVersionFile)"
|
||||
Lines="@(CSharpLines)" />
|
||||
<ItemGroup>
|
||||
<FileWrites Include="$(CSharpVersionFile)" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<!--
|
||||
================================================================================================
|
||||
WriteVersionFiles
|
||||
|
||||
Creates the wixver.* version files.
|
||||
================================================================================================
|
||||
-->
|
||||
<Target Name="WriteVersionFiles" DependsOnTargets="VersionPrint;WriteCppVersionFile;WriteCSharpVersionFile" />
|
||||
|
||||
</Project>
|
||||
13
inc/WixDistribution.cs
Normal file
13
inc/WixDistribution.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Reflection;
|
||||
using System.Resources;
|
||||
|
||||
[assembly: AssemblyCompany("Outercurve Foundation")]
|
||||
[assembly: AssemblyCopyright("Copyright © Outercurve Foundation. All rights reserved.")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
#if DEBUG
|
||||
[assembly: AssemblyConfiguration("DEBUG")]
|
||||
#else
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
#endif
|
||||
[assembly: NeutralResourcesLanguage("en-US")]
|
||||
[assembly: AssemblyProduct("Windows Installer XML")]
|
||||
17
inc/WixDistribution.h
Normal file
17
inc/WixDistribution.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/* **************************************************************************
|
||||
* WixDistribution.h file contains disribution specific items, such as
|
||||
* Product Name.
|
||||
*
|
||||
* **************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef __WIXDISTRIBUTION_FILE_H_
|
||||
#define __WIXDISTRIBUTION_FILE_H_
|
||||
|
||||
#ifdef VER_PRODUCT_NAME
|
||||
#undef VER_PRODUCT_NAME
|
||||
#endif
|
||||
#define VER_PRODUCT_NAME "Windows Installer XML"
|
||||
|
||||
#endif // __WIXDISTRIBUTION_FILE_H_
|
||||
140
inc/wix.rc
Normal file
140
inc/wix.rc
Normal file
@@ -0,0 +1,140 @@
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
// <copyright file="wix.rc" company="Outercurve Foundation">
|
||||
// Copyright (c) 2004, Outercurve Foundation.
|
||||
// This software is released under Microsoft Reciprocal License (MS-RL).
|
||||
// The license and further copyright text can be found in the file
|
||||
// LICENSE.TXT at the root directory of the distribution.
|
||||
// </copyright>
|
||||
//
|
||||
// <summary>
|
||||
// Common resource file for any native wix resources.
|
||||
// </summary>
|
||||
// <remarks>
|
||||
// Usage:
|
||||
// #define VER_APP (VER_DLL, VER_TYPELIB, none)
|
||||
// #define VER_LANG_NEUTRAL (optional)
|
||||
// #define VER_ORIGINAL_FILENAME "FooBar.Exe"
|
||||
// #define VER_INTERNAL_NAME "FooBar"
|
||||
// #define VER_PRODUCT_NAME
|
||||
// #define VER_FILE_DESCRIPTION
|
||||
// #include "wix.rc"
|
||||
//
|
||||
// Optional to add before the #include (must add as a group and VER_BLOCK must match to VER_LANG and VER_CP)
|
||||
// You should not have to do this except for some extreme cases.
|
||||
// #define VER_LANG 0x0000
|
||||
// #define VER_CP 0x04E4
|
||||
// #define VER_BLOCK "000004E4"
|
||||
// </remarks>
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
|
||||
#include <winver.h>
|
||||
#include <windows.h>
|
||||
#include "wixver.h"
|
||||
#include "WixDistribution.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#define VER_DEBUG VS_FF_DEBUG
|
||||
#define VER_PRIVATE_BUILD VS_FF_PRIVATEBUILD
|
||||
#define VER_PRE_RELEASE (VS_FF_PRERELEASE | VS_FF_SPECIALBUILD)
|
||||
#else
|
||||
#define VER_DEBUG 0
|
||||
#define VER_PRIVATE_BUILD 0
|
||||
#define VER_PRE_RELEASE 0
|
||||
#endif
|
||||
|
||||
#if defined(VER_APP)
|
||||
#define VER_FILE_TYPE VFT_APP
|
||||
#elif defined(VER_DLL)
|
||||
#define VER_FILE_TYPE VFT_DLL
|
||||
#elif defined(VER_TYPELIB)
|
||||
#define VER_FILE_TYPE VFT_UNKNOWN
|
||||
#else
|
||||
#define VER_FILE_TYPE VFT_UNKNOWN
|
||||
#endif
|
||||
|
||||
#if defined(VER_LANG_NEUTRAL)
|
||||
#ifndef VER_LANG
|
||||
#define VER_LANG 0x0000
|
||||
#endif
|
||||
#ifndef VER_CP
|
||||
#define VER_CP 0x04E4
|
||||
#endif
|
||||
#ifndef VER_BLOCK
|
||||
#define VER_BLOCK "000004E4"
|
||||
#endif
|
||||
#else
|
||||
#ifndef VER_LANG
|
||||
#define VER_LANG 0x0409
|
||||
#endif
|
||||
#ifndef VER_CP
|
||||
#define VER_CP 0x04E4
|
||||
#endif
|
||||
#ifndef VER_BLOCK
|
||||
#define VER_BLOCK "040904E4"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define VER_FILE_VERSION rmj, rmm, rbd, rev
|
||||
#define VER_PRODUCT_VERSION rmj, rmm, rbd, rev
|
||||
#define VER_FILE_VERSION_STRING szVerMajorMinorBuildRev
|
||||
#define VER_PRODUCT_VERSION_STRING VER_FILE_VERSION_STRING
|
||||
#define VER_FILE_FLAGS_MASK VS_FFI_FILEFLAGSMASK
|
||||
#define VER_FILE_FLAGS (VER_DEBUG | VER_PRIVATE_BUILD | VER_PRE_RELEASE)
|
||||
|
||||
#define VER_FILE_OS VOS__WINDOWS32
|
||||
|
||||
#define VER_COMPANY_NAME "Outercurve Foundation"
|
||||
#ifndef VER_PRODUCT_NAME
|
||||
#define VER_PRODUCT_NAME "Windows Installer XML (WiX)"
|
||||
#endif
|
||||
#ifndef VER_FILE_DESCRIPTION
|
||||
#define VER_FILE_DESCRIPTION "Windows Installer XML (WiX) component"
|
||||
#endif
|
||||
|
||||
#if defined(VER_LEGAL_COPYRIGHT)
|
||||
#error
|
||||
#endif
|
||||
#define VER_LEGAL_COPYRIGHT "Copyright (c) Outercurve Foundation.\240 All rights reserved."
|
||||
|
||||
#if !defined(VER_FILE_SUBTYPE)
|
||||
#define VER_FILE_SUBTYPE 0
|
||||
#endif
|
||||
|
||||
#ifdef RC_INVOKED
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION VER_FILE_VERSION
|
||||
PRODUCTVERSION VER_PRODUCT_VERSION
|
||||
FILEFLAGSMASK VER_FILE_FLAGS_MASK
|
||||
FILEFLAGS VER_FILE_FLAGS
|
||||
FILEOS VER_FILE_OS
|
||||
FILETYPE VER_FILE_TYPE
|
||||
FILESUBTYPE VER_FILE_SUBTYPE
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK VER_BLOCK
|
||||
BEGIN
|
||||
VALUE "CompanyName", VER_COMPANY_NAME
|
||||
VALUE "FileDescription", VER_FILE_DESCRIPTION
|
||||
VALUE "FileVersion", VER_FILE_VERSION_STRING
|
||||
VALUE "InternalName", VER_INTERNAL_NAME
|
||||
|
||||
VALUE "LegalCopyright", VER_LEGAL_COPYRIGHT
|
||||
|
||||
VALUE "OriginalFilename", VER_ORIGINAL_FILENAME
|
||||
VALUE "ProductName", VER_PRODUCT_NAME
|
||||
VALUE "ProductVersion", VER_FILE_VERSION_STRING
|
||||
#if defined(DEBUG)
|
||||
VALUE "WiX Common Resource Format", "Debug Only"
|
||||
#endif
|
||||
END
|
||||
END
|
||||
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", VER_LANG, VER_CP
|
||||
END
|
||||
END
|
||||
|
||||
#endif
|
||||
4
inc/wixver.cs
Normal file
4
inc/wixver.cs
Normal file
@@ -0,0 +1,4 @@
|
||||
// <auto-generated/>
|
||||
using System.Reflection;
|
||||
[assembly:AssemblyVersion("3.0.0.0")]
|
||||
[assembly:AssemblyFileVersion("3.8.5260.23891")]
|
||||
13
inc/wixver.h
Normal file
13
inc/wixver.h
Normal file
@@ -0,0 +1,13 @@
|
||||
// <auto-generated/>
|
||||
#ifndef _VERSION_FILE_H_
|
||||
#define _VERSION_FILE_H_
|
||||
|
||||
#define szVerMajorMinor "3.8"
|
||||
#define szVerMajorMinorBuildRev "3.8.5260.23891"
|
||||
#define rmj 3
|
||||
#define rmm 8
|
||||
#define rbd 5260
|
||||
#define rev 23891
|
||||
#define szVerName "BalExtensionExt Release"
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user