Skip to content

Commit de1055b

Browse files
committed
fix count message in output installer not correct
1 parent 62a2657 commit de1055b

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Installer/Installer.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.IO;
4+
using System.Linq;
45
using System.Text;
56
using System.Text.RegularExpressions;
67
using WixSharp;
@@ -52,6 +53,7 @@ WixEntity[] GenerateWixEntities()
5253
var versionRegex = new Regex(@"\d+");
5354
var versionStorages = new List<WixEntity>();
5455
if (args.Length == 0) Console.WriteLine("Have some Problem with args build installer");
56+
int countEntity = 0;
5557
foreach (var directory in args)
5658
{
5759
Console.WriteLine($"Working with Directory: {directory}");
@@ -61,9 +63,12 @@ WixEntity[] GenerateWixEntities()
6163
versionStorages.Add(files);
6264
var assemblies = Directory.GetFiles(directory, "*", SearchOption.AllDirectories);
6365
Console.WriteLine($"Adding '{fileVersion}' version files: ");
64-
foreach (var assembly in assemblies) Console.WriteLine($"'{assembly}'");
66+
foreach (var assembly in assemblies)
67+
{
68+
Console.WriteLine($"'{assembly}'");
69+
countEntity++;
70+
}
6571
}
66-
67-
Console.WriteLine($"Added {versionStorages.Count} files to msi");
72+
Console.WriteLine($"Added {countEntity} files to msi");
6873
return versionStorages.ToArray();
6974
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The biggest limitation is that you can't deploy DLLs with custom scripts at this
2929
- Interactive IronPython interpreter for exploring the API
3030
- With syntax highlighting and autocompletion (in the console only)
3131
- Based on the [IronLab](http://code.google.com/p/ironlab/) project
32-
- Batteries included! (Python standard library is bundled as a resource in the `RpsRuntime.dll`)
32+
- Batteries included! (Python standard library is bundled as a resource in the `CADRuntime.dll`)
3333
- Full access to the .NET framework and the Autocad and Civil3D API
3434
- Configurable "environment" variables that can be used in your scripts
3535
- Save "external scripts" for reuse and start collecting your awesome hacks!

0 commit comments

Comments
 (0)