From 90d2252ff398a12e29111d67eb83017969965a45 Mon Sep 17 00:00:00 2001 From: Subhamoy Biswas Date: Sat, 25 Oct 2025 21:42:36 +0530 Subject: [PATCH] fix: browser integration not working on windows MSI install --- src-tauri/installer/windows/nsis/hooks.nsi | 6 +++--- src-tauri/installer/windows/wix/reg-fragment.wxs | 6 +++--- src-tauri/tauri.windows.conf.json | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src-tauri/installer/windows/nsis/hooks.nsi b/src-tauri/installer/windows/nsis/hooks.nsi index 7b161fd..52403ad 100644 --- a/src-tauri/installer/windows/nsis/hooks.nsi +++ b/src-tauri/installer/windows/nsis/hooks.nsi @@ -1,8 +1,8 @@ !macro NSIS_HOOK_POSTINSTALL ; Add Registry Keys for Chrome Native Messaging Host - WriteRegStr HKCU "Software\Google\Chrome\NativeMessagingHosts\com.neosubhamoy.neodlp" "" "$INSTDIR\neodlp-msghost.json" + WriteRegStr HKCU "Software\Google\Chrome\NativeMessagingHosts\com.neosubhamoy.neodlp" "" "$INSTDIR\chrome.json" ; Add Registry Keys for Firefox Native Messaging Host - WriteRegStr HKCU "Software\Mozilla\NativeMessagingHosts\com.neosubhamoy.neodlp" "" "$INSTDIR\neodlp-msghost-moz.json" + WriteRegStr HKCU "Software\Mozilla\NativeMessagingHosts\com.neosubhamoy.neodlp" "" "$INSTDIR\firefox.json" ; Add entry for automatic startup with Windows WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "${PRODUCTNAME}" "$\"$INSTDIR\neodlp.exe$\" --hidden" !macroend @@ -12,4 +12,4 @@ DeleteRegKey HKCU "Software\Google\Chrome\NativeMessagingHosts\com.neosubhamoy.neodlp" DeleteRegKey HKCU "Software\Mozilla\NativeMessagingHosts\com.neosubhamoy.neodlp" DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "${PRODUCTNAME}" -!macroend \ No newline at end of file +!macroend diff --git a/src-tauri/installer/windows/wix/reg-fragment.wxs b/src-tauri/installer/windows/wix/reg-fragment.wxs index a18197b..d8eee57 100644 --- a/src-tauri/installer/windows/wix/reg-fragment.wxs +++ b/src-tauri/installer/windows/wix/reg-fragment.wxs @@ -4,10 +4,10 @@ - + - + @@ -15,4 +15,4 @@ - \ No newline at end of file + diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json index 3c99500..179b6a1 100644 --- a/src-tauri/tauri.windows.conf.json +++ b/src-tauri/tauri.windows.conf.json @@ -44,8 +44,8 @@ ], "resources": { "target/release/neodlp-msghost.exe": "neodlp-msghost.exe", - "resources/msghost-manifest/windows/chrome.json": "neodlp-msghost.json", - "resources/msghost-manifest/windows/firefox.json": "neodlp-msghost-moz.json" + "resources/msghost-manifest/windows/chrome.json": "chrome.json", + "resources/msghost-manifest/windows/firefox.json": "firefox.json" }, "windows": { "wix": {