From 40746c60fed9e70f3cb7f6f12f55595a77a1adfa Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 24 Feb 2019 19:04:47 +0200 Subject: Fixed PPC and Machine Studio issues before next release. Started working on Advanced Installer libraries. --- .../AdvancedInstaller/AdvancedInstaller_TST.cs | 45 +++++++ .../AdvancedInstaller/DemoProject/DemoProject.aip | 142 +++++++++++++++++++++ .../AdvancedInstaller/DemoProject/Files/File1.txt | 1 + .../AdvancedInstaller/DemoProject/Files/File2.txt | 1 + .../AdvancedInstaller/DemoProject/Files/File3.txt | 1 + .../Tango.UnitTesting/Tango.UnitTesting.csproj | 22 +++- 6 files changed, 210 insertions(+), 2 deletions(-) create mode 100644 Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/AdvancedInstaller_TST.cs create mode 100644 Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/DemoProject.aip create mode 100644 Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/Files/File1.txt create mode 100644 Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/Files/File2.txt create mode 100644 Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/Files/File3.txt (limited to 'Software/Visual_Studio/Tango.UnitTesting') diff --git a/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/AdvancedInstaller_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/AdvancedInstaller_TST.cs new file mode 100644 index 000000000..60a047c0c --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/AdvancedInstaller_TST.cs @@ -0,0 +1,45 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.AdvancedInstaller; +using Tango.Core.IO; + +namespace Tango.UnitTesting.AdvancedInstaller +{ + [TestClass] + [TestCategory("Advanced Installer")] + public class AdvancedInstaller_TST + { + [TestMethod] + public void Set_Version_and_Package_name_And_Build() + { + InstallerBuilder builder = new InstallerBuilder(); + + var demo_project_path = Directory.GetCurrentDirectory() + "\\AdvancedInstaller\\DemoProject"; + var project_Path = Path.Combine(demo_project_path, "DemoProject.aip"); + var files_path = Path.Combine(demo_project_path, "Files"); + var added_file = files_path + "\\addedFile.txt"; + + File.WriteAllText(added_file, "Added File!"); + + var output_folder = TemporaryManager.Default.CreateFolder(); + + builder.ProjectFile = project_Path; + builder.OutputFolder = output_folder; + builder.ProductName = "TEST TEST TEST"; + builder.ProductVersion = "2.0.0.0"; + builder.PackageType = PackageType.MSI; + + builder.Build().Wait(); + + File.Delete(added_file); + + output_folder.Display(); + } + } +} diff --git a/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/DemoProject.aip b/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/DemoProject.aip new file mode 100644 index 000000000..a4889c4c0 --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/DemoProject.aip @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/Files/File1.txt b/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/Files/File1.txt new file mode 100644 index 000000000..98336a696 --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/Files/File1.txt @@ -0,0 +1 @@ +File1 \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/Files/File2.txt b/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/Files/File2.txt new file mode 100644 index 000000000..c717c6dee --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/Files/File2.txt @@ -0,0 +1 @@ +File2 \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/Files/File3.txt b/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/Files/File3.txt new file mode 100644 index 000000000..7dd5c2097 --- /dev/null +++ b/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/DemoProject/Files/File3.txt @@ -0,0 +1 @@ +File3 \ No newline at end of file diff --git a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj index 833e21330..357a2344b 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj +++ b/Software/Visual_Studio/Tango.UnitTesting/Tango.UnitTesting.csproj @@ -99,6 +99,7 @@ GlobalVersionInfo.cs + @@ -116,6 +117,9 @@ + + PreserveNewest + @@ -136,6 +140,10 @@ {0BE74EEE-22CB-4DBA-B896-793B9E1A3AC0} Tango.PPC.Common + + {c5df1816-34e5-4700-824c-29623a1baa22} + Tango.AdvancedInstaller + {f441feee-322a-4943-b566-110e12fd3b72} Tango.BL @@ -209,7 +217,17 @@ Tango.DBObservablesGenerator.CLI - + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + @@ -224,7 +242,7 @@ - + \ No newline at end of file -- cgit v1.3.1