Skip to content

Commit

Permalink
fix installer build
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Dec 24, 2014
1 parent d7d96cb commit b3a8fd1
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Master.proj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<AssemblyFileVersion>$(Major).$(Minor).$(Patch).$(BuildNumber)</AssemblyFileVersion>
<AssemblyInformationalVersion>$(Major).$(Minor).$(Patch).$(BuildNumber)</AssemblyInformationalVersion>
<PackageVersion>$(Major).$(Minor).$(Patch).$(BuildNumber)</PackageVersion>
<InstallVersion>$(Major).$(Minor).$(BuildNumber)</InstallVersion>
</PropertyGroup>


Expand Down Expand Up @@ -118,7 +119,7 @@

<Target Name="Installer" DependsOnTargets="Package">
<MSBuild Projects="$(SourceFolder)\LoreSoft.Calculator.Setup\Calculator.sln"
Properties="Configuration=$(BuildConfiguration);PackageDir=$(PackageFolder);PackageVersion=$(PackageVersion)"/>
Properties="Configuration=$(BuildConfiguration);PackageDir=$(PackageFolder);PackageVersion=$(InstallVersion)"/>

<Copy SourceFiles="$(SourceFolder)\LoreSoft.Calculator.Setup\bin\$(BuildConfiguration)\Calculator.msi"
DestinationFiles="Calculator.v$(PackageVersion).msi" />
Expand Down
2 changes: 1 addition & 1 deletion Source/LoreSoft.Calculator.Setup/Calculator.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30110.0
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "Calculator", "Calculator.wixproj", "{A9E613A2-F608-4BF2-9170-D9F5FB04077E}"
EndProject
Expand Down
5 changes: 3 additions & 2 deletions Source/LoreSoft.Calculator.Setup/Calculator.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>bin\Debug\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>Debug</DefineConstants>
<DefineConstants>Debug;PackageDir=$(PackageDir);PackageVersion=$(PackageVersion)</DefineConstants>
<Cultures>en-us</Cultures>
<WixVariables>WixUIBannerBmp=Banner.bmp;WixUIDialogBmp=Dialog.bmp</WixVariables>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\Release\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>PackageDir=$(PackageDir);PackageVersion=$(PackageVersion)</DefineConstants>
<Cultures>en-us</Cultures>
<WixVariables>WixUIBannerBmp=Banner.bmp;WixUIDialogBmp=Dialog.bmp</WixVariables>
</PropertyGroup>
Expand All @@ -29,7 +30,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="Variables.wxi" />
</ItemGroup>
</ItemGroup>
<ItemGroup>
<WixExtension Include="WixUIExtension">
<HintPath>$(WixExtDir)\WixUIExtension.dll</HintPath>
Expand Down
2 changes: 2 additions & 0 deletions Source/LoreSoft.Calculator.Setup/Calculator.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
ShortNames="no"
SummaryCodepage="1252" />

<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />

<Media Id="1" Cabinet="Calculator.cab" EmbedCab="yes" />

<Icon Id="calculator.ico" SourceFile="..\LoreSoft.Calculator\Calculator.ico" />
Expand Down
2 changes: 1 addition & 1 deletion Source/LoreSoft.Calculator.Setup/Variables.wxi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Include>
<!-- Version -->
<?ifndef PackageVersion?>
<?define PackageVersion = "1.0.0.0" ?>
<?define PackageVersion = "1.0.0" ?>
<?endif?>

<?ifndef Configuration?>
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The library supports math expressions, functions unit conversion and variables.
//use variable
result = eval.Evaluate("answer * 10");
//add variable
eval.Variables.Add("x", 10);
eval.Variables.Add("x", 10);
result = eval.Evaluate("x * 10");

Calculator that evaluates math expressions.
Expand Down

0 comments on commit b3a8fd1

Please sign in to comment.