Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Skaggs <skaggsm333@gmail.com>2022-01-26 23:29:03 +0300
committerMitchell Skaggs <skaggsm333@gmail.com>2022-01-26 23:29:03 +0300
commit55be4a645009bed8ec96ef38da2414d4dc063cf8 (patch)
tree939729be8152fc95233948b4098d3f2be68adb0d /installer
parent0e204e1d61fddc1934ce499975cae291450abfe3 (diff)
FIX(installer): Re-add URL protocol registration registry keys on install
In the installer refactor (88e17868493b7e08fe3339069c11cbc5c39e62e5) these registry keys were removed, so new installs did not register a URL protocol and users weren't able to use `mumble://` links. This is a translation of the registry values from `Files.wxs` to equivalent WixSharp code. Closes #5473
Diffstat (limited to 'installer')
-rw-r--r--installer/ClientInstaller.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/installer/ClientInstaller.cs b/installer/ClientInstaller.cs
index ed5181870..8c30f4283 100644
--- a/installer/ClientInstaller.cs
+++ b/installer/ClientInstaller.cs
@@ -155,7 +155,7 @@ public class ClientInstaller : MumbleInstall {
for (int i = 0; i < binaries.Count; i++) {
if (binaries[i] == "mumble.exe") {
- binaryFiles[i] = new File(@"..\..\" + binaries[i], new FileAssociation("mumble_plugin", "application/mumble", "Open", "\"%1\""));
+ binaryFiles[i] = new File(new Id("mumble.exe"), @"..\..\" + binaries[i], new FileAssociation("mumble_plugin", "application/mumble", "Open", "\"%1\""));
} else {
binaryFiles[i] = new File(@"..\..\" + binaries[i]);
}
@@ -183,6 +183,12 @@ public class ClientInstaller : MumbleInstall {
menuDir,
desktopDir
};
+ this.RegValues = new RegValue[] {
+ new RegValue(RegistryHive.ClassesRoot, "mumble", "", "URL:Mumble"),
+ new RegValue(RegistryHive.ClassesRoot, "mumble", "URL Protocol", ""),
+ new RegValue(RegistryHive.ClassesRoot, @"mumble\DefaultIcon", "", "[#mumble.exe]"),
+ new RegValue(RegistryHive.ClassesRoot, @"mumble\shell\open\command", "", "[#mumble.exe] \"%1\"")
+ };
}
}