I'm following this post to try to setup a C# native messaging host. C# native host with Chrome Native Messaging
I've got my sample running where I an launch Calc.exe from a bat file, like this:
host.json
{
"name": "tsetools",
"description": "TSE tools for Chrome",
"path": "tse-host.bat",
"type": "stdio",
"allowed_origins": [
"chrome-extension://ddemkjpofammommjpcmkhpajoccdjcdg/"
]
}
tse-host.bat
@echo off
CD C:\Windows\System32
start calc.exe
The above works fine & launches Calc.exe
But if I change host.json to the following:
{
"name": "tsetools",
"description": "TSE tools for Chrome",
"path": "TSEChromeHost.exe",
"type": "stdio",
"allowed_origins": [
"chrome-extension://jahdheagjlkdjcoeibobaphodgpgpacc/"
]
}
I never see "TSEChromeHost.exe" get launched in the task manager. I've built the C# code from the post above without any errors & can lunch it manually. I have "TSEChromeHost.exe" in the same folder as my "host.json" file.
Any ideas as what I'm doing wrong?