Home Forums SharewareOnSale Deals Discussion Coherence for Windows / Sep 21 2017 Reply To: Coherence for Windows / Sep 21 2017

#8979717 Quote
Andy
Guest

Ok I tested the App.

Sorry this tool is a beginners project and actually is a joke in what it does and how its realized!

1. It installs Chrome in a local folder
2. Creates a executable that simply starts a batch file (with Process.Start) in C# language
Process.Start()
Btw. the Microsoft example is more advanced that what this tool creates, as it does not relies on a batch file stored hidden somewhere.

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Threading.Tasks;

namespace testProcess
{
    class Program
    {
        static void Main(string[] args)
        {
                System.Diagnostics.Process.Start(@"C:\Users\andy\AppData\Local\Google\Chrome\User Data\Default\Extensions\rnhkgjmbbpopzybexxkqzrkpzdaaat\app.bat");
        }
    }
}

3. Creates a batch file that does all the wow so difficult work:

@echo off
start /d "C:\Program Files (x86)\Coherence\chrome\53.0.2785.143" chrome.exe --load --profile-directory=Default --app=http://test.net --user-data-dir="C:\Users\andy\AppData\Local\Google\Chrome\User Data\Default\Extensions\rnhkgjmbbpopzybexxkqzrkpzdaaat"

I actually expected the tool to use Chromium Embedded Framework (CefSharp) and create a portable single Executable.
Even that would be not to difficult to do.