ugetdm / uget-integrator

Native messaging host to integrate uGet Download Manager with web browsers
GNU General Public License v3.0
339 stars 38 forks source link

Need help about setup NativeMessagingHosts with Regedit on windwos 10 #98

Open hamedsbt opened 3 years ago

hamedsbt commented 3 years ago

I changed NativeMessagingHosts to support westbyte-internet-download-manager:

NativeMessaging in win10 Regedit:

chrome:
[HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.ugetdm.chrome]
@="D:\\SFT\\IDA_integrator\\chrome_manifest.json"

edge:
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Edge\NativeMessagingHosts\com.ugetdm.chrome]
@="D:\\SFT\\IDA_integrator\\edge_manifest.json"

chrome_manifest.json content:

{
  "name": "com.ugetdm.chrome",
  "description": "IDA Native Messaging Host Server",
  "path": "D:\\SFT\\IDA_integrator\\handler.bat",
  "type": "stdio",
  "allowed_origins": ["chrome-extension://efjgjleilhflffpbnkaofpmdnajdpepi/","chrome-extension://akcbnhoidebjpiefdkmaaicfgdpbnoac/"]
}

edge_manifest.json content:

{
  "name": "com.ugetdm.chrome",
  "description": "IDA Native Messaging Host Server",
  "path": "D:\\SFT\\IDA_integrator\\handler.bat",
  "type": "stdio",
  "allowed_origins": ["chrome-extension://efjgjleilhflffpbnkaofpmdnajdpepi/","chrome-extension://akcbnhoidebjpiefdkmaaicfgdpbnoac/"]
}

handler.py Line 36: UGET_COMMAND = 'D:\\SFT\\IDA_Portable\\ida.exe'

handler.bat content:

@echo off
"%~dp0python-3.6.4\python.exe" "%~dp0handler.py"