Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MeshRouter Customization to config.json #3688

Open
vitko-bg opened this issue Feb 22, 2022 · 3 comments
Open

Add MeshRouter Customization to config.json #3688

vitko-bg opened this issue Feb 22, 2022 · 3 comments

Comments

@vitko-bg
Copy link

vitko-bg commented Feb 22, 2022

Just realised that almost all customization is server based exclude MeshCentralRouter. All files (text, logo etc) have to be downloaded and located to MeshCentralRouter.exe location.
In my practice I downloading MeshRouter directly from the MC server and have to have prepared customization files on the target PC.

Can MeshCentralRouter customization be added to config.json please, so it can look like this:

  "_agentCustomization": {
         "displayName": "Compagny® Product™",
         "description": "Compagny® Product™ agent for remote monitoring, management and assistance.",
         "companyName": "Compagny",
         "serviceName": "compagnyagent",
         "fileName": "compagnyagent"
       },
       "_assistantCustomization": {
         "title": "Compagny® Product™",
         "image": "assistant-logo.png",
         "fileName": "compagny"
       },
       "_androidCustomization": {
         "title": "Compagny® Product™",
         "subtitle": "Product Subtitle™",
         "image": "assistant-logo.png"
       },
       "_routerCustomization": {
         "title": "Compagny® Product™",
         "subtitle": "Product Subtitle™",
         "image": "router-logo.png"
**OR**
        **"path-to-customization-folder": "/meshcentral/meshcentral-data/routercustomization"
with all files inside**
      },

In short to implement Ylianst/MeshCentralRouter#10 (comment) to MC server

Thanks.

@Ylianst
Copy link
Owner

Ylianst commented Feb 22, 2022

It's possible but lots of work, not sure when I will get to this.

@MatinatorX
Copy link

MatinatorX commented Apr 18, 2022

You might try creating an NSIS installer that includes all your additional files. We did it for this exact reason and to bundle in some other utilities we use. You can even add the registry entries during install to set the server name, view options, and even auto-install the mcrouter:// link handling like this:

  !insertmacro WriteRegStringIfUndef HKCR "mcrouter" "" "MeshCentral Router"
  !insertmacro WriteRegStringIfUndef HKCR "mcrouter" "URL Protocol" ""
  !insertmacro WriteRegStringIfUndef HKCR "mcrouter\shell" "" ""
  !insertmacro WriteRegStringIfUndef HKCR "mcrouter\shell\open" "" ""
  !insertmacro WriteRegStringIfUndef HKCR "mcrouter\shell\open\command" "" "$\"$INSTDIR\meshcentralrouter.exe$\" $\"%1$\"" 
  !insertmacro WriteRegStringIfUndef HKCU "SOFTWARE\Open Source\MeshCentral Router" "" ""
  !insertmacro WriteRegStringIfUndef HKCU "SOFTWARE\Open Source\MeshCentral Router" "ServerName" "my.domain.com"
  !insertmacro WriteRegStringIfUndef HKCU "SOFTWARE\Open Source\MeshCentral Router" "Show Group Names" "0"
  !insertmacro WriteRegStringIfUndef HKCU "SOFTWARE\Open Source\MeshCentral Router" "Show Offline Devices" "0"
  !insertmacro WriteRegStringIfUndef HKCU "SOFTWARE\Open Source\MeshCentral Router" "DevDoubleClickClickAction" "0"

Once you have an installer made, there's a few ways you can make it available for download by your users. I stuck ours in the meshcentral-web/public directory, then added a nice big download link to the "Footer": section in config.json, since you can use html there.

@Ylianst might know a better way to make a download link or perhaps even how to replace the router executable that gets downloaded normally.

@vitko-bg
Copy link
Author

vitko-bg commented Nov 3, 2023

Any update on the above please?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants